3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.27 ms | 1393 KiB | 15 Q