3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1; function test() { $b = 2; var_dump(compact('a', 'b')); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qAGSR
function name:  (null)
number of ops:  2
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    9     1      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qAGSR
function name:  test
number of ops:  9
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, 2
    8     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'compact'
          3        SEND_VAL                                                 'a'
          4        SEND_VAL                                                 'b'
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
    9     8      > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.25 ms | 1394 KiB | 17 Q