3v4l.org

run code in 500+ PHP versions simultaneously
<?php $basket = [ 'apple', 'pear', 'banana', 1 ]; if (in_array('1', $basket, true)) { $basket[] = 'raspberry'; } var_dump($basket);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/rq1l5
function name:  (null)
number of ops:  10
compiled vars:  !0 = $basket
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    5     1        FRAMELESS_ICALL_3                in_array            ~2      '1', !0
          2        OP_DATA                                                      <true>
          3      > JMPZ                                                         ~2, ->6
    6     4    >   ASSIGN_DIM                                                   !0
          5        OP_DATA                                                      'raspberry'
    9     6    >   INIT_FCALL                                                   'var_dump'
          7        SEND_VAR                                                     !0
          8        DO_ICALL                                                     
          9      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.08 ms | 1738 KiB | 14 Q