3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hundred = 100; try { assert(50 > $hundred); } catch (AssertionError $e) { var_dump($e);exit; echo "Hello {get_class($e)}: {$e->getMessage()}"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 8
Branch analysis from position: 8
2 jumps found. (Code = 107) Position 1 = 9, Position 2 = -2
Branch analysis from position: 9
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/eTnca
function name:  (null)
number of ops:  21
compiled vars:  !0 = $hundred, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 100
    6     1        ASSERT_CHECK                                             
          2        INIT_FCALL                                               'assert'
          3        IS_SMALLER                                       ~3      !0, 50
          4        SEND_VAL                                                 ~3
          5        SEND_VAL                                                 'assert%2850+%3E+%24hundred%29'
          6        DO_ICALL                                                 
          7      > JMP                                                      ->20
    7     8  E > > CATCH                                       last         'AssertionError'
    8     9    >   INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
         12      > EXIT                                                     
    9    13*       ROPE_INIT                                     4  ~8      'Hello+%7Bget_class%28'
         14*       ROPE_ADD                                      1  ~8      ~8, !1
         15*       ROPE_ADD                                      2  ~8      ~8, '%29%7D%3A+'
         16*       INIT_METHOD_CALL                                         !1, 'getMessage'
         17*       DO_FCALL                                      0  $6      
         18*       ROPE_END                                      3  ~7      ~8, $6
         19*       ECHO                                                     ~7
   10    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.69 ms | 1395 KiB | 17 Q