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); sort($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.0110.01118.30
8.3.50.0040.01819.76
8.3.40.0070.00718.84
8.3.30.0110.00418.49
8.3.20.0070.00021.73
8.3.10.0040.00421.87
8.3.00.0030.00622.14
8.2.180.0100.00316.63
8.2.170.0180.00422.96
8.2.160.0070.00722.09
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00819.49
8.2.110.0120.00919.18
8.2.100.0080.00417.84
8.2.90.0060.00319.17
8.2.80.0050.00317.97
8.2.70.0000.00817.75
8.2.60.0080.00018.05
8.2.50.0000.00818.10
8.2.40.0070.00020.61
8.2.30.0040.00421.15
8.2.20.0040.00418.05
8.2.10.0040.00418.13
8.2.00.0000.00817.81
8.1.280.0110.00425.92
8.1.270.0030.00520.38
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00622.06
8.1.230.0060.00619.00
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0040.00417.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0000.00818.59
8.1.160.0080.00018.93
8.1.150.0080.00018.63
8.1.140.0070.00019.59
8.1.130.0030.00319.01
8.1.120.0080.00017.36
8.1.110.0000.00717.34
8.1.100.0000.00717.39
8.1.90.0000.00717.43
8.1.80.0050.00217.49
8.1.70.0000.00817.45
8.1.60.0000.00817.60
8.1.50.0000.00817.50
8.1.40.0090.00017.41
8.1.30.0040.00417.55
8.1.20.0040.00417.57
8.1.10.0060.00317.49
8.1.00.0000.00717.52
8.0.300.0090.00218.77
8.0.290.0040.00416.75
8.0.280.0000.00718.50
8.0.270.0040.00417.25
8.0.260.0000.00717.20
8.0.250.0030.00316.85
8.0.240.0070.00016.98
8.0.230.0000.00716.91
8.0.220.0040.00416.79
8.0.210.0000.00716.80
8.0.200.0070.00016.86
8.0.190.0000.00716.97
8.0.180.0000.00716.89
8.0.170.0030.00516.84
8.0.160.0000.00717.02
8.0.150.0000.00716.83
8.0.140.0000.00816.88
8.0.130.0050.00013.36
8.0.120.0030.00516.84
8.0.110.0080.00016.68
8.0.100.0050.00316.76
8.0.90.0080.00016.94
8.0.80.0060.01616.79
8.0.70.0080.00016.87
8.0.60.0050.00316.77
8.0.50.0040.00416.85
8.0.30.0080.01017.02
8.0.20.0100.00917.40
8.0.10.0070.00017.03
8.0.00.0080.01116.67
7.4.330.0030.00315.55
7.4.320.0030.00316.41
7.4.300.0060.00016.64
7.4.290.0070.00016.59
7.4.280.0040.00416.58
7.4.270.0000.00616.63
7.4.260.0030.00316.51
7.4.250.0040.00316.42
7.4.240.0030.00316.53
7.4.230.0030.00316.50
7.4.220.0060.01616.50
7.4.210.0090.00616.54
7.4.200.0070.00016.63
7.4.160.0160.00316.34
7.4.150.0130.00717.40
7.4.140.0090.01317.86
7.4.130.0070.01116.58
7.4.120.0090.01016.46
7.4.110.0040.01516.70
7.4.100.0030.01516.48
7.4.90.0030.01516.32
7.4.80.0040.02019.39
7.4.70.0060.00916.59
7.4.60.0150.00716.56
7.4.50.0040.01016.62
7.4.40.0130.00316.49
7.4.30.0060.01616.46
7.4.00.0000.01114.89
7.3.330.0060.00013.03
7.3.320.0050.00013.10
7.3.310.0070.00016.33
7.3.300.0070.00016.11
7.3.290.0100.00816.25
7.3.280.0060.01116.30
7.3.270.0030.01417.40
7.3.260.0080.01016.45
7.3.250.0120.00716.39
7.3.240.0110.00916.38
7.3.230.0120.00416.49
7.3.210.0060.01016.64
7.3.200.0120.00316.39
7.3.190.0170.00016.46
7.3.180.0100.00616.45
7.3.170.0060.01816.60
7.3.160.0030.01316.36
7.2.330.0090.00816.75
7.2.320.0060.00916.71
7.2.310.0100.00616.41
7.2.300.0100.01016.59
7.2.290.0060.01016.81
7.2.60.0040.01117.08
7.1.200.0090.00315.30
7.1.70.0040.00417.15
7.1.60.0080.00417.34
7.1.10.0100.05722.07
7.1.00.0070.06022.47
7.0.200.0030.01316.76
7.0.150.0030.06721.95
7.0.140.0030.06021.88
7.0.130.0130.05021.85
7.0.120.0100.06321.74
7.0.110.0030.06321.88
7.0.100.0070.05721.90
7.0.90.0070.08321.87
7.0.80.0070.05721.88
7.0.70.0000.07721.98
7.0.60.0100.05321.86
7.0.50.0130.05322.00
7.0.40.0130.06321.86
7.0.30.0130.07321.99
7.0.20.0100.05321.85
7.0.10.0030.06721.85
7.0.00.0030.06021.98

preferences:
59.42 ms | 401 KiB | 5 Q