3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Demo { protected static function de($token) { if ($token == 'sd') { return 42; } return $token; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TLneY
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E > > RETURN                                                   1

Class Demo:
Function de:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TLneY
function name:  de
number of ops:  6
compiled vars:  !0 = $token
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        IS_EQUAL                                                 !0, 'sd'
          2      > JMPZ                                                     ~1, ->4
    6     3    > > RETURN                                                   42
    9     4    > > RETURN                                                   !0
   10     5*     > RETURN                                                   null

End of function de

End of class Demo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.23 ms | 1393 KiB | 13 Q