3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo {} $foo = new foo(); if ($foo) { print_r('true'); } else { print_r('false'); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D3JqP
function name:  (null)
number of ops:  12
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NEW                                              $1      'foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    7     3      > JMPZ                                                     !0, ->8
    8     4    >   INIT_FCALL                                               'print_r'
          5        SEND_VAL                                                 'true'
          6        DO_ICALL                                                 
          7      > JMP                                                      ->11
   10     8    >   INIT_FCALL                                               'print_r'
          9        SEND_VAL                                                 'false'
         10        DO_ICALL                                                 
   11    11    > > RETURN                                                   1

Class foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.1 ms | 1385 KiB | 15 Q