3v4l.org

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

Function test:
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
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/amADE
function name:  test
number of ops:  10
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        ISSET_ISEMPTY_CV                                         !0
          2      > JMPZ                                                     ~1, ->5
          3    >   QM_ASSIGN                                        ~2      ''
          4      > JMP                                                      ->6
          5    >   QM_ASSIGN                                        ~2      'not'
          6    >   CONCAT                                           ~3      '%24a+is', ~2
          7        CONCAT                                           ~4      ~3, '+set'
          8        ECHO                                                     ~4
    4     9      > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.74 ms | 1402 KiB | 14 Q