3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Goofy { } class Woofy { public function __construct() { } } $a = 10; $b = 10; $goofy = new Goofy($a = 4); $woofy = new Woofy($b = 4); echo $a; echo PHP_EOL; echo $b;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SW7PN
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a, !1 = $b, !2 = $goofy, !3 = $woofy
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   ASSIGN                                                   !0, 10
   15     1        ASSIGN                                                   !1, 10
   17     2        NEW                                              $6      'Goofy'
          3        ASSIGN                                           ~7      !0, 4
          4        SEND_VAL_EX                                              ~7
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !2, $6
   18     7        NEW                                              $10     'Woofy'
          8        ASSIGN                                           ~11     !1, 4
          9        SEND_VAL_EX                                              ~11
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !3, $10
   20    12        ECHO                                                     !0
   21    13        ECHO                                                     '%0A'
   22    14        ECHO                                                     !1
         15      > RETURN                                                   1

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

End of function __construct

End of class Woofy.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.32 ms | 1393 KiB | 13 Q