3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Create an array and push 5 elements on to it, then // print the number of elements in your array to the screen $types_of_fruit = array(); array_push($types_of_fruit, "Apples"); echo $types_of_fruit . "<br />"; array_push($types_of_fruit, "Bananas"); echo $types_of_fruit . "<br />"; array_push($types_of_fruit, "Oranges"); echo $types_of_fruit . "<br />"; array_push($types_of_fruit, "Lemons"); echo $types_of_fruit . "<br />"; array_push($types_of_fruit, "Limes"); echo $types_of_fruit . "<br />"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V9WS0
function name:  (null)
number of ops:  32
compiled vars:  !0 = $types_of_fruit
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'array_push'
          2        SEND_REF                                                 !0
          3        SEND_VAL                                                 'Apples'
          4        DO_ICALL                                                 
    6     5        CONCAT                                           ~3      !0, '%3Cbr+%2F%3E'
          6        ECHO                                                     ~3
    7     7        INIT_FCALL                                               'array_push'
          8        SEND_REF                                                 !0
          9        SEND_VAL                                                 'Bananas'
         10        DO_ICALL                                                 
    8    11        CONCAT                                           ~5      !0, '%3Cbr+%2F%3E'
         12        ECHO                                                     ~5
    9    13        INIT_FCALL                                               'array_push'
         14        SEND_REF                                                 !0
         15        SEND_VAL                                                 'Oranges'
         16        DO_ICALL                                                 
   10    17        CONCAT                                           ~7      !0, '%3Cbr+%2F%3E'
         18        ECHO                                                     ~7
   11    19        INIT_FCALL                                               'array_push'
         20        SEND_REF                                                 !0
         21        SEND_VAL                                                 'Lemons'
         22        DO_ICALL                                                 
   12    23        CONCAT                                           ~9      !0, '%3Cbr+%2F%3E'
         24        ECHO                                                     ~9
   13    25        INIT_FCALL                                               'array_push'
         26        SEND_REF                                                 !0
         27        SEND_VAL                                                 'Limes'
         28        DO_ICALL                                                 
   14    29        CONCAT                                           ~11     !0, '%3Cbr+%2F%3E'
         30        ECHO                                                     ~11
   15    31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.38 ms | 1396 KiB | 15 Q