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('/PHP Version [\w.]+/i', $phpinfo, $matches); var_dump($matches[0]); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 1, Position 2 = 17
Branch analysis from position: 1
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/6BRHZ
function name:  (null)
number of ops:  18
compiled vars:  !0 = $phpinfo, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > JMPZ                                                     <true>, ->17
    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                                                 '%2FPHP+Version+%5B%5Cw.%5D%2B%2Fi'
         10        SEND_VAR                                                 !0
         11        SEND_REF                                                 !1
         12        DO_ICALL                                                 
    9    13        INIT_FCALL                                               'var_dump'
         14        FETCH_DIM_R                                      ~7      !1, 0
         15        SEND_VAL                                                 ~7
         16        DO_ICALL                                                 
   10    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.29 ms | 1394 KiB | 23 Q