3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(gc_disable()); class Foo { public function __destruct() { echo "registered route now\n"; } } $a = new Foo(); // queue the route echo "queuing now\n"; // run the app echo "run the app\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GT6Fv
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'gc_disable'
          2        DO_ICALL                                         $1      
          3        SEND_VAR                                                 $1
          4        DO_ICALL                                                 
   13     5        NEW                                              $3      'Foo'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $3
   16     8        ECHO                                                     'queuing+now%0A'
   19     9        ECHO                                                     'run+the+app%0A'
         10      > RETURN                                                   1

Class Foo:
Function __destruct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GT6Fv
function name:  __destruct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                     'registered+route+now%0A'
   10     1      > RETURN                                                   null

End of function __destruct

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.59 ms | 1394 KiB | 17 Q