3v4l.org

run code in 500+ PHP versions simultaneously
<?php error_reporting(E_ALL); ini_set('display_errors', 1); try { $res = array_shift(explode('.', 'Bundle-Ether12.100')); echo "OK RESULT: "; var_export($res); echo PHP_EOL; } catch (Throwable $e) { echo "THROWN: ", get_class($e), ": ", $e->getMessage(), PHP_EOL; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 21
Branch analysis from position: 21
2 jumps found. (Code = 107) Position 1 = 22, Position 2 = -2
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/80kma
function name:  (null)
number of ops:  31
compiled vars:  !0 = $res, !1 = $e
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'error_reporting'
          1        SEND_VAL                                                     30719
          2        DO_ICALL                                                     
    3     3        INIT_FCALL                                                   'ini_set'
          4        SEND_VAL                                                     'display_errors'
          5        SEND_VAL                                                     1
          6        DO_ICALL                                                     
    5     7        INIT_FCALL                                                   'array_shift'
          8        INIT_FCALL                                                   'explode'
          9        SEND_VAL                                                     '.'
         10        SEND_VAL                                                     'Bundle-Ether12.100'
         11        DO_ICALL                                             $4      
         12        SEND_VAR_NO_REF                                   0          $4
         13        DO_ICALL                                             $5      
         14        ASSIGN                                                       !0, $5
    6    15        ECHO                                                         'OK+RESULT%3A+'
         16        INIT_FCALL                                                   'var_export'
         17        SEND_VAR                                                     !0
         18        DO_ICALL                                                     
         19        ECHO                                                         '%0A'
         20      > JMP                                                          ->30
    7    21  E > > CATCH                                           last         'Throwable'
    8    22    >   ECHO                                                         'THROWN%3A+'
         23        GET_CLASS                                            ~8      !1
         24        ECHO                                                         ~8
         25        ECHO                                                         '%3A+'
         26        INIT_METHOD_CALL                                             !1, 'getMessage'
         27        DO_FCALL                                          0  $9      
         28        ECHO                                                         $9
         29        ECHO                                                         '%0A'
    9    30    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
125.02 ms | 492 KiB | 14 Q