3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(-10 ** 2.5); $a = range(-0, 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, $opResults, $funcResults);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 17, Position 2 = 32
Branch analysis from position: 17
2 jumps found. (Code = 78) Position 1 = 18, Position 2 = 32
Branch analysis from position: 18
2 jumps found. (Code = 77) Position 1 = 19, Position 2 = 30
Branch analysis from position: 19
2 jumps found. (Code = 78) Position 1 = 20, Position 2 = 30
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 30
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
filename:       /in/8u3Ll
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                                               'var_dump'
          1        SEND_VAL                                                 -316.228
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'range'
          4        SEND_VAL                                                 0
          5        SEND_VAL                                                 10
          6        DO_ICALL                                         $7      
          7        ASSIGN                                                   !0, $7
    6     8        INIT_FCALL                                               'range'
          9        SEND_VAL                                                 -10
         10        SEND_VAL                                                 10
         11        SEND_VAL                                                 0.5
         12        DO_ICALL                                         $9      
         13        ASSIGN                                                   !1, $9
    8    14        ASSIGN                                                   !2, <array>
   10    15        ASSIGN                                                   !3, <array>
   12    16      > FE_RESET_R                                       $13     !0, ->32
         17    > > FE_FETCH_R                                               $13, !4, ->32
   13    18    > > FE_RESET_R                                       $14     !1, ->30
         19    > > FE_FETCH_R                                               $14, !5, ->30
   14    20    >   POW                                              ~16     !0, !1
         21        ASSIGN_DIM                                               !2
         22        OP_DATA                                                  ~16
   15    23        INIT_FCALL                                               'pow'
         24        SEND_VAR                                                 !0
         25        SEND_VAR                                                 !1
         26        DO_ICALL                                         $18     
         27        ASSIGN_DIM                                               !3
         28        OP_DATA                                                  $18
   13    29      > JMP                                                      ->19
         30    >   FE_FREE                                                  $14
   12    31      > JMP                                                      ->17
         32    >   FE_FREE                                                  $13
   19    33        INIT_FCALL                                               'var_dump'
         34        IS_IDENTICAL                                     ~19     !2, !3
         35        SEND_VAL                                                 ~19
         36        SEND_VAR                                                 !2
         37        SEND_VAR                                                 !3
         38        DO_ICALL                                                 
         39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.03 ms | 1400 KiB | 19 Q