3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { static function __callStatic(string $f, array $args) { print 'C::' . $f . '(...'; var_export($args); print ")\n"; } } ['C', 'foo'](5); var_export(is_callable(['C', 'foo']));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SlUU8
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_DYNAMIC_CALL                                        <array>
          1        SEND_VAL_EX                                              5
          2        DO_FCALL                                      0          
   14     3        INIT_FCALL                                               'var_export'
          4        INIT_FCALL                                               'is_callable'
          5        SEND_VAL                                                 <array>
          6        DO_ICALL                                         $1      
          7        SEND_VAR                                                 $1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Class C:
Function __callstatic:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SlUU8
function name:  __callStatic
number of ops:  10
compiled vars:  !0 = $f, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        CONCAT                                           ~2      'C%3A%3A', !0
          3        CONCAT                                           ~3      ~2, '%28...'
          4        ECHO                                                     ~3
    6     5        INIT_FCALL                                               'var_export'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
    7     8        ECHO                                                     '%29%0A'
    8     9      > RETURN                                                   null

End of function __callstatic

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.52 ms | 1433 KiB | 15 Q