3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Arrange $object = new SplFixedArray(2); $object[0] = 'first-value'; $object[1] = 'second-value'; // Act foreach ($object as $key1 => $val1) { foreach ($object as $key2 => $val2) { break; } } // Assert // Will never execute... assert(TRUE === FALSE); // Zjistěte proč v článku na pehapkari.cz: https://github.com/pehapkari/pehapkari.cz/pull/285 // Step into explanation at GitHub: https://github.com/pehapkari/pehapkari.cz/pull/285/files#diff-7677a91736a5051440021053d8fa6962R9

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 18
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 18
Branch analysis from position: 10
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 16
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 16
Branch analysis from position: 16
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/LDQ6i
function name:  (null)
number of ops:  25
compiled vars:  !0 = $object, !1 = $val1, !2 = $key1, !3 = $val2, !4 = $key2
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   4     0  E >   NEW                                              $5      :45
         1        SEND_VAL_EX                                              2
         2        DO_FCALL                                      0          
         3        ASSIGN                                                   !0, $5
   5     4        ASSIGN_DIM                                               !0, 0
         5        OP_DATA                                                  'first-value'
   6     6        ASSIGN_DIM                                               !0, 1
         7        OP_DATA                                                  'second-value'
   9     8      > FE_RESET_R                                       $10     !0, ->18
         9    > > FE_FETCH_R                                       ~11     $10, !1, ->18
        10    >   ASSIGN                                                   !2, ~11
  10    11      > FE_RESET_R                                       $13     !0, ->16
        12    > > FE_FETCH_R                                       ~14     $13, !3, ->16
        13    >   ASSIGN                                                   !4, ~14
  11    14      > JMP                                                      ->16
  10    15*       JMP                                                      ->12
        16    >   FE_FREE                                                  $13
   9    17      > JMP                                                      ->9
        18    >   FE_FREE                                                  $10
  17    19        ASSERT_CHECK                                             
        20        INIT_FCALL                                               'assert'
        21        SEND_VAL                                                 <false>
        22        SEND_VAL                                                 'assert%28TRUE+%3D%3D%3D+FALSE%29'
        23        DO_ICALL                                                 
  22    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
13.68 ms | 412 KiB | 7 Q