3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!defined('PHP_VERSION_ID')) { $version = explode('.', PHP_VERSION); $version_id = $version[0] * 10000 + $version[1] * 100 + $version[2]; define('PHP_VERSION_ID', $version_id); } if (PHP_VERSION_ID < 50300) { $message = 'PHP version ' . PHP_VERSION . ' is not supported.'; if (class_exists('RuntimeException')) { throw new RuntimeException($message); } else { trigger_error($message, E_USER_ERROR); } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 1, Position 2 = 18
Branch analysis from position: 1
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 33
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 29
Branch analysis from position: 24
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
Branch analysis from position: 18
filename:       /in/rl9GO
function name:  (null)
number of ops:  34
compiled vars:  !0 = $version, !1 = $version_id, !2 = $message
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E > > JMPZ                                                     <false>, ->18
    3     1    >   INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '.'
          3        SEND_VAL                                                 '8.0.0'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !0, $3
    4     6        FETCH_DIM_R                                      ~5      !0, 0
          7        MUL                                              ~6      ~5, 10000
          8        FETCH_DIM_R                                      ~7      !0, 1
          9        MUL                                              ~8      ~7, 100
         10        ADD                                              ~9      ~6, ~8
         11        FETCH_DIM_R                                      ~10     !0, 2
         12        ADD                                              ~11     ~9, ~10
         13        ASSIGN                                                   !1, ~11
    5    14        INIT_FCALL                                               'define'
         15        SEND_VAL                                                 'PHP_VERSION_ID'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
    7    18    > > JMPZ                                                     <false>, ->33
    8    19    >   ASSIGN                                                   !2, 'PHP+version+8.0.0+is+not+supported.'
    9    20        INIT_FCALL                                               'class_exists'
         21        SEND_VAL                                                 'RuntimeException'
         22        DO_ICALL                                         $15     
         23      > JMPZ                                                     $15, ->29
   10    24    >   NEW                                              $16     'RuntimeException'
         25        SEND_VAR_EX                                              !2
         26        DO_FCALL                                      0          
         27      > THROW                                         0          $16
         28*       JMP                                                      ->33
   12    29    >   INIT_FCALL                                               'trigger_error'
         30        SEND_VAR                                                 !2
         31        SEND_VAL                                                 256
         32        DO_ICALL                                                 
   14    33    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.93 ms | 1396 KiB | 21 Q