3v4l.org

run code in 300+ PHP versions simultaneously
<?php $elseif = '0'; if ($elseif) echo 'error'; elseif ($elseif === '0') echo 'ok';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 4
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/nqaUa
function name:  (null)
number of ops:  8
compiled vars:  !0 = $elseif
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '0'
    4     1      > JMPZ                                                     !0, ->4
          2    >   ECHO                                                     'error'
          3      > JMP                                                      ->7
    5     4    >   IS_IDENTICAL                                             !0, '0'
          5      > JMPZ                                                     ~2, ->7
          6    >   ECHO                                                     'ok'
          7    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.58 ms | 1432 KiB | 13 Q