3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('test', function($input) { $output = $input; // do something here return $output; }); $n = test(123);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LkNAi
function name:  (null)
number of ops:  10
compiled vars:  !0 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'test'
          2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FLkNAi%3A3%240'
    8     3        SEND_VAL                                                 ~1
          4        DO_ICALL                                                 
   10     5        INIT_FCALL_BY_NAME                                       'test'
          6        SEND_VAL_EX                                              123
          7        DO_FCALL                                      0  $3      
          8        ASSIGN                                                   !0, $3
          9      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FLkNAi%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LkNAi
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $input, !1 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        ASSIGN                                                   !1, !0
    7     2      > RETURN                                                   !1
    8     3*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FLkNAi%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.37 ms | 1386 KiB | 15 Q