3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo{} class bar{ public function __construct(){} } $f = "foo"; $b = "bar"; new $f(print "a"); new $b(print "a");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ah3Kv
function name:  (null)
number of ops:  15
compiled vars:  !0 = $f, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, 'foo'
    9     1        ASSIGN                                                   !1, 'bar'
   10     2        FETCH_CLASS                                   0  $4      !0
          3        NEW                                              $5      $4
          4        ECHO                                                     'a'
          5        SEND_VAL_EX                                              1
          6        DO_FCALL                                      0          
          7        FREE                                                     $5
   11     8        FETCH_CLASS                                   0  $7      !1
          9        NEW                                              $8      $7
         10        ECHO                                                     'a'
         11        SEND_VAL_EX                                              1
         12        DO_FCALL                                      0          
         13        FREE                                                     $8
         14      > RETURN                                                   1

Class foo: [no user functions]
Class bar:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ah3Kv
function name:  __construct
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   null

End of function __construct

End of class bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153 ms | 1394 KiB | 13 Q