3v4l.org

run code in 300+ PHP versions simultaneously
<?php $method = 'GET'; $test_method = 'HEAD'; $methods = array('POST', 'GET'); foreach ((array) $method as $test) { var_dump($test); } foreach ((array) $methods as $test) { var_dump($test); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 10
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 10
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 18
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 18
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
Branch analysis from position: 10
filename:       /in/ABYFF
function name:  (null)
number of ops:  20
compiled vars:  !0 = $method, !1 = $test_method, !2 = $methods, !3 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'GET'
    4     1        ASSIGN                                                   !1, 'HEAD'
    5     2        ASSIGN                                                   !2, <array>
    7     3        CAST                                          7  ~7      !0
          4      > FE_RESET_R                                       $8      ~7, ->10
          5    > > FE_FETCH_R                                               $8, !3, ->10
    8     6    >   INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !3
          8        DO_ICALL                                                 
    7     9      > JMP                                                      ->5
         10    >   FE_FREE                                                  $8
   10    11        CAST                                          7  ~10     !2
         12      > FE_RESET_R                                       $11     ~10, ->18
         13    > > FE_FETCH_R                                               $11, !3, ->18
   11    14    >   INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !3
         16        DO_ICALL                                                 
   10    17      > JMP                                                      ->13
         18    >   FE_FREE                                                  $11
   12    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.33 ms | 1395 KiB | 15 Q