3v4l.org

run code in 300+ PHP versions simultaneously
<?php function addShit() { $a = []; $a[] = (function() { return 'poop'; })(); return $a; } var_dump(addShit());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W0XAe
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'addshit'
          2        DO_FCALL                                      0  $0      
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
          5      > RETURN                                                   1

Function addshit:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W0XAe
function name:  addShit
number of ops:  8
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    6     1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FW0XAe%3A6%240'
    8     2        INIT_DYNAMIC_CALL                                        ~3
          3        DO_FCALL                                      0  $4      
    6     4        ASSIGN_DIM                                               !0
    8     5        OP_DATA                                                  $4
   10     6      > RETURN                                                   !0
   12     7*     > RETURN                                                   null

End of function addshit

Function %00%7Bclosure%7D%2Fin%2FW0XAe%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W0XAe
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   'poop'
    8     1*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FW0XAe%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.12 ms | 1402 KiB | 16 Q