3v4l.org

run code in 300+ PHP versions simultaneously
<?php $reflection = new ReflectionFunction('Closure::bind'); 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/rRj0v
function name:  (null)
number of ops:  19
compiled vars:  !0 = $reflection
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'ReflectionFunction'
          1        SEND_VAL_EX                                              'Closure%3A%3Abind'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    4     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'preg_match'
          6        SEND_VAL                                                 '%2F%5E%5Cs%2A%3FMethod%5Cs%2A%5C%5B%5Cs%2Astatic%2Fi'
          7        INIT_METHOD_CALL                                         !0, '__toString'
          8        DO_FCALL                                      0  $4      
          9        SEND_VAR                                                 $4
         10        DO_ICALL                                         $5      
         11        SEND_VAR                                                 $5
         12        DO_ICALL                                                 
    5    13        INIT_FCALL                                               'var_dump'
         14        INIT_METHOD_CALL                                         !0, '__toString'
         15        DO_FCALL                                      0  $7      
         16        SEND_VAR                                                 $7
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.19 ms | 1394 KiB | 17 Q