3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.42 ms | 1400 KiB | 19 Q