3v4l.org

run code in 300+ PHP versions simultaneously
<?php $reflection = new ReflectionFunction(function(){}); var_dump(preg_match('/^\\s*?Method\\s*\\[\\s*static/i', $reflection->__toString())); var_dump($reflection->__toString());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vGkmH
function name:  (null)
number of ops:  20
compiled vars:  !0 = $reflection
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'ReflectionFunction'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FvGkmH%3A3%240'
          2        SEND_VAL_EX                                              ~2
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
    4     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'preg_match'
          7        SEND_VAL                                                 '%2F%5E%5Cs%2A%3FMethod%5Cs%2A%5C%5B%5Cs%2Astatic%2Fi'
          8        INIT_METHOD_CALL                                         !0, '__toString'
          9        DO_FCALL                                      0  $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                         $6      
         12        SEND_VAR                                                 $6
         13        DO_ICALL                                                 
    5    14        INIT_FCALL                                               'var_dump'
         15        INIT_METHOD_CALL                                         !0, '__toString'
         16        DO_FCALL                                      0  $8      
         17        SEND_VAR                                                 $8
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

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

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.88 ms | 1395 KiB | 17 Q