dismiss Step into the future! Click here to switch to the beta php.net site
downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

CAST> <BW_XOR
[edit] Last updated: Fri, 28 Jun 2013

view this page in

CASE

PHP code

<?php
/*
 * Set result to true if value1 equals value2.  The value2 must be a constant value?
 * opcode number: 48
 */
$i=0;
switch (
$i) {
   case 
0:
         echo 
"i=0";
         break;
   case 
1:
         echo 
"i=1";
         break;
   case 
2:
         echo 
"i=2";
         break;
}
?>

PHP opcodes

Function name: (null)

Compiled variables: !0=$i

line#op fetchextreturn operands
60 ASSIGN     !0,0
81 CASE   ~1 !0,0
 2 JMPZ     ~1,->6
93 ECHO     'i%3D0'
104 BRK     1
115 JMP     ->8
 6 CASE   ~1 !0,1
 7 JMPZ     ~1,->11
128 ECHO     'i%3D1'
139 BRK     1
1410 JMP     ->13
 11 CASE   ~1 !0,2
 12 JMPZ     ~1,->16
1513 ECHO     'i%3D2'
1614 BRK     1
1715 JMP     ->16
1816 RETURN     1


add a note add a note User Contributed Notes CASE - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites