3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $workspaceName = 'default'; public function bar() { $path = '/test/path'; echo "Item '$path' not found in workspace '$this->workspaceName'"; } } $foo = new Foo(); $foo->bar();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LRIDe
function name:  (null)
number of ops:  6
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   16     3        INIT_METHOD_CALL                                         !0, 'bar'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LRIDe
function name:  bar
number of ops:  9
compiled vars:  !0 = $path
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, '%2Ftest%2Fpath'
   11     1        ROPE_INIT                                     5  ~4      'Item+%27'
          2        ROPE_ADD                                      1  ~4      ~4, !0
          3        ROPE_ADD                                      2  ~4      ~4, '%27+not+found+in+workspace+%27'
          4        FETCH_OBJ_R                                      ~2      'workspaceName'
          5        ROPE_ADD                                      3  ~4      ~4, ~2
          6        ROPE_END                                      4  ~3      ~4, '%27'
          7        ECHO                                                     ~3
   12     8      > RETURN                                                   null

End of function bar

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.85 ms | 1002 KiB | 13 Q