3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = NULL; $b = array(); var_dump(count($a), count($b)); foreach((array)$a AS $c) { echo $c; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/j62oj
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, null
    4     1        ASSIGN                                                   !1, <array>
    6     2        INIT_FCALL                                               'var_dump'
          3        COUNT                                            ~5      !0
          4        SEND_VAL                                                 ~5
          5        COUNT                                            ~6      !1
          6        SEND_VAL                                                 ~6
          7        DO_ICALL                                                 
    8     8        CAST                                          7  ~8      !0
          9      > FE_RESET_R                                       $9      ~8, ->13
         10    > > FE_FETCH_R                                               $9, !2, ->13
    9    11    >   ECHO                                                     !2
    8    12      > JMP                                                      ->10
         13    >   FE_FREE                                                  $9
   10    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.83 ms | 1386 KiB | 15 Q