3v4l.org

run code in 300+ PHP versions simultaneously
<?php $zero = 0; $one = 1; $two = 2; $three = 3; if($zero) { echo '0'; } if($one) { echo '1'; } if($two) { echo '2'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
Branch analysis from position: 8
Branch analysis from position: 6
filename:       /in/jd0mU
function name:  (null)
number of ops:  11
compiled vars:  !0 = $zero, !1 = $one, !2 = $two, !3 = $three
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
    3     1        ASSIGN                                                   !1, 1
    4     2        ASSIGN                                                   !2, 2
    5     3        ASSIGN                                                   !3, 3
    7     4      > JMPZ                                                     !0, ->6
    9     5    >   ECHO                                                     '0'
   11     6    > > JMPZ                                                     !1, ->8
   13     7    >   ECHO                                                     '1'
   15     8    > > JMPZ                                                     !2, ->10
   17     9    >   ECHO                                                     '2'
   18    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.5 ms | 1397 KiB | 13 Q