3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hundred = 100; ini_set('assert.exception', 1); try { assert($hundred < 50); } catch (AssertionException $e) { var_dump($e);exit; echo $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: 12
Branch analysis from position: 12
2 jumps found. (Code = 107) Position 1 = 13, Position 2 = -2
Branch analysis from position: 13
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/6cV9i
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
    4     1        INIT_FCALL                                               'ini_set'
          2        SEND_VAL                                                 'assert.exception'
          3        SEND_VAL                                                 1
          4        DO_ICALL                                                 
    7     5        ASSERT_CHECK                                             
          6        INIT_FCALL                                               'assert'
          7        IS_SMALLER                                       ~4      !0, 50
          8        SEND_VAL                                                 ~4
          9        SEND_VAL                                                 'assert%28%24hundred+%3C+50%29'
         10        DO_ICALL                                                 
         11      > JMP                                                      ->20
    8    12  E > > CATCH                                       last         'AssertionException'
    9    13    >   INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
         16      > EXIT                                                     
   10    17*       INIT_METHOD_CALL                                         !1, 'getMessage'
         18*       DO_FCALL                                      0  $7      
         19*       ECHO                                                     $7
   11    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
195.15 ms | 1395 KiB | 19 Q