3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($var) { echo "Test $var"; } class foo { var $arr = array("test"); /*function test($var) { echo "Test $var"; }*/ } class moo { static public $arr = array("test"); /*function test($var) { echo "Test $var"; }*/ } $a = new foo(); var_dump($a);; $a->arr[0]("testvalue"); moo::$arr[0]("another one"); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9kvM5
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   33     0  E >   NEW                                              $1      'foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   34     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
   35     6        FETCH_OBJ_R                                      ~5      !0, 'arr'
          7        FETCH_DIM_R                                      ~6      ~5, 0
          8        INIT_DYNAMIC_CALL                                        ~6
          9        SEND_VAL_EX                                              'testvalue'
         10        DO_FCALL                                      0          
   36    11        FETCH_STATIC_PROP_R          unknown             ~8      'arr'
         12        FETCH_DIM_R                                      ~9      ~8, 0
         13        INIT_DYNAMIC_CALL                                        ~9
         14        SEND_VAL_EX                                              'another+one'
         15        DO_FCALL                                      0          
   38    16      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9kvM5
function name:  test
number of ops:  5
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        NOP                                                      
          2        FAST_CONCAT                                      ~1      'Test+', !0
          3        ECHO                                                     ~1
    7     4      > RETURN                                                   null

End of function test

Class foo: [no user functions]
Class moo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.63 ms | 1395 KiB | 15 Q