3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { } $r = true && $var = new Foo(); print_r($r); echo PHP_EOL; var_dump($var);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hPm1o
function name:  (null)
number of ops:  13
compiled vars:  !0 = $r, !1 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $2      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                           ~4      !1, $2
          3        BOOL                                             ~5      ~4
          4        ASSIGN                                                   !0, ~5
    8     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    9     8        ECHO                                                     '%0A'
   10     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.88 ms | 1394 KiB | 17 Q