3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.44 ms | 1400 KiB | 19 Q