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] . "\n"; // $associative = ['a' => '1', 'apple' => '3v4l', '1337' => 'PHP ']; // echo $associative['a'] + 1 . "\n"; // echo $associative['apple'] . "\n"; // echo $associative[1337] . "\n"; // $numbers = [1,2,3,4]; // $numbers[] = 5; // $numbers[] = 6; // echo $numbers[0] . "\n"; //1 // echo $numbers[4] . "\n"; // // echo $numbers[5] . "\n"; // $favColors = array(); // $favColors[] = 'BlanchedAlmond'; // $favColors[] = 'CadetBlue'; // $favColors[] = 'BurlyWood'; // $favColors[] = 'DarkOliveGreen'; // $favColors[] = 'HotPink'; // $favColors[] = 'Papayawhip'; // echo $favColors[0] . "\n"; // $matrix = // [ // [1, 2, 3], // [4, 5, 6], // [7, 8, 9] // ]; // echo $matrix[1][2]; // 6 $alphabets = ['b', 'c', 'a', 'z', 'y']; foreach($alphabets as $alphabet) { echo $alphabet . "\n"; } sort($alphabets); echo 'After sorting...'; foreach($alphabets as $alphabet) { echo $alphabet . "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 6
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 6
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 16
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
Branch analysis from position: 6
filename:       /in/2voPO
function name:  (null)
number of ops:  18
compiled vars:  !0 = $alphabets, !1 = $alphabet
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   53     0  E >   ASSIGN                                                   !0, <array>
   54     1      > FE_RESET_R                                       $3      !0, ->6
          2    > > FE_FETCH_R                                               $3, !1, ->6
   55     3    >   CONCAT                                           ~4      !1, '%0A'
          4        ECHO                                                     ~4
   54     5      > JMP                                                      ->2
          6    >   FE_FREE                                                  $3
   57     7        INIT_FCALL                                               'sort'
          8        SEND_REF                                                 !0
          9        DO_ICALL                                                 
   58    10        ECHO                                                     'After+sorting...'
   59    11      > FE_RESET_R                                       $6      !0, ->16
         12    > > FE_FETCH_R                                               $6, !1, ->16
   60    13    >   CONCAT                                           ~7      !1, '%0A'
         14        ECHO                                                     ~7
   59    15      > JMP                                                      ->12
         16    >   FE_FREE                                                  $6
   61    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.34 ms | 1395 KiB | 15 Q