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 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.70.0110.00616.50
8.3.60.0140.00016.50
8.3.50.0110.00717.42
8.3.40.0150.00618.59
8.3.30.0100.00318.54
8.3.20.0120.00318.34
8.3.10.0050.00320.39
8.3.00.0080.00019.13
8.2.180.0130.00716.50
8.2.170.0170.00322.96
8.2.160.0120.00620.77
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0040.00419.36
8.2.110.0030.00721.11
8.2.100.0060.00617.71
8.2.90.0030.00619.09
8.2.80.0030.00617.93
8.2.70.0040.00417.63
8.2.60.0040.00417.68
8.2.50.0000.00818.07
8.2.40.0040.00418.09
8.2.30.0000.00717.91
8.2.20.0070.00317.50
8.2.10.0040.00417.57
8.2.00.0040.00417.73
8.1.280.0110.00425.92
8.1.270.0050.00224.66
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0000.00920.75
8.1.230.0060.00620.94
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0000.00717.28
8.1.180.0080.00018.10
8.1.170.0040.00418.84
8.1.160.0030.00518.82
8.1.150.0070.00018.61
8.1.140.0020.00517.43
8.1.130.0000.00717.82
8.1.120.0000.00817.34
8.1.110.0040.00417.26
8.1.100.0040.00417.43
8.1.90.0040.00417.32
8.1.80.0000.00717.43
8.1.70.0040.00417.32
8.1.60.0080.00017.46
8.1.50.0070.00017.36
8.1.40.0040.00417.39
8.1.30.0050.00317.63
8.1.20.0030.00617.57
8.1.10.0050.00317.47
8.1.00.0040.00417.42
8.0.300.0000.00719.89
8.0.290.0040.00416.63
8.0.280.0030.00318.39
8.0.270.0000.00717.09
8.0.260.0060.00016.75
8.0.250.0020.00516.88
8.0.240.0080.00016.85
8.0.230.0030.00316.88
8.0.220.0000.00716.84
8.0.210.0070.00016.84
8.0.200.0030.00316.77
8.0.190.0030.00516.86
8.0.180.0000.00816.81
8.0.170.0080.00016.87
8.0.160.0000.00716.81
8.0.150.0030.00616.73
8.0.140.0000.00916.77
8.0.130.0030.00313.32
8.0.120.0000.00816.80
8.0.110.0040.00416.71
8.0.100.0000.00716.93
8.0.90.0000.00716.62
8.0.80.0140.00716.86
8.0.70.0000.00816.65
8.0.60.0040.00416.74
8.0.50.0040.00416.64
8.0.30.0180.00716.99
8.0.20.0070.01216.74
8.0.10.0040.00316.80
8.0.00.0110.01116.76
7.4.330.0030.00313.00
7.4.320.0060.00316.51
7.4.300.0030.00616.35
7.4.290.0000.00716.53
7.4.280.0040.00416.57
7.4.270.0070.00016.52
7.4.260.0000.00513.25
7.4.250.0070.00316.35
7.4.240.0000.00716.61
7.4.230.0000.00716.49
7.4.220.0030.01416.45
7.4.210.0100.00516.52
7.4.200.0040.00416.66
7.4.190.0040.00416.53
7.4.160.0070.00716.57
7.4.150.0030.01316.41
7.4.140.0140.00816.46
7.4.130.0080.01116.44
7.4.120.0090.01016.45
7.4.110.0140.00316.41
7.4.100.0100.00616.47
7.4.90.0030.01316.40
7.4.80.0100.00716.56
7.4.70.0070.01116.66
7.4.60.0110.00916.25
7.4.50.0060.00316.34
7.4.40.0040.00816.33
7.4.30.0100.01016.41
7.4.00.0030.01015.01
7.3.330.0000.00613.03
7.3.320.0000.00513.12
7.3.310.0000.00716.23
7.3.300.0040.00416.18
7.3.290.0100.00316.23
7.3.280.0080.01016.21
7.3.270.0030.01316.33
7.3.260.0090.01416.28
7.3.250.0110.01216.29
7.3.240.0190.00316.14
7.3.230.0100.00616.51
7.3.210.0030.01316.22
7.3.200.0100.00619.39
7.3.190.0080.00816.51
7.3.180.0120.00316.23
7.3.170.0040.01316.45
7.3.160.0090.00616.50
7.3.120.0110.00314.77
7.2.330.0130.00716.41
7.2.320.0110.00716.68
7.2.310.0150.00816.64
7.2.300.0090.00916.41
7.2.290.0100.00716.55
7.2.00.0070.01019.21
7.1.100.0030.00718.03
7.1.70.0000.00917.04
7.1.60.0040.01919.40
7.1.50.0070.01516.82
7.1.00.0030.05722.33
7.0.200.0040.00416.67
7.0.140.0030.07322.07
7.0.120.0100.06722.05
7.0.60.0030.04020.03
7.0.50.0100.06717.77
7.0.40.0100.06320.41
7.0.30.0330.04320.04
7.0.20.0130.07320.01
7.0.10.0030.06020.16
7.0.00.0100.08020.00
5.6.210.0070.06320.51
5.6.200.0270.05018.18
5.6.190.0000.08720.41
5.6.180.0600.03720.35
5.6.170.0370.05320.34
5.6.160.0130.07720.49
5.6.150.0030.04718.19
5.6.140.0070.08718.13
5.6.130.0100.04318.11
5.6.120.0100.08321.05
5.6.110.0130.06321.08
5.6.100.0070.08320.97
5.6.90.0100.03720.99
5.6.80.0130.07720.38
5.5.350.0070.07320.41
5.5.340.0000.04317.98
5.5.330.0130.04720.07
5.5.320.1470.04020.50
5.5.310.0300.06720.41
5.5.300.0030.07018.01
5.5.290.0070.08717.92
5.5.280.0070.04720.68
5.5.270.0200.07320.77
5.5.260.0070.05320.72
5.5.250.0100.07720.57
5.5.240.0000.07720.25
5.4.450.0530.04319.39
5.4.440.0630.03719.36
5.4.430.0570.05019.36
5.4.420.0600.04319.54
5.4.410.0600.04318.99
5.4.400.0330.04019.16
5.4.390.0200.04319.21
5.4.380.0730.04718.77
5.4.370.0430.05319.06
5.4.360.0500.04719.06
5.4.350.0170.04718.93
5.4.340.0500.03319.13
5.4.320.0500.04719.17
5.4.310.0500.04318.77
5.4.300.0600.05018.79
5.4.290.0770.04019.16
5.4.280.0500.05019.00
5.4.270.0530.08319.02
5.4.260.0570.03319.13
5.4.250.0670.04319.13
5.4.240.0270.04019.06
5.4.230.0530.04019.13
5.4.220.0570.03319.21
5.4.210.0200.03319.12
5.4.200.0770.04018.94
5.4.190.0500.03719.05
5.4.180.0470.03319.20
5.4.170.0700.03319.05
5.4.160.0670.03719.02
5.4.150.0730.04019.00
5.4.140.0670.04016.26
5.4.130.0330.04716.33
5.4.120.0300.04016.18
5.4.110.0830.03016.23
5.4.100.0700.03716.21
5.4.90.0370.04716.39
5.4.80.0500.04716.41
5.4.70.0270.04016.44
5.4.60.0630.04316.21
5.4.50.0670.04016.39
5.4.40.0600.03316.36
5.4.30.0300.04016.39
5.4.20.0100.03716.43
5.4.10.0830.03716.34
5.4.00.0400.04015.67
5.3.290.0630.04015.67
5.3.280.0700.02715.67
5.3.270.0400.03715.67
5.3.260.0600.03715.67
5.3.250.0570.04315.67
5.3.240.0800.04015.67
5.3.230.0530.04315.67
5.3.220.0630.03315.67
5.3.210.0500.04315.67
5.3.200.0670.03715.67
5.3.190.0530.03715.67
5.3.180.0800.03715.67
5.3.170.0400.04315.67
5.3.160.1000.03715.67
5.3.150.0670.04315.67
5.3.140.0700.04015.67
5.3.130.0630.04315.67
5.3.120.0300.04315.67
5.3.110.0230.04315.67
5.3.100.0500.04315.66
5.3.90.0400.03015.67
5.3.80.0800.03315.67
5.3.70.0600.02315.67
5.3.60.0600.04715.67
5.3.50.0670.02715.67
5.3.40.0400.04715.67
5.3.30.0730.03715.67
5.3.20.0670.05715.66
5.3.10.0500.03315.67
5.3.00.0730.04015.67
5.2.170.0330.03715.67
5.2.160.0600.03015.67
5.2.150.0370.06715.67
5.2.140.0430.02715.67
5.2.130.0470.03315.67
5.2.120.0170.06315.67
5.2.110.0570.02715.67
5.2.100.0530.03015.67
5.2.90.0570.03015.67
5.2.80.0570.03015.67
5.2.70.0570.03015.67
5.2.60.0600.03015.67
5.2.50.0130.03315.67
5.2.40.0370.03715.67
5.2.30.0200.04015.66
5.2.20.0470.03015.66
5.2.10.0100.02015.66
5.2.00.0500.03315.66
5.1.60.0570.05715.66
5.1.50.0370.03315.66
5.1.40.0170.02315.66
5.1.30.0400.03315.66
5.1.20.0530.03715.66
5.1.10.0270.02315.66
5.1.00.0370.02315.66
5.0.50.0130.02315.66
5.0.40.0330.01715.66
5.0.30.0300.03315.66
5.0.20.0330.02015.66
5.0.10.0170.02315.66
5.0.00.0300.03715.66
4.4.90.0070.02315.67
4.4.80.0100.02015.67
4.4.70.0000.01715.66
4.4.60.0200.02315.66
4.4.50.0330.01015.66
4.4.40.0030.02015.66
4.4.30.0200.01315.66
4.4.20.0230.02715.66
4.4.10.0030.02015.66
4.4.00.0300.02315.66
4.3.110.0070.01715.66
4.3.100.0230.01715.66
4.3.90.0100.01315.66
4.3.80.0100.02315.66
4.3.70.0130.02315.66
4.3.60.0230.02015.66
4.3.50.0070.03715.66
4.3.40.0170.02315.66
4.3.30.0000.02015.66
4.3.20.0070.01315.66
4.3.10.0100.02015.66
4.3.00.0070.02015.66

preferences:
45.1 ms | 401 KiB | 5 Q