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/IvReL
function name:  (null)
number of ops:  26
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%2FIvReL%3A12%240'
          9        ASSIGN_OBJ                                               !1, 'sayHello'
         10        OP_DATA                                                  ~14
   13    11        INIT_METHOD_CALL                                         !1, 'sayHello'
         12        DO_FCALL                                      0  $15     
         13        ASSIGN_REF                                               !2, $15
   14    14        ASSIGN                                                   !3, 'gericko'
   16    15        ASSIGN                                                   !4, 'class'
   17    16        ASSIGN                                                   !5, 'thing'
   19    17        FETCH_R                      local               ~20     !4
         18        FETCH_OBJ_R                                      ~21     ~20, !3
         19        CONCAT                                           ~22     ~21, '+'
         20        INIT_DYNAMIC_CALL                                        !2
         21        SEND_VAR_EX                                              !0
         22        DO_FCALL                                      0  $23     
         23        CONCAT                                           ~24     ~22, $23
         24        ECHO                                                     ~24
         25      > RETURN                                                   1

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.19 ms | 1399 KiB | 13 Q