3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X { static function foo() { $t = "this"; $$t = 5; extract(array("this" => "foo", "that" => "bar")); var_dump($this, $that); } } (new X)->foo(); X::foo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/URoPJ
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $0      'X'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'foo'
          3        DO_FCALL                                      0          
   13     4        INIT_STATIC_METHOD_CALL                                  'X', 'foo'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class X:
Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/URoPJ
function name:  foo
number of ops:  12
compiled vars:  !0 = $t, !1 = $that
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 'this'
    6     1        FETCH_W                      local               $3      !0
          2        ASSIGN                                                   $3, 5
    7     3        INIT_FCALL                                               'extract'
          4        SEND_VAL                                                 <array>
          5        DO_ICALL                                                 
    8     6        INIT_FCALL                                               'var_dump'
          7        FETCH_THIS                                       ~6      
          8        SEND_VAL                                                 ~6
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
    9    11      > RETURN                                                   null

End of function foo

End of class X.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.35 ms | 940 KiB | 18 Q