3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xxx = "test"; function check($x, $y = "") { if($x === "test") { echo "yeah!"; } else { echo ":("; } } check("test");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HJS66
function name:  (null)
number of ops:  5
compiled vars:  !0 = $xxx
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'test'
   14     1        INIT_FCALL                                               'check'
          2        SEND_VAL                                                 'test'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Function check:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HJS66
function name:  check
number of ops:  8
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      ''
    6     2        IS_IDENTICAL                                             !0, 'test'
          3      > JMPZ                                                     ~2, ->6
    7     4    >   ECHO                                                     'yeah%21'
          5      > JMP                                                      ->7
    9     6    >   ECHO                                                     '%3A%28'
   12     7    > > RETURN                                                   null

End of function check

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.79 ms | 1397 KiB | 14 Q