3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = range(-10, 10); $b = range(-10, 10, 0.5); $opResults = []; $funcResults = []; foreach($a as $_a) { foreach($b as $_b) { $opResults[] = $_a ** $_b; $funcResults[] = pow($_a, $_b); } } var_dump($opResults === $funcResults, array_diff($opResults, $funcResults));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 29
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 29
Branch analysis from position: 15
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 27
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 27
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 27
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
filename:       /in/rQhr7
function name:  (null)
number of ops:  40
compiled vars:  !0 = $a, !1 = $b, !2 = $opResults, !3 = $funcResults, !4 = $_a, !5 = $_b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 -10
          2        SEND_VAL                                                 10
          3        DO_ICALL                                         $6      
          4        ASSIGN                                                   !0, $6
    5     5        INIT_FCALL                                               'range'
          6        SEND_VAL                                                 -10
          7        SEND_VAL                                                 10
          8        SEND_VAL                                                 0.5
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !1, $8
    7    11        ASSIGN                                                   !2, <array>
    9    12        ASSIGN                                                   !3, <array>
   11    13      > FE_RESET_R                                       $12     !0, ->29
         14    > > FE_FETCH_R                                               $12, !4, ->29
   12    15    > > FE_RESET_R                                       $13     !1, ->27
         16    > > FE_FETCH_R                                               $13, !5, ->27
   13    17    >   POW                                              ~15     !4, !5
         18        ASSIGN_DIM                                               !2
         19        OP_DATA                                                  ~15
   14    20        INIT_FCALL                                               'pow'
         21        SEND_VAR                                                 !4
         22        SEND_VAR                                                 !5
         23        DO_ICALL                                         $17     
         24        ASSIGN_DIM                                               !3
         25        OP_DATA                                                  $17
   12    26      > JMP                                                      ->16
         27    >   FE_FREE                                                  $13
   11    28      > JMP                                                      ->14
         29    >   FE_FREE                                                  $12
   18    30        INIT_FCALL                                               'var_dump'
         31        IS_IDENTICAL                                     ~18     !2, !3
         32        SEND_VAL                                                 ~18
         33        INIT_FCALL                                               'array_diff'
         34        SEND_VAR                                                 !2
         35        SEND_VAR                                                 !3
         36        DO_ICALL                                         $19     
         37        SEND_VAR                                                 $19
         38        DO_ICALL                                                 
         39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.44 ms | 1400 KiB | 21 Q