3v4l.org

run code in 300+ PHP versions simultaneously
<?php $errorarray = array(); function addError($err) { array_push($errorarray, $err); } addError("Help"); addError("Test"); foreach ($errorarray as $val) { echo "<p>" . $val . "</p>"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/VTHNe
function name:  (null)
number of ops:  15
compiled vars:  !0 = $errorarray, !1 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1        INIT_FCALL                                               'adderror'
          2        SEND_VAL                                                 'Help'
          3        DO_FCALL                                      0          
   11     4        INIT_FCALL                                               'adderror'
          5        SEND_VAL                                                 'Test'
          6        DO_FCALL                                      0          
   13     7      > FE_RESET_R                                       $5      !0, ->13
          8    > > FE_FETCH_R                                               $5, !1, ->13
   14     9    >   CONCAT                                           ~6      '%3Cp%3E', !1
         10        CONCAT                                           ~7      ~6, '%3C%2Fp%3E'
         11        ECHO                                                     ~7
   13    12      > JMP                                                      ->8
         13    >   FE_FREE                                                  $5
   15    14      > RETURN                                                   1

Function adderror:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VTHNe
function name:  addError
number of ops:  6
compiled vars:  !0 = $err, !1 = $errorarray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        INIT_FCALL                                               'array_push'
          2        SEND_REF                                                 !1
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    8     5      > RETURN                                                   null

End of function adderror

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
228.56 ms | 1397 KiB | 17 Q