3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( array(1, 2, 3), 'toto', array(4, 5, 6), ); echo count($arr), PHP_EOL, count($arr, COUNT_RECURSIVE), PHP_EOL;

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0040.01118.30
8.3.50.0070.01022.10
8.3.40.0040.01118.65
8.3.30.0030.01018.96
8.3.20.0070.00020.30
8.3.10.0040.00423.66
8.3.00.0080.00019.26
8.2.180.0070.00717.93
8.2.170.0060.00822.96
8.2.160.0030.01020.52
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0000.00722.27
8.2.110.0060.00322.14
8.2.100.0060.00617.65
8.2.90.0030.00619.17
8.2.80.0050.00317.97
8.2.70.0080.00017.63
8.2.60.0080.00019.52
8.2.50.0040.00418.07
8.2.40.0030.00619.95
8.2.30.0060.00319.85
8.2.20.0080.00017.74
8.2.10.0050.00218.11
8.2.00.0040.00417.67
8.1.280.0030.01025.92
8.1.270.0040.00423.91
8.1.260.0000.00926.35
8.1.250.0050.00328.09
8.1.240.0090.00023.91
8.1.230.0040.00719.02
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.25
8.1.190.0030.00617.50
8.1.180.0090.00018.10
8.1.170.0000.00818.44
8.1.160.0040.00422.05
8.1.150.0060.00318.62
8.1.140.0000.00717.36
8.1.130.0000.00717.82
8.1.120.0000.00717.41
8.1.110.0040.00417.42
8.1.100.0000.00717.45
8.1.90.0000.00717.34
8.1.80.0000.00817.46
8.1.70.0000.00717.36
8.1.60.0030.00617.49
8.1.50.0040.00417.48
8.1.40.0090.00017.45
8.1.30.0060.00317.50
8.1.20.0000.00717.66
8.1.10.0070.00017.42
8.1.00.0000.00717.45
8.0.300.0000.00720.64
8.0.290.0070.00017.16
8.0.280.0030.00318.49
8.0.270.0080.00017.24
8.0.260.0070.00017.25
8.0.250.0040.00416.93
8.0.240.0000.00717.01
8.0.230.0000.00816.90
8.0.220.0050.00216.70
8.0.210.0000.00816.82
8.0.200.0000.00716.89
8.0.190.0070.00016.79
8.0.180.0040.00416.84
8.0.170.0000.00916.89
8.0.160.0000.00716.95
8.0.150.0060.00616.81
8.0.140.0000.00716.86
8.0.130.0050.00013.37
8.0.120.0040.00416.82
8.0.110.0000.00716.88
8.0.100.0040.00416.88
8.0.90.0070.00016.75
8.0.80.0070.00716.76
8.0.70.0000.00816.95
8.0.60.0000.00816.78
8.0.50.0000.00716.74
8.0.30.0090.00917.14
8.0.20.0080.01017.40
8.0.10.0040.00417.00
8.0.00.0140.00516.73
7.4.330.0050.00015.00
7.4.320.0070.00016.54
7.4.300.0060.00016.43
7.4.290.0080.00016.60
7.4.280.0100.00016.50
7.4.270.0000.00816.49
7.4.260.0000.00716.47
7.4.250.0020.00516.44
7.4.240.0000.00716.52
7.4.230.0000.00716.38
7.4.220.0070.01016.56
7.4.210.0050.00916.51
7.4.200.0000.00716.66
7.4.190.0030.00316.72
7.4.160.0130.00316.48
7.4.150.0060.01517.40
7.4.140.0070.01217.86
7.4.130.0120.00516.44
7.4.120.0090.01216.48
7.4.110.0130.00916.44
7.4.100.0170.00716.58
7.4.90.0060.01016.39
7.4.80.0090.01519.39
7.4.70.0060.01216.37
7.4.60.0130.00616.36
7.4.50.0000.00816.54
7.4.40.0150.00616.58
7.4.30.0070.01016.49
7.4.00.0060.00914.78
7.3.330.0040.00412.92
7.3.320.0030.00212.91
7.3.310.0050.00216.12
7.3.300.0000.00716.21
7.3.290.0030.01216.15
7.3.280.0120.00516.24
7.3.270.0130.00317.40
7.3.260.0120.00616.24
7.3.250.0120.00516.28
7.3.240.0040.01216.24
7.3.230.0090.01216.39
7.3.210.0150.00916.29
7.3.200.0100.01019.39
7.3.190.0090.01116.30
7.3.180.0100.01016.25
7.3.170.0090.00616.27
7.3.160.0080.01516.43
7.3.120.0070.00714.66
7.3.10.0110.00416.57
7.3.00.0130.00316.51
7.2.330.0040.01416.67
7.2.320.0090.00916.61
7.2.310.0070.01016.75
7.2.300.0030.01316.52
7.2.290.0110.00616.48
7.2.130.0040.01216.63
7.2.120.0100.00616.86
7.2.110.0060.00616.94
7.2.100.0030.01316.82
7.2.90.0000.01716.94
7.2.80.0100.00416.67
7.2.70.0120.00016.57
7.2.60.0090.00616.56
7.2.50.0140.00416.86
7.2.40.0060.00916.67
7.2.30.0080.00317.03
7.2.20.0070.00716.91
7.2.10.0080.00416.87
7.2.00.0020.01218.12
7.1.250.0090.00515.85
7.1.200.0170.00415.68
7.1.100.0030.01018.09
7.1.70.0000.01017.13
7.1.60.0000.02519.46
7.1.50.0000.01416.89
7.1.00.0100.06722.46
7.0.200.0070.00016.75
7.0.140.0070.07022.15
7.0.60.0070.08720.02
7.0.50.0130.08017.88
7.0.40.0070.05319.98
7.0.30.0230.04020.17
7.0.20.0270.06720.01
7.0.10.0070.04320.04
7.0.00.0170.03020.12
5.6.280.0070.07020.99
5.6.210.0100.06720.50
5.6.200.0030.05718.12
5.6.190.0100.08320.60
5.6.180.0400.06020.62
5.6.170.0270.07720.54
5.6.160.0100.08720.40
5.6.150.0070.07718.21
5.6.140.0030.08018.10
5.6.130.0100.06318.11
5.6.120.0200.05721.01
5.6.110.0030.08721.00
5.6.100.0070.03721.00
5.6.90.0070.07721.11
5.6.80.0100.07020.37
5.5.350.4530.04020.37
5.5.340.0130.07317.98
5.5.330.0030.04720.40
5.5.320.0370.07720.18
5.5.310.0130.05020.18
5.5.300.0070.08317.95
5.5.290.0070.07017.96
5.5.280.0070.08320.96
5.5.270.0170.07320.95
5.5.260.0070.08320.96
5.5.250.0070.08720.68
5.5.240.0000.08020.36
5.4.450.0170.07319.48
5.4.440.0230.04719.64
5.4.430.0230.05319.10
5.4.420.0170.06019.24
5.4.410.0130.05319.39
5.4.400.0100.05718.81
5.4.390.0230.06719.30
5.4.380.0200.07318.68
5.4.370.0170.05718.62
5.4.360.0230.04318.53
5.4.350.0070.06718.72
5.4.340.0100.05718.59
5.4.320.0070.04412.45
5.4.310.0090.03512.45
5.4.300.0040.05012.45
5.4.290.0050.05812.43
5.4.280.0080.05012.33
5.4.270.0070.05612.33
5.4.260.0110.05512.33
5.4.250.0180.04812.33
5.4.240.0140.05212.33
5.4.230.0100.06112.32
5.4.220.0230.11712.32
5.4.210.0450.13212.32
5.4.200.0300.08312.32
5.4.190.0180.08912.32
5.4.180.0270.09412.32
5.4.170.0260.08812.33
5.4.160.0100.05612.32
5.4.150.0070.05412.32
5.4.140.0100.05812.00
5.4.130.0110.05511.99
5.4.120.0120.05811.95
5.4.110.0110.05611.95
5.4.100.0100.05511.95
5.4.90.0110.05911.95
5.4.80.0130.05511.95
5.4.70.0120.05111.95
5.4.60.0150.07011.95
5.4.50.0030.05711.94
5.4.40.0100.05011.93
5.4.30.0130.05511.93
5.4.20.0170.06711.93
5.4.10.0110.05511.93
5.4.00.0130.06311.42
5.3.290.0100.05112.80
5.3.280.0140.05212.71
5.3.270.0180.08012.73
5.3.260.0210.10012.72
5.3.250.0090.05612.72
5.3.240.0090.05512.72
5.3.230.0090.05312.71
5.3.220.0100.05112.68
5.3.210.0130.05412.68
5.3.200.0110.05612.68
5.3.190.0190.06012.68
5.3.180.0310.09512.67
5.3.170.0180.11312.67
5.3.160.0350.09912.67
5.3.150.0250.11112.68
5.3.140.0210.07012.66
5.3.130.0190.05112.66
5.3.120.0270.10612.66
5.3.110.0150.09912.66
5.3.100.0160.09712.12
5.3.90.0150.07712.08
5.3.80.0180.08112.07
5.3.70.0110.05712.07
5.3.60.0180.08312.07
5.3.50.0130.05112.00
5.3.40.0120.04912.00
5.3.30.0110.05411.94
5.3.20.0100.09111.72
5.3.10.0100.08111.69
5.3.00.0080.04811.68
5.2.170.0100.0429.19
5.2.160.0060.0459.18
5.2.150.0200.0789.18
5.2.140.0070.0459.18
5.2.130.0250.0819.13
5.2.120.0070.0459.14
5.2.110.0100.0359.15
5.2.100.0090.0369.14
5.2.90.0090.0389.14
5.2.80.0080.0399.14
5.2.70.0030.0439.14
5.2.60.0070.0419.08
5.2.50.0050.0449.05
5.2.40.0060.0419.03
5.2.30.0060.0439.00
5.2.20.0100.0379.00
5.2.10.0140.0668.94
5.2.00.0040.0408.79
5.1.60.0090.0468.07
5.1.50.0060.0398.07
5.1.40.0100.0428.05
5.1.30.0040.0398.41
5.1.20.0040.0348.43
5.1.10.0060.0338.15
5.1.00.0080.0338.15
5.0.50.0040.0296.63
5.0.40.0050.0276.48
5.0.30.0020.0456.30
5.0.20.0070.0246.27
5.0.10.0040.0296.25
5.0.00.0070.0466.23
4.4.90.0250.0564.78
4.4.80.0110.0504.75
4.4.70.0100.0474.76
4.4.60.0100.0544.76
4.4.50.0050.0284.77
4.4.40.0070.0354.71
4.4.30.0110.0364.76
4.4.20.0070.0424.84
4.4.10.0080.0414.85
4.4.00.0080.0834.75
4.3.110.0090.0304.67
4.3.100.0110.0334.66
4.3.90.0050.0274.63
4.3.80.0030.0414.58
4.3.70.0140.0404.63
4.3.60.0100.0404.63
4.3.50.0050.0234.63
4.3.40.0050.0354.54
4.3.30.0020.0273.30
4.3.20.0000.0273.27
4.3.10.0050.0223.23
4.3.00.0030.0237.49

preferences:
44.03 ms | 401 KiB | 5 Q