3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 0; $b = -12; $x = $a * $b; $c = -0; var_dump($c); var_dump($x); var_dump($x == 0); echo $x; if($x) { echo 3; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 18
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/jMRXn
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $b, !2 = $x, !3 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
    3     1        ASSIGN                                                   !1, -12
    4     2        MUL                                              ~6      !0, !1
          3        ASSIGN                                                   !2, ~6
    6     4        ASSIGN                                                   !3, 0
    8     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !3
          7        DO_ICALL                                                 
    9     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                                 
   11    11        INIT_FCALL                                               'var_dump'
         12        IS_EQUAL                                         ~11     !2, 0
         13        SEND_VAL                                                 ~11
         14        DO_ICALL                                                 
   13    15        ECHO                                                     !2
   15    16      > JMPZ                                                     !2, ->18
   16    17    >   ECHO                                                     3
   17    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.93 ms | 1395 KiB | 15 Q