3v4l.org

run code in 300+ PHP versions simultaneously
<?php $city = null; $country = "hello"; $a = $city || $country; var_dump($a);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
filename:       /in/ftKKm
function name:  (null)
number of ops:  9
compiled vars:  !0 = $city, !1 = $country, !2 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, null
    3     1        ASSIGN                                                   !1, 'hello'
    5     2      > JMPNZ_EX                                         ~5      !0, ->4
          3    >   BOOL                                             ~5      !1
          4    >   ASSIGN                                                   !2, ~5
    6     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.46 ms | 1398 KiB | 15 Q