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

Function hello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DVOhj
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%2FDVOhj%3A12%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DVOhj
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%2FDVOhj%3A12%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.11 ms | 1386 KiB | 13 Q