3v4l.org

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

Function %00%7Bclosure%7D%2Fin%2F1jX8g%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1jX8g
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%2F1jX8g%3A2%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.33 ms | 1387 KiB | 21 Q