3v4l.org

run code in 300+ PHP versions simultaneously
<?php function hello(&$truc) { return $truc; } $class = new StdClass; $thing = new StdClass; $class->gericko = "truc"; $thing->sayHello = function($t){ echo $t;}; $sayHello = $thing->sayHello; $name = "gericko"; $nameClass = "class"; $nameThing = "thing"; echo ${$nameClass}->$name." ".$sayHello($class);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jqYm4
function name:  (null)
number of ops:  25
compiled vars:  !0 = $class, !1 = $thing, !2 = $sayHello, !3 = $name, !4 = $nameClass, !5 = $nameThing
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $6      'StdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $6
    9     3        NEW                                              $9      'StdClass'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $9
   11     6        ASSIGN_OBJ                                               !0, 'gericko'
          7        OP_DATA                                                  'truc'
   12     8        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FjqYm4%3A12%240'
          9        ASSIGN_OBJ                                               !1, 'sayHello'
         10        OP_DATA                                                  ~14
   13    11        FETCH_OBJ_R                                      ~15     !1, 'sayHello'
         12        ASSIGN                                                   !2, ~15
   14    13        ASSIGN                                                   !3, 'gericko'
   16    14        ASSIGN                                                   !4, 'class'
   17    15        ASSIGN                                                   !5, 'thing'
   19    16        FETCH_R                      local               ~20     !4
         17        FETCH_OBJ_R                                      ~21     ~20, !3
         18        CONCAT                                           ~22     ~21, '+'
         19        INIT_DYNAMIC_CALL                                        !2
         20        SEND_VAR_EX                                              !0
         21        DO_FCALL                                      0  $23     
         22        CONCAT                                           ~24     ~22, $23
         23        ECHO                                                     ~24
         24      > RETURN                                                   1

Function hello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jqYm4
function name:  hello
number of ops:  3
compiled vars:  !0 = $truc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1      > RETURN                                                   !0
    6     2*     > RETURN                                                   null

End of function hello

Function %00%7Bclosure%7D%2Fin%2FjqYm4%3A12%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jqYm4
function name:  {closure}
number of ops:  3
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
          1        ECHO                                                     !0
          2      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FjqYm4%3A12%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.08 ms | 1395 KiB | 13 Q