3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cars=array ( "Volvo"=>array ( "XC60", "XC90" ), "BMW"=>array ( "X3", "X5" ), "Toyota"=>array ( "Highlander" ) ); echo "Normal count: " . count($cars)."<br>"; echo "Recursive count: " . count($cars,1); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mOoiW
function name:  (null)
number of ops:  12
compiled vars:  !0 = $cars
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   20     1        COUNT                                            ~2      !0
          2        CONCAT                                           ~3      'Normal+count%3A+', ~2
          3        CONCAT                                           ~4      ~3, '%3Cbr%3E'
          4        ECHO                                                     ~4
   21     5        INIT_FCALL                                               'count'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 1
          8        DO_ICALL                                         $5      
          9        CONCAT                                           ~6      'Recursive+count%3A+', $5
         10        ECHO                                                     ~6
   22    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.15 ms | 1394 KiB | 15 Q