3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.89 ms | 1005 KiB | 15 Q