3v4l.org

run code in 300+ PHP versions simultaneously
<?php assert_options(ASSERT_ACTIVE, 1); assert_options(ASSERT_WARNING, 1); assert_options(ASSERT_QUIET_EVAL, 1); try { assert(PHP_MAJOR_VERSION >= 7, new Exception('PHP 7 is requiered!')); } catch (Exception $e) { quit(); } echo 'Hi!';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 22
Branch analysis from position: 22
2 jumps found. (Code = 107) Position 1 = 23, Position 2 = -2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BKvLG
function name:  (null)
number of ops:  27
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'assert_options'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 1
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'assert_options'
          5        SEND_VAL                                                 4
          6        SEND_VAL                                                 1
          7        DO_ICALL                                                 
    4     8        INIT_FCALL                                               'assert_options'
          9        FETCH_CONSTANT                                   ~3      'ASSERT_QUIET_EVAL'
         10        SEND_VAL                                                 ~3
         11        SEND_VAL                                                 1
         12        DO_ICALL                                                 
    6    13        ASSERT_CHECK                                             
         14        INIT_FCALL                                               'assert'
         15        SEND_VAL                                                 <true>
         16        NEW                                              $5      'Exception'
         17        SEND_VAL_EX                                              'PHP+7+is+requiered%21'
         18        DO_FCALL                                      0          
         19        SEND_VAR                                                 $5
         20        DO_ICALL                                                 
         21      > JMP                                                      ->25
    7    22  E > > CATCH                                       last         'Exception'
         23    >   INIT_FCALL_BY_NAME                                       'quit'
         24        DO_FCALL                                      0          
    8    25    >   ECHO                                                     'Hi%21'
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.72 ms | 1395 KiB | 17 Q