3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($test){ echo $test; } foo(isset($test) ? 'set' : 'not set'); $test = 'foo'; foo(isset($test) ? 'set foo' : 'not set foo');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
Branch analysis from position: 14
filename:       /in/nHbMO
function name:  (null)
number of ops:  18
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'foo'
          1        ISSET_ISEMPTY_CV                                         !0
          2      > JMPZ                                                     ~1, ->5
          3    >   QM_ASSIGN                                        ~2      'set'
          4      > JMP                                                      ->6
          5    >   QM_ASSIGN                                        ~2      'not+set'
          6    >   SEND_VAL                                                 ~2
          7        DO_FCALL                                      0          
    7     8        ASSIGN                                                   !0, 'foo'
    8     9        INIT_FCALL                                               'foo'
         10        ISSET_ISEMPTY_CV                                         !0
         11      > JMPZ                                                     ~5, ->14
         12    >   QM_ASSIGN                                        ~6      'set+foo'
         13      > JMP                                                      ->15
         14    >   QM_ASSIGN                                        ~6      'not+set+foo'
         15    >   SEND_VAL                                                 ~6
         16        DO_FCALL                                      0          
         17      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nHbMO
function name:  foo
number of ops:  3
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ECHO                                                     !0
    5     2      > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.28 ms | 1402 KiB | 15 Q