3v4l.org

run code in 300+ PHP versions simultaneously
<?php $version = explode('.', phpversion()); var_dump($version); if(((int)$version[0] >= 5 && (int)$version[1] >= 2 && (int)$version[1] >= 17)){ var_dump($version); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 14, Position 2 = 18
Branch analysis from position: 14
2 jumps found. (Code = 46) Position 1 = 19, Position 2 = 23
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 27
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
Branch analysis from position: 23
Branch analysis from position: 18
filename:       /in/vm0jb
function name:  (null)
number of ops:  28
compiled vars:  !0 = $version
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'explode'
          1        SEND_VAL                                                 '.'
          2        INIT_FCALL                                               'phpversion'
          3        DO_ICALL                                         $1      
          4        SEND_VAR                                                 $1
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    3     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
    4    10        FETCH_DIM_R                                      ~5      !0, 0
         11        CAST                                          4  ~6      ~5
         12        IS_SMALLER_OR_EQUAL                              ~7      5, ~6
         13      > JMPZ_EX                                          ~7      ~7, ->18
         14    >   FETCH_DIM_R                                      ~8      !0, 1
         15        CAST                                          4  ~9      ~8
         16        IS_SMALLER_OR_EQUAL                              ~10     2, ~9
         17        BOOL                                             ~7      ~10
         18    > > JMPZ_EX                                          ~7      ~7, ->23
         19    >   FETCH_DIM_R                                      ~11     !0, 1
         20        CAST                                          4  ~12     ~11
         21        IS_SMALLER_OR_EQUAL                              ~13     17, ~12
         22        BOOL                                             ~7      ~13
         23    > > JMPZ                                                     ~7, ->27
    5    24    >   INIT_FCALL                                               'var_dump'
         25        SEND_VAR                                                 !0
         26        DO_ICALL                                                 
    6    27    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.45 ms | 1395 KiB | 19 Q