3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 1; $bar = 2; function doSomething(){} $closure = function($foo, $bar) { return function($foo, $bar) { doSomething(); }; }; $class = new class($foo, $bar) { function __construct($foo, $bar) { doSomething(); } }; $instance = new Class($foo, $bar) { function __construct($foo, $bar) { doSomething(); } };
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1RoNR
function name:  (null)
number of ops:  17
compiled vars:  !0 = $foo, !1 = $bar, !2 = $closure, !3 = $class, !4 = $instance
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
          1        ASSIGN                                                   !1, 2
    6     2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F1RoNR%3A6%240'
          3        ASSIGN                                                   !2, ~7
   12     4        DECLARE_ANON_CLASS                               <unknown> 
          5        NEW                                              $10     $9
          6        SEND_VAR_EX                                              !0
          7        SEND_VAR_EX                                              !1
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !3, $10
   18    10        DECLARE_ANON_CLASS                               'class%40anonymous%00%2Fin%2F1ronr%3A18%243'                                    
         11        NEW                                              $14     $13
         12        SEND_VAR_EX                                              !0
         13        SEND_VAR_EX                                              !1
         14        DO_FCALL                                      0          
         15        ASSIGN                                                   !4, $14
   22    16      > RETURN                                                   1

Function dosomething:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1RoNR
function name:  doSomething
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   null

End of function dosomething

Function %00%7Bclosure%7D%2Fin%2F1RoNR%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1RoNR
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $foo, !1 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    7     2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F1RoNR%3A7%241'
    9     3      > RETURN                                                   ~2
   10     4*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F1RoNR%3A6%240

Function %00%7Bclosure%7D%2Fin%2F1RoNR%3A7%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1RoNR
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $foo, !1 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    8     2        INIT_FCALL                                               'dosomething'
          3        DO_FCALL                                      0          
    9     4      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F1RoNR%3A7%241

Class class@anonymous:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1RoNR
function name:  __construct
number of ops:  5
compiled vars:  !0 = $foo, !1 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   14     2        INIT_FCALL                                               'dosomething'
          3        DO_FCALL                                      0          
   15     4      > RETURN                                                   null

End of function __construct

End of class class@anonymous.

Class class@anonymous:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1RoNR
function name:  __construct
number of ops:  5
compiled vars:  !0 = $foo, !1 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   20     2        INIT_FCALL                                               'dosomething'
          3        DO_FCALL                                      0          
   21     4      > RETURN                                                   null

End of function __construct

End of class class@anonymous.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.52 ms | 1402 KiB | 16 Q