3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [3, 9, 6]; $b = [7, 5, 2]; $x = sort($a); $y = sort($b); foreach ($b as $key => $value) { if ($a[$key] > $value) { echo "DOESN'T FIT!"; die; } } echo "FITS!";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 19
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 19
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/7VZtS
function name:  (null)
number of ops:  22
compiled vars:  !0 = $a, !1 = $b, !2 = $x, !3 = $y, !4 = $value, !5 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2        INIT_FCALL                                               'sort'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                         $8      
          5        ASSIGN                                                   !2, $8
    7     6        INIT_FCALL                                               'sort'
          7        SEND_REF                                                 !1
          8        DO_ICALL                                         $10     
          9        ASSIGN                                                   !3, $10
    9    10      > FE_RESET_R                                       $12     !1, ->19
         11    > > FE_FETCH_R                                       ~13     $12, !4, ->19
         12    >   ASSIGN                                                   !5, ~13
   10    13        FETCH_DIM_R                                      ~15     !0, !5
         14        IS_SMALLER                                               !4, ~15
         15      > JMPZ                                                     ~16, ->18
   11    16    >   ECHO                                                     'DOESN%27T+FIT%21'
   12    17      > EXIT                                                     
    9    18    > > JMP                                                      ->11
         19    >   FE_FREE                                                  $12
   16    20        ECHO                                                     'FITS%21'
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.79 ms | 1387 KiB | 15 Q