3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Something { public static function doNothing() { } } $arrObj = new ArrayObject(array("a", "b", "c")); var_dump(array_map(array('Something', 'doNothing'), $arrObj->getArrayCopy()));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PWITj
function name:  (null)
number of ops:  14
compiled vars:  !0 = $arrObj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NEW                                              $1      'ArrayObject'
          1        SEND_VAL_EX                                              <array>
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    7     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'array_map'
          6        SEND_VAL                                                 <array>
          7        INIT_METHOD_CALL                                         !0, 'getArrayCopy'
          8        DO_FCALL                                      0  $4      
          9        SEND_VAR                                                 $4
         10        DO_ICALL                                         $5      
         11        SEND_VAR                                                 $5
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Class Something:
Function donothing:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PWITj
function name:  doNothing
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > RETURN                                                   null

End of function donothing

End of class Something.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.94 ms | 1395 KiB | 17 Q