3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'time'; $b = 'more'; $array = array( $a, $b ); var_dump($array); var_dump($array[1]); echo PHP_EOL; $array = compact( 'a', 'b' ); var_dump($array); var_dump($array[1]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gUWOB
function name:  (null)
number of ops:  26
compiled vars:  !0 = $a, !1 = $b, !2 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'time'
    4     1        ASSIGN                                                   !1, 'more'
    6     2        INIT_ARRAY                                       ~5      !0
          3        ADD_ARRAY_ELEMENT                                ~5      !1
          4        ASSIGN                                                   !2, ~5
    7     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                                 
    8     8        INIT_FCALL                                               'var_dump'
          9        FETCH_DIM_R                                      ~8      !2, 1
         10        SEND_VAL                                                 ~8
         11        DO_ICALL                                                 
    9    12        ECHO                                                     '%0A'
   11    13        INIT_FCALL                                               'compact'
         14        SEND_VAL                                                 'a'
         15        SEND_VAL                                                 'b'
         16        DO_ICALL                                         $10     
         17        ASSIGN                                                   !2, $10
   13    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                                 
   14    21        INIT_FCALL                                               'var_dump'
         22        FETCH_DIM_R                                      ~13     !2, 1
         23        SEND_VAL                                                 ~13
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.09 ms | 1460 KiB | 15 Q