3v4l.org

run code in 300+ PHP versions simultaneously
<?php $iWannaUseThePikey = array( // Look ma, it's an array 'foo' => '1', 'bar' => '2', 'baz' => '3', 'zip' => '1'); // This throws type warnings all over the place - no Timmy, it's not an array $boris = array_count_values($iWannaUseThePikey); // This doesn't. Let's cast the array to an array just to make sure... oh ok now it's an array $avi = array_count_values((array)$iWannaUseThePikey);

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.40.0040.01118.54
8.3.30.0080.00618.32
8.3.20.0080.00018.71
8.3.10.0060.00320.40
8.3.00.0100.00017.34
8.2.170.0070.01022.96
8.2.160.0140.00420.39
8.2.150.0000.00724.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0080.00019.10
8.2.110.0070.00321.06
8.2.100.0090.00317.72
8.2.90.0050.00319.38
8.2.80.0070.00019.04
8.2.70.0050.00317.50
8.2.60.0060.00317.93
8.2.50.0040.00418.07
8.2.40.0000.00718.21
8.2.30.0030.00517.93
8.2.20.0060.00319.39
8.2.10.0040.00417.74
8.2.00.0060.00317.72
8.1.270.0070.00724.66
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0040.00422.52
8.1.230.0070.00420.98
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0000.00917.11
8.1.190.0040.00417.41
8.1.180.0080.00018.10
8.1.170.0080.00018.90
8.1.160.0060.00318.88
8.1.150.0060.00318.57
8.1.140.0000.00717.28
8.1.130.0030.00317.88
8.1.120.0000.00717.46
8.1.110.0030.00517.27
8.1.100.0000.00717.30
8.1.90.0000.00717.39
8.1.80.0070.00017.36
8.1.70.0040.00417.41
8.1.60.0040.00417.57
8.1.50.0070.00017.38
8.1.40.0020.00517.54
8.1.30.0000.00817.61
8.1.20.0070.00017.57
8.1.10.0000.00717.43
8.1.00.0000.00817.34
8.0.300.0070.00020.09
8.0.290.0040.00416.75
8.0.280.0040.00418.36
8.0.270.0030.00317.05
8.0.260.0000.00716.80
8.0.250.0000.00816.91
8.0.240.0000.00716.85
8.0.230.0040.00416.89
8.0.220.0030.00316.85
8.0.210.0000.00716.86
8.0.200.0060.00016.77
8.0.190.0000.00816.75
8.0.180.0070.00016.82
8.0.170.0060.00316.79
8.0.160.0000.00816.71
8.0.150.0030.00616.81
8.0.140.0040.00416.69
8.0.130.0000.00513.32
8.0.120.0000.00816.76
8.0.110.0040.00416.80
8.0.100.0040.00416.76
8.0.90.0000.00716.62
8.0.80.0070.00916.76
8.0.70.0030.00516.68
8.0.60.0070.00016.68
8.0.50.0040.00416.88
8.0.30.0090.00916.89
8.0.20.0050.01416.98
8.0.10.0000.00716.98
8.0.00.0130.00516.53
7.4.330.0050.00013.04
7.4.320.0000.00616.57
7.4.300.0060.00016.41
7.4.290.0030.00316.48
7.4.280.0030.00516.54
7.4.270.0060.00016.51
7.4.260.0000.00613.21
7.4.250.0000.00816.50
7.4.240.0000.00716.52
7.4.230.0050.00216.55
7.4.220.0070.01016.59
7.4.210.0070.00916.53
7.4.200.0000.00716.52
7.4.190.0050.00216.45
7.4.160.0060.01016.34
7.4.150.0070.01116.68
7.4.140.0110.00616.41
7.4.130.0190.02216.42
7.4.120.0070.01016.49
7.4.110.0210.00316.41
7.4.100.0100.00716.44
7.4.90.0070.01116.61
7.4.80.0070.01419.39
7.4.70.0090.00916.54
7.4.60.0060.01016.36
7.4.50.0130.00016.38
7.4.40.0030.01316.34
7.4.30.0130.00316.47
7.4.10.0100.00714.64
7.4.00.0070.01014.94
7.3.330.0070.00012.94
7.3.320.0030.00312.95
7.3.310.0000.00816.06
7.3.300.0040.00416.05
7.3.290.0030.01316.16
7.3.280.0080.00916.22
7.3.270.0120.00616.05
7.3.260.0060.01016.43
7.3.250.0190.00016.19
7.3.240.0130.00316.29
7.3.230.0080.00916.43
7.3.210.0150.00616.20
7.3.200.0150.00316.20
7.3.190.0140.00716.45
7.3.180.0030.01216.28
7.3.170.0000.01616.25
7.3.160.0090.00916.12
7.3.130.0000.01914.78
7.3.120.0080.00914.64
7.3.110.0070.01114.55
7.3.100.0030.01014.84
7.3.90.0070.00714.99
7.3.80.0070.00714.49
7.3.70.0100.00314.54
7.3.60.0090.00614.53
7.3.50.0140.00314.71
7.3.40.0060.01214.70
7.3.30.0080.00414.68
7.3.20.0090.00616.55
7.3.10.0000.01716.57
7.3.00.0090.00916.22
7.2.330.0000.01716.48
7.2.320.0100.01016.66
7.2.310.0090.00916.63
7.2.300.0120.00616.63
7.2.290.0060.01016.58
7.2.260.0150.00414.93
7.2.250.0040.01114.96
7.2.240.0060.00915.26
7.2.230.0100.00315.10
7.2.220.0060.01214.89
7.2.210.0070.00715.16
7.2.200.0140.00214.87
7.2.190.0030.01714.93
7.2.180.0150.00314.58
7.2.170.0030.00914.94
7.2.160.0130.00014.89
7.2.150.0060.01316.79
7.2.140.0060.00916.86
7.2.130.0070.00317.00
7.2.120.0000.01416.72
7.2.110.0040.01116.82
7.2.100.0060.00616.89
7.2.90.0030.00616.90
7.2.80.0000.01116.59
7.2.70.0070.00716.95
7.2.60.0080.00516.91
7.2.50.0030.00916.95
7.2.40.0060.00616.98
7.2.30.0030.01016.63
7.2.20.0080.00416.57
7.2.10.0060.00916.72
7.2.00.0080.00718.11
7.1.330.0040.01015.35
7.1.320.0070.00715.90
7.1.310.0030.01015.76
7.1.300.0090.00915.84
7.1.290.0100.00615.76
7.1.280.0130.00315.51
7.1.270.0040.01115.68
7.1.260.0070.00415.45
7.1.250.0070.00715.70
7.1.240.0100.00315.80
7.1.230.0080.00815.83
7.1.220.0030.01215.56
7.1.210.0070.00415.69
7.1.200.0070.00415.76
7.1.190.0000.01215.88
7.1.180.0080.00015.80
7.1.170.0100.00315.49
7.1.160.0030.01015.89
7.1.150.0060.00315.78
7.1.140.0110.00415.86
7.1.130.0040.01115.87
7.1.120.0030.01215.48
7.1.110.0040.01115.72
7.1.100.0080.00616.84
7.1.90.0130.00015.70
7.1.80.0140.00015.93
7.1.70.0350.00615.61
7.1.60.0090.00917.43
7.1.50.0050.01216.25
7.1.40.0080.00615.47
7.1.30.0130.00615.82
7.1.20.0000.01015.84
7.1.10.0060.00615.75
7.1.00.0080.03719.11
7.0.330.0000.01315.55
7.0.320.0090.00615.38
7.0.310.0070.00315.38
7.0.300.0040.00415.33
7.0.290.0100.00315.18
7.0.280.0030.01015.35
7.0.270.0070.01015.50
7.0.260.0040.01115.39
7.0.250.0070.00715.21
7.0.240.0070.00715.38
7.0.230.0040.01415.34
7.0.220.0050.00815.46
7.0.210.0030.01015.43
7.0.200.0060.00516.01
7.0.190.0030.01015.24
7.0.180.0110.00415.23
7.0.170.0060.01315.36
7.0.160.0080.00515.43
7.0.150.0040.01115.55
7.0.140.0020.04318.70
7.0.130.0040.01215.43
7.0.120.0080.03318.67
7.0.110.0000.01115.32
7.0.100.0060.00615.36
7.0.90.0000.01315.47
7.0.80.0090.00015.29
7.0.70.0000.00815.14
7.0.60.0090.03617.57
7.0.50.0090.04316.65
7.0.40.0030.03015.58
7.0.30.0070.04015.63
7.0.20.0050.04715.60
7.0.10.0100.03515.57
7.0.00.0020.04715.55
5.6.400.0110.00714.26
5.6.390.0140.00014.07
5.6.380.0080.00413.92
5.6.370.0060.00314.05
5.6.360.0070.00313.82
5.6.350.0110.00414.56
5.6.340.0070.00714.50
5.6.330.0040.01114.54
5.6.320.0040.00714.50
5.6.310.0060.01014.37
5.6.300.0040.01114.00
5.6.290.0030.01313.96
5.6.280.0000.04517.60
5.6.270.0040.00414.02
5.6.260.0070.00414.50
5.6.250.0000.01114.24
5.6.240.0100.00314.25
5.6.230.0060.00614.20
5.6.220.0040.00714.20
5.6.210.0030.04717.37
5.6.200.0050.04316.07
5.6.190.0080.02516.15
5.6.180.0060.04716.23
5.6.170.0070.04416.27
5.6.160.0030.04716.24
5.6.150.0020.03916.36
5.6.140.0070.04416.08
5.6.130.0060.04016.15
5.6.120.0070.02316.20
5.6.110.0090.02016.21
5.6.100.0070.02016.34
5.6.90.0080.02116.26
5.6.80.0000.02615.88
5.6.70.0070.01815.81
5.6.60.0020.02615.79
5.6.50.0070.02315.90
5.6.40.0030.02915.92
5.6.30.0040.02615.93
5.6.20.0080.02015.90
5.6.10.0020.02716.02
5.6.00.0020.02515.85
5.5.380.0100.00714.04
5.5.370.0040.00814.09
5.5.360.0030.00614.11
5.5.350.0150.02617.41
5.5.340.0050.04216.03
5.5.330.0070.02816.28
5.5.320.0080.04516.06
5.5.310.0040.04816.00
5.5.300.0030.04215.90
5.5.290.0020.02515.96
5.5.280.0070.02316.02
5.5.270.0020.03416.11
5.5.260.0000.02916.13
5.5.250.0070.02315.98
5.5.240.0050.02015.73
5.5.230.0060.02015.63
5.5.220.0000.02615.69
5.5.210.0030.02315.70
5.5.200.0030.02715.81
5.5.190.0030.02515.64
5.5.180.0020.02515.84
5.5.170.0070.00713.93
5.5.160.0030.02515.64
5.5.150.0080.02215.62
5.5.140.0050.02215.70
5.5.130.0050.02015.79
5.5.120.0030.02415.77
5.5.110.0030.02315.79
5.5.100.0080.01815.68
5.5.90.0040.01815.62
5.5.80.0090.01915.67
5.5.70.0020.03915.76
5.5.60.0080.03815.63
5.5.50.0110.03715.57
5.5.40.0050.03815.74
5.5.30.0050.03615.55
5.5.20.0020.04415.56
5.5.10.0070.02015.67
5.5.00.0060.03615.54
5.4.450.0120.02715.63
5.4.440.0030.02315.55
5.4.430.0000.02515.64
5.4.420.0030.02415.63
5.4.410.0030.02215.62
5.4.400.0050.02015.39
5.4.390.0020.02215.47
5.4.380.0030.02015.47
5.4.370.0020.02215.58
5.4.360.0030.02015.54
5.4.350.0060.01815.47
5.4.340.0020.02315.42
5.4.330.0070.00411.95
5.4.320.0020.02315.47
5.4.310.0060.01815.46
5.4.300.0070.02115.47
5.4.290.0050.02115.45
5.4.280.0030.02015.52
5.4.270.0010.02115.47
5.4.260.0040.02215.58
5.4.250.0090.01715.51
5.4.240.0070.01915.51
5.4.230.0030.02315.47
5.4.220.0070.02315.49
5.4.210.0100.03015.53
5.4.200.0100.04115.45
5.4.190.0070.04015.52
5.4.180.0020.03815.46
5.4.170.0070.04215.49
5.4.160.0030.02715.46
5.4.150.0030.03715.57
5.4.140.0140.03014.16
5.4.130.0030.04314.14
5.4.120.0070.03414.12
5.4.110.0080.03314.06
5.4.100.0040.02414.17
5.4.90.0050.02214.12
5.4.80.0030.04114.09
5.4.70.0030.02414.11
5.4.60.0070.04014.14
5.4.50.0060.03114.10
5.4.40.0070.04214.15
5.4.30.0010.04414.15
5.4.20.0020.04114.10
5.4.10.0030.04014.22
5.4.00.0060.03213.89
5.3.290.0080.01813.31
5.3.280.0070.03813.32
5.3.270.0080.02513.25
5.3.260.0070.04213.25
5.3.250.0050.04113.26
5.3.240.0030.04213.25
5.3.230.0080.03713.20
5.3.220.0050.03513.23
5.3.210.0090.04013.25
5.3.200.0050.03913.17
5.3.190.0050.03813.24
5.3.180.0080.03513.23
5.3.170.0050.04013.16
5.3.160.0020.04513.21
5.3.150.0080.03013.24
5.3.140.0050.04413.22
5.3.130.0060.03613.23
5.3.120.0020.04713.16
5.3.110.0100.03013.24
5.3.100.0070.02912.98
5.3.90.0060.02812.94
5.3.80.0080.03512.96
5.3.70.0060.03112.87
5.3.60.0080.03812.96
5.3.50.0050.03312.83
5.3.40.0050.03512.93
5.3.30.0090.03212.81
5.3.20.0020.04012.82
5.3.10.0080.03612.77
5.3.00.0070.02812.75
5.2.170.0100.05711.29
5.2.160.0030.06311.13
5.2.150.0100.05011.06
5.2.140.0070.06010.96
5.2.130.0000.04711.07
5.2.120.0030.06311.00
5.2.110.0100.05311.07
5.2.100.0000.05011.04
5.2.90.0070.04011.07
5.2.80.0070.05311.04
5.2.70.0070.06011.02
5.2.60.0070.05310.87
5.2.50.0030.05011.16
5.2.40.0030.05311.14
5.2.30.0070.06310.93
5.2.20.0170.03010.84
5.2.10.0100.03710.70
5.2.00.0070.05010.73
5.1.60.0070.0609.93
5.1.50.0070.0479.98
5.1.40.0000.0339.98
5.1.30.0070.03310.34
5.1.20.0030.05710.38
5.1.10.0130.04710.03
5.1.00.0070.04710.14
5.0.50.0070.0238.57
5.0.40.0070.0278.33
5.0.30.0070.0438.27
5.0.20.0030.0438.27
5.0.10.0030.0408.27
5.0.00.0030.0638.27
4.4.90.0000.0338.27
4.4.80.0000.0238.27
4.4.70.0000.0378.27
4.4.60.0000.0378.27
4.4.50.0000.0408.27
4.4.40.0030.0278.27
4.4.30.0030.0138.27
4.4.20.0030.0378.27
4.4.10.0030.0238.27
4.4.00.0030.0578.27
4.3.110.0030.0208.27
4.3.100.0000.0378.27
4.3.90.0030.0378.27
4.3.80.0000.0378.27
4.3.70.0070.0338.27
4.3.60.0000.0308.27
4.3.50.0000.0308.27
4.3.40.0070.0478.27
4.3.30.0030.0378.27
4.3.20.0070.0308.27
4.3.10.0030.0378.27
4.3.00.0000.0378.27

preferences:
42.94 ms | 400 KiB | 5 Q