3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test{} $t1 = new Test; $other = new stdClass; $t2 = new Test; echo $t1, "\n", $t2, "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BoNJ4
function name:  (null)
number of ops:  14
compiled vars:  !0 = $t1, !1 = $other, !2 = $t2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    4     3        NEW                                              $6      'stdClass'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $6
    5     6        NEW                                              $9      'Test'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !2, $9
    6     9        ECHO                                                     !0
         10        ECHO                                                     '%0A'
         11        ECHO                                                     !2
         12        ECHO                                                     '%0A'
         13      > RETURN                                                   1

Class Test: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.47 ms | 1392 KiB | 13 Q