3v4l.org

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

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.70.0030.01616.50
8.3.60.0110.00716.63
8.3.50.0100.00622.05
8.3.40.0140.00018.52
8.3.30.0090.00618.78
8.3.20.0050.00220.04
8.3.10.0080.00023.66
8.3.00.0040.00419.25
8.2.180.0180.00018.31
8.2.170.0110.00422.96
8.2.160.0100.00720.43
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0000.00726.16
8.2.120.0000.00721.12
8.2.110.0030.00722.16
8.2.100.0060.00617.86
8.2.90.0080.00018.97
8.2.80.0050.00317.97
8.2.70.0090.00017.50
8.2.60.0060.00319.53
8.2.50.0000.00818.07
8.2.40.0000.00819.96
8.2.30.0000.00719.76
8.2.20.0040.00417.68
8.2.10.0040.00418.04
8.2.00.0000.00817.59
8.1.280.0090.00625.92
8.1.270.0040.00423.84
8.1.260.0060.00326.35
8.1.250.0000.00728.09
8.1.240.0050.00523.92
8.1.230.0040.00719.16
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0050.00517.25
8.1.190.0030.00717.14
8.1.180.0000.00918.10
8.1.170.0040.00418.56
8.1.160.0040.00421.89
8.1.150.0000.00818.50
8.1.140.0040.00417.44
8.1.130.0000.00717.87
8.1.120.0000.00717.46
8.1.110.0040.00417.30
8.1.100.0020.00517.48
8.1.90.0070.00017.46
8.1.80.0040.00417.34
8.1.70.0000.00717.33
8.1.60.0040.00417.57
8.1.50.0000.00817.45
8.1.40.0040.00417.41
8.1.30.0000.00817.58
8.1.20.0020.00517.66
8.1.10.0070.00017.49
8.1.00.0040.00417.29
8.0.300.0000.00720.65
8.0.290.0040.00417.16
8.0.280.0000.00718.39
8.0.270.0000.00717.19
8.0.260.0000.00617.16
8.0.250.0000.00716.86
8.0.240.0040.00416.83
8.0.230.0070.00016.78
8.0.220.0000.00716.78
8.0.210.0000.00716.72
8.0.200.0000.00716.92
8.0.190.0000.00716.91
8.0.180.0030.00516.73
8.0.170.0030.00516.93
8.0.160.0000.00716.75
8.0.150.0000.00716.79
8.0.140.0050.00316.72
8.0.130.0030.00313.30
8.0.120.0040.00416.73
8.0.110.0040.00416.70
8.0.100.0040.00416.86
8.0.90.0000.00816.89
8.0.80.0070.01016.83
8.0.70.0050.00216.83
8.0.60.0040.00416.71
8.0.50.0000.00816.81
8.0.30.0070.01417.23
8.0.20.0150.00917.40
8.0.10.0000.00816.83
8.0.00.0070.01716.85
7.4.330.0060.00015.14
7.4.320.0070.00016.63
7.4.300.0030.00316.39
7.4.290.0030.00616.43
7.4.280.0070.00316.57
7.4.270.0070.00016.60
7.4.260.0000.00716.59
7.4.250.0040.00416.50
7.4.240.0030.00316.57
7.4.230.0000.00716.41
7.4.220.0160.01016.70
7.4.210.0070.00916.52
7.4.200.0030.00616.48
7.4.190.0000.00716.68
7.4.160.0060.00916.51
7.4.150.0110.00617.40
7.4.140.0120.00817.86
7.4.130.0140.00616.57
7.4.120.0100.00716.56
7.4.110.0110.00616.70
7.4.100.0130.00616.36
7.4.90.0090.00916.44
7.4.80.0030.01819.39
7.4.70.0130.00316.48
7.4.60.0100.00716.33
7.4.50.0090.00016.57
7.4.40.0070.01116.34
7.4.30.0120.00316.66
7.4.00.0080.00814.80
7.3.330.0030.00313.06
7.3.320.0060.00013.06
7.3.310.0030.00316.27
7.3.300.0030.00316.07
7.3.290.0100.00916.22
7.3.280.0070.01016.22
7.3.270.0140.01017.40
7.3.260.0090.00916.29
7.3.250.0140.00316.38
7.3.240.0100.00716.39
7.3.230.0070.01316.39
7.3.210.0120.00416.31
7.3.200.0060.01519.39
7.3.190.0130.00616.34
7.3.180.0030.01316.12
7.3.170.0110.00416.37
7.3.160.0110.00416.27
7.3.120.0030.01014.61
7.3.10.0080.00616.43
7.3.00.0170.00716.12
7.2.330.0100.00716.57
7.2.320.0070.01516.46
7.2.310.0030.01716.67
7.2.300.0100.00716.38
7.2.290.0150.00816.54
7.2.130.0130.01116.32
7.2.120.0210.00616.28
7.2.110.0220.00916.27
7.2.100.0220.00016.57
7.2.90.0140.00316.64
7.2.80.0310.00316.66
7.2.70.0150.00616.33
7.2.60.0120.00916.57
7.2.50.0150.01216.23
7.2.40.0130.00715.95
7.2.30.0160.00816.19
7.2.20.0190.00616.25
7.2.10.0130.01316.38
7.2.00.0120.00718.08
7.1.250.0170.00015.13
7.1.100.0040.00717.98
7.1.70.0110.00316.79
7.1.60.0070.01719.46
7.1.50.0100.00016.96
7.1.00.0000.08022.37
7.0.200.0000.01016.69
7.0.140.0000.07022.10
7.0.60.0070.07719.92
7.0.50.0070.08317.84
7.0.40.0130.08020.12
7.0.30.0300.04320.01
7.0.20.0330.06320.14
7.0.10.0100.05320.38
7.0.00.0130.08320.11
5.6.280.0000.07020.85
5.6.210.0170.06720.55
5.6.200.0200.03318.21
5.6.190.0070.06720.41
5.6.180.0370.08020.62
5.6.170.0300.09020.54
5.6.160.0100.07720.40
5.6.150.0100.08018.08
5.6.140.0100.08018.14
5.6.130.0100.07718.15
5.6.120.0030.04321.13
5.6.110.0130.07720.96
5.6.100.0030.06320.95
5.6.90.0100.04720.94
5.6.80.0030.08320.53
5.5.350.4070.04320.37
5.5.340.0130.03717.95
5.5.330.0000.04720.07
5.5.320.0430.04720.31
5.5.310.0330.08020.24
5.5.300.0170.05718.00
5.5.290.0070.05717.97
5.5.280.0130.06720.87
5.5.270.0100.06020.79
5.5.260.0030.05720.84
5.5.250.0070.04320.68
5.5.240.0030.08020.25
5.4.450.0070.06019.52
5.4.440.0130.05719.45
5.4.430.0170.05019.63
5.4.420.0070.06019.54
5.4.410.0130.07019.00
5.4.400.0200.05719.13
5.4.390.0230.06019.33
5.4.380.0100.06018.74
5.4.370.0030.06718.66
5.4.360.0100.06718.69
5.4.350.0270.08018.65
5.4.340.0230.04318.53
5.4.320.0050.03712.45
5.4.310.0070.03712.45
5.4.300.0050.03812.45
5.4.290.0100.03812.43
5.4.280.0070.03912.33
5.4.270.0030.04112.33
5.4.260.0060.04112.33
5.4.250.0080.04312.33
5.4.240.0050.03612.33
5.4.230.0070.03912.32
5.4.220.0040.03812.32
5.4.210.0050.03612.32
5.4.200.0050.03812.32
5.4.190.0060.03612.32
5.4.180.0040.03912.32
5.4.170.0090.04012.33
5.4.160.0100.04012.32
5.4.150.0110.04712.32
5.4.140.0080.04312.00
5.4.130.0050.03911.99
5.4.120.0040.03711.95
5.4.110.0010.04011.95
5.4.100.0050.03611.95
5.4.90.0080.03611.95
5.4.80.0050.03711.95
5.4.70.0040.03611.95
5.4.60.0060.03611.95
5.4.50.0040.03811.95
5.4.40.0050.04011.93
5.4.30.0070.03911.93
5.4.20.0060.03811.93
5.4.10.0080.04311.93
5.4.00.0060.03911.42
5.3.290.0060.04512.80
5.3.280.0120.06212.71
5.3.270.0070.04312.72
5.3.260.0150.05012.72
5.3.250.0120.05612.72
5.3.240.0150.06712.72
5.3.230.0100.03812.71
5.3.220.0070.04412.68
5.3.210.0090.03912.68
5.3.200.0060.03712.68
5.3.190.0070.03812.68
5.3.180.0050.04012.67
5.3.170.0070.03512.66
5.3.160.0060.03812.68
5.3.150.0050.04012.68
5.3.140.0080.03912.66
5.3.130.0050.04612.66
5.3.120.0090.03712.66
5.3.110.0080.03912.66
5.3.100.0070.03612.12
5.3.90.0030.04512.09
5.3.80.0060.04412.08
5.3.70.0060.03712.08
5.3.60.0050.03812.06
5.3.50.0080.04512.00
5.3.40.0060.04112.00
5.3.30.0070.03511.94
5.3.20.0070.03911.72
5.3.10.0060.03911.69
5.3.00.0050.04011.67
5.2.170.0100.0319.18
5.2.160.0050.0509.18
5.2.150.0080.0369.18
5.2.140.0060.0459.18
5.2.130.0030.0409.13
5.2.120.0100.0609.14
5.2.110.0070.0349.14
5.2.100.0070.0329.14
5.2.90.0060.0319.14
5.2.80.0060.0299.13
5.2.70.0040.0339.13
5.2.60.0090.0299.09
5.2.50.0060.0309.05
5.2.40.0050.0289.03
5.2.30.0030.0319.01
5.2.20.0070.0289.00
5.2.10.0050.0288.93
5.2.00.0050.0308.79
5.1.60.0050.0248.07
5.1.50.0070.0448.07
5.1.40.0170.0388.06
5.1.30.0050.0398.41
5.1.20.0020.0418.43
5.1.10.0060.0358.15
5.1.00.0050.0288.15
5.0.50.0070.0306.63
5.0.40.0050.0456.48
5.0.30.0060.0316.30
5.0.20.0060.0176.27
5.0.10.0030.0216.24
5.0.00.0030.0336.23
4.4.90.0060.0144.78
4.4.80.0040.0144.76
4.4.70.0040.0144.76
4.4.60.0040.0194.75
4.4.50.0050.0214.77
4.4.40.0040.0334.71
4.4.30.0030.0164.76
4.4.20.0110.0204.84
4.4.10.0010.0184.85
4.4.00.0030.0254.76
4.3.110.0040.0144.66
4.3.100.0010.0174.66
4.3.90.0050.0124.63
4.3.80.0030.0254.59
4.3.70.0050.0134.63
4.3.60.0010.0174.63
4.3.50.0030.0234.63
4.3.40.0030.0244.54
4.3.30.0030.0153.30
4.3.20.0020.0163.27
4.3.10.0040.0143.23
4.3.00.0030.0277.49

preferences:
39.24 ms | 401 KiB | 5 Q