3v4l.org

run code in 300+ PHP versions simultaneously
<?php // $array = ['Prinsha', 'Jypsy']; // echo $array[0]; // index is 0 // foreach($model as $key => $data) { // } // $array[1] = 'data'; // $array = ['model' => $model]; // $array = array(); // date('Y-m-d', strtotime("+3 days", $time)); $array = [1, 2, 3, 4]; echo $array[0]; $associative = ['a' => 'one', 'apple' => '3v4l']; echo $associative['a'] . "\n"; echo $associative['apple'] . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6mQiE
function name:  (null)
number of ops:  11
compiled vars:  !0 = $array, !1 = $associative
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   ASSIGN                                                   !0, <array>
   19     1        FETCH_DIM_R                                      ~3      !0, 0
          2        ECHO                                                     ~3
   21     3        ASSIGN                                                   !1, <array>
   22     4        FETCH_DIM_R                                      ~5      !1, 'a'
          5        CONCAT                                           ~6      ~5, '%0A'
          6        ECHO                                                     ~6
   23     7        FETCH_DIM_R                                      ~7      !1, 'apple'
          8        CONCAT                                           ~8      ~7, '%0A'
          9        ECHO                                                     ~8
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.66 ms | 1393 KiB | 13 Q