3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array['test'] = function () {echo'1';}; $array['test']->call(new StdClass);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/md5mU
function name:  (null)
number of ops:  10
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fmd5mU%3A2%240'
          1        ASSIGN_DIM                                               !0, 'test'
          2        OP_DATA                                                  ~2
    4     3        FETCH_DIM_R                                      ~3      !0, 'test'
          4        INIT_METHOD_CALL                                         ~3, 'call'
          5        NEW                                              $4      'StdClass'
          6        DO_FCALL                                      0          
          7        SEND_VAR_NO_REF_EX                                       $4
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fmd5mU%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/md5mU
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     '1'
          1      > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.24 ms | 1393 KiB | 13 Q