3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (PHP_VERSION >= "5.5") { ob_start(); phpinfo(); $phpinfo = ob_get_clean(); preg_match_all('/5\.5\.[\d\w.]+/i', $phpinfo, $matches); var_dump(array_unique($matches[0])); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 1, Position 2 = 20
Branch analysis from position: 1
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/DrDJ2
function name:  (null)
number of ops:  21
compiled vars:  !0 = $phpinfo, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > JMPZ                                                     <true>, ->20
    4     1    >   INIT_FCALL                                               'ob_start'
          2        DO_ICALL                                                 
    5     3        INIT_FCALL                                               'phpinfo'
          4        DO_ICALL                                                 
    6     5        INIT_FCALL                                               'ob_get_clean'
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !0, $4
    8     8        INIT_FCALL                                               'preg_match_all'
          9        SEND_VAL                                                 '%2F5%5C.5%5C.%5B%5Cd%5Cw.%5D%2B%2Fi'
         10        SEND_VAR                                                 !0
         11        SEND_REF                                                 !1
         12        DO_ICALL                                                 
    9    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'array_unique'
         15        FETCH_DIM_R                                      ~7      !1, 0
         16        SEND_VAL                                                 ~7
         17        DO_ICALL                                         $8      
         18        SEND_VAR                                                 $8
         19        DO_ICALL                                                 
   10    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.16 ms | 1399 KiB | 25 Q