3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Fo​o { } echo "About to make Foo 1\n"; $foo1 = new Fo​o(); var_dump(str_split(get_class($foo1))); echo "About to make Foo 2\n"; $foo2 = new Foo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MNTbt
function name:  (null)
number of ops:  16
compiled vars:  !0 = $foo1, !1 = $foo2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ECHO                                                     'About+to+make+Foo+1%0A'
    9     1        NEW                                              $2      'Fo%E2%80%8Bo'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
   11     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'str_split'
          6        GET_CLASS                                        ~5      !0
          7        SEND_VAL                                                 ~5
          8        DO_ICALL                                         $6      
          9        SEND_VAR                                                 $6
         10        DO_ICALL                                                 
   14    11        ECHO                                                     'About+to+make+Foo+2%0A'
   15    12        NEW                                              $8      'Foo'
         13        DO_FCALL                                      0          
         14        ASSIGN                                                   !1, $8
         15      > RETURN                                                   1

Class Fo​o: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.04 ms | 1394 KiB | 17 Q