3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(array_map(function($x) { return $x[strlen($x)-1]; }, get_defined_functions()['internal']));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3OJHf
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'array_map'
          2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F3OJHf%3A2%240'
    5     3        SEND_VAL                                                 ~0
          4        INIT_FCALL                                               'get_defined_functions'
          5        DO_ICALL                                         $1      
          6        FETCH_DIM_R                                      ~2      $1, 'internal'
          7        SEND_VAL                                                 ~2
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F3OJHf%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3OJHf
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    4     1        STRLEN                                           ~1      !0
          2        SUB                                              ~2      ~1, 1
          3        FETCH_DIM_R                                      ~3      !0, ~2
          4      > RETURN                                                   ~3
    5     5*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F3OJHf%3A2%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.54 ms | 1395 KiB | 19 Q