3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=1; $b=2; $c=3; unset($a,$b,$c); var_dump($a); var_dump($b); var_dump($c); $a = array(1,2); echo ($a)? 'pass' : 'fail';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Xlka9
function name:  (null)
number of ops:  22
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        DO_ICALL                                                 
    7     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
    8    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
    9    15        ASSIGN                                                   !0, <array>
   10    16      > JMPZ                                                     !0, ->19
         17    >   QM_ASSIGN                                        ~10     'pass'
         18      > JMP                                                      ->20
         19    >   QM_ASSIGN                                        ~10     'fail'
         20    >   ECHO                                                     ~10
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.03 ms | 1395 KiB | 15 Q