3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace A; function identity($i) { return $i; } namespace B; var_dump(array_map(\A\identity::class, [1, 2]));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XTOLH
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   INIT_NS_FCALL_BY_NAME                                        'B%5Cvar_dump'
          1        INIT_NS_FCALL_BY_NAME                                        'B%5Carray_map'
          2        SEND_VAL_EX                                                  'A%5Cidentity'
          3        SEND_VAL_EX                                                  <array>
          4        DO_FCALL                                          0  $0      
          5        SEND_VAR_NO_REF_EX                                           $0
          6        DO_FCALL                                          0          
          7      > RETURN                                                       1

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

End of function a%5Cidentity

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.66 ms | 2148 KiB | 15 Q