3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(PHP_INT_MAX => 'foo'); $splArray = new SplFixedArray(); try { $splArray->fromArray($array); } catch (Exception $e) { echo $e->getMessage(); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
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 = 62) Position 1 = -2
filename:       /in/6OtI7
function name:  (null)
number of ops:  13
compiled vars:  !0 = $array, !1 = $splArray, !2 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        NEW                                              $4      'SplFixedArray'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $4
    6     4        INIT_METHOD_CALL                                         !1, 'fromArray'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
          7      > JMP                                                      ->12
    7     8  E > > CATCH                                       last         'Exception'
    8     9    >   INIT_METHOD_CALL                                         !2, 'getMessage'
         10        DO_FCALL                                      0  $8      
         11        ECHO                                                     $8
   10    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.51 ms | 1393 KiB | 13 Q