3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); phpversion() >= "5.6.0" or die(); $a = 1; unset($a); var_dump(count($GLOBALS), $GLOBALS);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5tmUS
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 -1
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'phpversion'
          4        DO_ICALL                                         $2      
          5        IS_SMALLER_OR_EQUAL                              ~3      '5.6.0', $2
          6      > JMPNZ_EX                                         ~3      ~3, ->9
          7    > > EXIT                                                     
          8*       BOOL                                             ~3      <true>
    4     9    >   ASSIGN                                                   !0, 1
    5    10        UNSET_CV                                                 !0
    6    11        INIT_FCALL                                               'var_dump'
         12        FETCH_R                      global              ~5      'GLOBALS'
         13        COUNT                                            ~6      ~5
         14        SEND_VAL                                                 ~6
         15        FETCH_R                      global              ~7      'GLOBALS'
         16        SEND_VAL                                                 ~7
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.95 ms | 1395 KiB | 19 Q