3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fruits = array("d" =>"lemon", "a" =>"orange", "b" =>"banana", "c" =>"apple"); // $fruitArrayObject = new ArrayObject($fruits); // $fruitArrayObject->asort(); // foreach ($fruitArrayObject as $key => $val) { // echo "$key = $val\n"; // } print_r(asort($fruits));

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.00318.43
8.3.50.0100.00718.20
8.3.40.0070.00718.41
8.3.30.0060.00918.47
8.3.20.0040.00418.89
8.3.10.0080.00020.86
8.3.00.0080.00019.55
8.2.180.0140.00718.17
8.2.170.0110.00422.96
8.2.160.0090.00518.99
8.2.150.0070.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00419.70
8.2.120.0040.00426.35
8.2.110.0000.00920.52
8.2.100.0040.00717.78
8.2.90.0040.00417.63
8.2.80.0090.00018.61
8.2.70.0030.00618.04
8.2.60.0030.00517.55
8.2.50.0040.00418.10
8.2.40.0070.00019.38
8.2.30.0080.00019.28
8.2.20.0040.00417.98
8.2.10.0000.00718.03
8.2.00.0000.00719.47
8.1.280.0090.00925.92
8.1.270.0050.00222.15
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0130.00022.01
8.1.230.0080.00420.84
8.1.220.0030.00618.41
8.1.210.0080.00018.77
8.1.200.0090.00017.23
8.1.190.0090.00017.00
8.1.180.0000.00818.10
8.1.170.0000.00918.53
8.1.160.0070.00018.81
8.1.150.0040.00418.68
8.1.140.0000.00817.62
8.1.130.0000.00718.91
8.1.120.0000.00717.38
8.1.110.0000.00717.38
8.1.100.0030.00317.37
8.1.90.0080.00017.27
8.1.80.0000.00717.31
8.1.70.0030.00317.34
8.1.60.0000.00917.49
8.1.50.0110.00017.34
8.1.40.0060.00317.34
8.1.30.0000.00817.41
8.1.20.0070.00017.51
8.1.10.0040.00417.49
8.1.00.0060.00317.29
8.0.300.0000.00818.77
8.0.290.0040.00416.58
8.0.280.0000.00818.36
8.0.270.0070.00017.17
8.0.260.0030.00317.09
8.0.250.0000.00616.77
8.0.240.0030.00316.82
8.0.230.0030.00316.82
8.0.220.0000.00916.75
8.0.210.0070.00016.75
8.0.200.0030.00316.78
8.0.190.0040.00416.88
8.0.180.0050.00216.67
8.0.170.0060.00316.82
8.0.160.0060.00316.75
8.0.150.0000.00716.76
8.0.140.0000.00716.82
8.0.130.0060.00013.27
8.0.120.0040.00416.62
8.0.110.0000.00716.74
8.0.100.0070.00016.82
8.0.90.0000.00716.84
8.0.80.0070.01216.79
8.0.70.0040.00416.76
8.0.60.0040.00416.74
8.0.50.0050.00216.77
8.0.30.0080.01216.92
8.0.20.0110.00717.40
8.0.10.0040.00416.76
8.0.00.0140.00416.72
7.4.330.0030.00315.55
7.4.320.0000.00616.42
7.4.300.0040.00416.41
7.4.290.0070.00016.49
7.4.280.0050.00216.30
7.4.270.0000.00716.33
7.4.260.0030.00316.39
7.4.250.0070.00016.34
7.4.240.0000.00716.44
7.4.230.0070.00016.52
7.4.220.0040.00416.61
7.4.210.0090.00416.45
7.4.200.0030.00316.32
7.4.160.0070.01016.40
7.4.140.0110.00817.86
7.4.130.0090.00916.62
7.4.120.0150.00716.38
7.4.110.0130.00316.39
7.4.100.0030.01816.40
7.4.90.0090.00916.37
7.4.80.0090.00819.39
7.4.70.0030.01316.43
7.4.60.0090.00916.35
7.4.50.0130.00316.59
7.4.40.0150.00616.50
7.4.00.0040.01114.86
7.3.330.0000.00512.93
7.3.320.0030.00312.87
7.3.310.0040.00415.96
7.3.300.0040.00416.02
7.3.290.0000.00616.16
7.3.280.0030.01416.08
7.3.260.0110.00716.27
7.3.240.0100.00816.26
7.3.230.0030.01316.23
7.3.210.0090.01016.28
7.3.200.0120.00316.06
7.3.190.0060.00916.36
7.3.180.0110.00416.25
7.3.170.0070.01016.21
7.3.160.0030.01816.08
7.2.330.0190.00016.41
7.2.320.0060.01016.44
7.2.310.0100.00716.40
7.2.300.0040.01216.38
7.2.290.0040.01316.49
7.2.61.0190.00914.98
7.2.50.9830.00914.77
7.2.40.2960.01415.10
7.2.30.7910.00815.33
7.2.21.5440.00714.84
7.2.11.2050.01315.16
7.2.01.1070.00914.99
7.1.200.0000.01015.34
7.1.170.2610.01013.90
7.1.160.2300.01116.88
7.1.150.2650.01616.62
7.1.141.2510.00916.62
7.1.131.1830.00816.87
7.1.120.0150.01416.58
7.1.110.0230.01416.13
7.1.100.0210.01116.04
7.1.90.0170.01115.90
7.1.80.0140.01316.18
7.1.70.0120.01115.00
7.1.60.0300.01233.00
7.1.50.5980.01732.50
7.1.41.6840.01032.53
7.1.30.0620.01632.73
7.1.20.0320.01332.86
7.1.10.2670.01514.67
7.1.00.1540.01414.66

preferences:
63.72 ms | 401 KiB | 5 Q