3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bla = array(); $bla[true] = '5.4.3'; $bla[false] = '3.0.8'; var_dump($bla); echo $bla[true], $bla[false];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hWYXY
function name:  (null)
number of ops:  13
compiled vars:  !0 = $bla
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN_DIM                                               !0, <true>
          2        OP_DATA                                                  '5.4.3'
    4     3        ASSIGN_DIM                                               !0, <false>
          4        OP_DATA                                                  '3.0.8'
    5     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    6     8        FETCH_DIM_R                                      ~5      !0, <true>
          9        ECHO                                                     ~5
         10        FETCH_DIM_R                                      ~6      !0, <false>
         11        ECHO                                                     ~6
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.83 ms | 1394 KiB | 15 Q