3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test_alfa = array(); $test_alfa[0] = "aa"; $test_alfa[1] = "aa"; $test_alfa[2] = "aa"; $test_alfa[3] = "bb"; $test_alfa[4] = "aa"; $test_alfa[5] = "bb"; $test_alfa[6] = "cc"; $test_alfa[7] = "bb"; $test_beta= array_unique($test_alfa); $numValues = count($test_beta); print_r($test_beta); echo ("Number of elements in test_beta = $numValues ");

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.0120.00918.43
8.3.50.0060.01519.94
8.3.40.0110.00418.76
8.3.30.0120.00318.84
8.3.20.0050.00221.76
8.3.10.0080.00021.73
8.3.00.0040.00422.07
8.2.180.0070.00716.75
8.2.170.0110.01122.96
8.2.160.0140.00022.20
8.2.150.0090.00024.18
8.2.140.0030.00524.66
8.2.130.0050.00318.09
8.2.120.0070.00026.35
8.2.110.0050.00519.30
8.2.100.0070.00417.97
8.2.90.0040.00419.22
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0000.00818.05
8.2.50.0040.00418.10
8.2.40.0080.00020.58
8.2.30.0060.00321.16
8.2.20.0000.00718.10
8.2.10.0020.00518.07
8.2.00.0040.00417.73
8.1.280.0110.00325.92
8.1.270.0070.00020.32
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0060.00322.10
8.1.230.0100.00019.13
8.1.220.0000.00717.79
8.1.210.0000.00818.77
8.1.200.0000.01117.48
8.1.190.0040.00417.13
8.1.180.0050.00218.10
8.1.170.0050.00318.59
8.1.160.0030.00518.77
8.1.150.0000.00818.60
8.1.140.0050.00219.63
8.1.130.0070.00019.00
8.1.120.0000.00817.48
8.1.110.0050.00217.33
8.1.100.0000.00817.48
8.1.90.0080.00017.50
8.1.80.0050.00317.49
8.1.70.0050.00317.49
8.1.60.0040.00417.59
8.1.50.0040.00417.56
8.1.40.0050.00317.55
8.1.30.0090.00017.65
8.1.20.0000.00917.64
8.1.10.0040.00417.51
8.1.00.0040.00417.57
8.0.300.0030.00618.77
8.0.290.0040.00416.75
8.0.280.0000.00718.43
8.0.270.0070.00017.30
8.0.260.0000.00717.27
8.0.250.0070.00017.00
8.0.240.0040.00416.83
8.0.230.0050.00216.93
8.0.220.0040.00416.95
8.0.210.0040.00416.79
8.0.200.0000.00817.02
8.0.190.0050.00316.95
8.0.180.0020.00516.75
8.0.170.0000.00716.81
8.0.160.0080.00016.80
8.0.150.0070.00016.86
8.0.140.0040.00416.85
8.0.130.0000.00513.33
8.0.120.0030.00516.83
8.0.110.0090.00016.69
8.0.100.0030.00316.91
8.0.90.0000.00716.88
8.0.80.0100.00616.84
8.0.70.0040.00416.98
8.0.60.0000.00816.93
8.0.50.0000.00716.67
8.0.30.0090.00917.30
8.0.20.0110.01017.40
8.0.10.0000.00716.87
8.0.00.0080.00917.01
7.4.330.0000.00515.55
7.4.320.0040.00416.61
7.4.300.0000.00616.60
7.4.290.0030.00316.61
7.4.280.0000.00816.65
7.4.270.0030.00316.42
7.4.260.0100.00016.48
7.4.250.0070.00016.57
7.4.240.0070.00016.44
7.4.230.0000.00716.34
7.4.220.0030.01416.61
7.4.210.0090.00616.59
7.4.200.0000.00816.43
7.4.160.0090.00616.45
7.4.150.0140.00317.40
7.4.140.0100.00817.86
7.4.130.0110.00616.53
7.4.120.0080.01216.50
7.4.110.0070.01016.42
7.4.100.0090.01516.60
7.4.90.0070.01016.53
7.4.80.0100.01119.39
7.4.70.0060.01016.48
7.4.60.0090.00616.42
7.4.50.0060.00916.65
7.4.40.0100.00616.65
7.4.30.0000.01616.60
7.4.00.0030.01214.88
7.3.330.0070.00013.25
7.3.320.0000.00613.19
7.3.310.0030.00316.09
7.3.300.0060.00016.31
7.3.290.0090.00616.28
7.3.280.0070.01016.29
7.3.270.0100.00717.40
7.3.260.0130.00716.60
7.3.250.0120.00816.48
7.3.240.0110.00616.42
7.3.230.0060.01116.64
7.3.210.0070.01016.43
7.3.200.0120.00416.17
7.3.190.0150.00316.33
7.3.180.0100.00716.39
7.3.170.0110.00716.32
7.3.160.0110.00616.30
7.3.10.0040.01116.48
7.3.00.0000.01416.71
7.2.330.0140.00316.71
7.2.320.0110.01516.50
7.2.310.0120.00316.67
7.2.300.0150.00816.60
7.2.290.0060.01416.64
7.2.130.0080.00416.72
7.2.120.0060.01016.73
7.2.110.0030.01216.83
7.2.100.0000.01016.85
7.2.90.0070.01016.80
7.2.80.0030.01016.81
7.2.70.0000.01417.00
7.2.60.0090.00616.77
7.2.50.0040.00817.08
7.2.40.0000.01416.73
7.2.30.0060.00916.86
7.2.20.0100.00717.07
7.2.10.0060.00616.82
7.2.00.0090.00616.97
7.1.250.0040.00415.79
7.1.70.0050.00217.15
7.1.60.0030.00717.30
7.1.10.0100.06022.14
7.1.00.0100.05722.41
7.0.200.0090.00616.51
7.0.150.0100.07721.95
7.0.140.0030.06021.89
7.0.130.0130.05721.84
7.0.120.0170.07021.90
7.0.110.0030.06321.83
7.0.100.0070.06021.84
7.0.90.0130.05321.92
7.0.80.0070.05721.98
7.0.70.0100.05322.02
7.0.60.0070.05721.68
7.0.50.0130.05021.90
7.0.40.0030.05721.76
7.0.30.0030.05721.92
7.0.20.0070.05322.01
7.0.10.0030.05721.87
7.0.00.0100.05321.86

preferences:
67.93 ms | 400 KiB | 5 Q