3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.51 ms | 1395 KiB | 15 Q