3v4l.org

run code in 300+ PHP versions simultaneously
<?php function Whoops($f) { return "Missing colon caused $f() to execute."; } function bar(){ echo Whoops(__FUNCTION__); } class Foo { public static function bar() { echo 'bar'; } } Foo:bar();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IhVrB
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'bar'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Function whoops:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IhVrB
function name:  Whoops
number of ops:  6
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        ROPE_INIT                                     3  ~2      'Missing+colon+caused+'
          2        ROPE_ADD                                      1  ~2      ~2, !0
          3        ROPE_END                                      2  ~1      ~2, '%28%29+to+execute.'
          4      > RETURN                                                   ~1
    4     5*     > RETURN                                                   null

End of function whoops

Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IhVrB
function name:  bar
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'whoops'
          1        SEND_VAL                                                 'bar'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
    7     4      > RETURN                                                   null

End of function bar

Class Foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IhVrB
function name:  bar
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ECHO                                                     'bar'
   12     1      > RETURN                                                   null

End of function bar

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.35 ms | 1398 KiB | 15 Q