3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Example { public $a = 1; public function foo() { var_dump($this->a); } } $ex = new Example; error_reporting(E_ALL ^ E_STRICT); $ex::foo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8u8pe
function name:  (null)
number of ops:  10
compiled vars:  !0 = $ex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $1      'Example'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   13     3        INIT_FCALL                                               'error_reporting'
          4        SEND_VAL                                                 30719
          5        DO_ICALL                                                 
   14     6        FETCH_CLASS                                   0  $5      !0
          7        INIT_STATIC_METHOD_CALL                                  $5, 'foo'
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Class Example:
Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8u8pe
function name:  foo
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_OBJ_R                                      ~0      'a'
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
    9     4      > RETURN                                                   null

End of function foo

End of class Example.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.59 ms | 1386 KiB | 17 Q