3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); $foo = 1; if($foo === true) print "foo is true (foo=$foo)";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/SrmLq
function name:  (null)
number of ops:  8
compiled vars:  !0 = $foo
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 1
    5     1        TYPE_CHECK                                        8          !0
          2      > JMPZ                                                         ~2, ->7
    6     3    >   ROPE_INIT                                         3  ~4      'foo+is+true+%28foo%3D'
          4        ROPE_ADD                                          1  ~4      ~4, !0
          5        ROPE_END                                          2  ~3      ~4, '%29'
          6        ECHO                                                         ~3
          7    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.43 ms | 3303 KiB | 12 Q