3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myarray = array("Apples", "Oranges", "Pears"); $size = count($myarray); $output = print_r($myarray, true); print $output; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cbvsG
function name:  (null)
number of ops:  10
compiled vars:  !0 = $myarray, !1 = $size, !2 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        COUNT                                            ~4      !0
          2        ASSIGN                                                   !1, ~4
    4     3        INIT_FCALL                                               'print_r'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 <true>
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !2, $6
    5     8        ECHO                                                     !2
    6     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
190.54 ms | 1394 KiB | 15 Q