3v4l.org

run code in 300+ PHP versions simultaneously
<?php function w($var) { return $var; } $derp = function() { var_dump('this is dumb'); }; var_dump((string) w(new ReflectionFunction($derp)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QA9K5
function name:  (null)
number of ops:  13
compiled vars:  !0 = $derp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FQA9K5%3A7%240'
          1        ASSIGN                                                   !0, ~1
   12     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'w'
          4        NEW                                              $3      'ReflectionFunction'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
          7        SEND_VAR                                                 $3
          8        DO_FCALL                                      0  $5      
          9        CAST                                          6  ~6      $5
         10        SEND_VAL                                                 ~6
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

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

End of function w

Function %00%7Bclosure%7D%2Fin%2FQA9K5%3A7%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QA9K5
function name:  {closure}
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'this+is+dumb'
          2        DO_ICALL                                                 
    9     3      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FQA9K5%3A7%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.6 ms | 1398 KiB | 16 Q