3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myArray = [ 'orange' => 3, 'lemon' => 1, 'banana' => 5, 'kiwi' => 11, 'apple' => 2, ]; print_r($myArray); arsort($myArray); print_r($myArray);

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.4.20.0140.00717.87
8.4.10.0120.00319.47
8.3.150.0070.01118.48
8.3.140.0110.00720.50
8.3.130.0060.00318.07
8.3.120.0090.00618.59
8.3.110.0030.00520.94
8.3.100.0000.00824.06
8.3.90.0030.00626.77
8.3.80.0000.00916.63
8.3.70.0100.00716.63
8.3.60.0130.00718.18
8.3.50.0070.01024.43
8.3.40.0100.00718.57
8.3.30.0100.00318.43
8.3.20.0070.00020.60
8.3.10.0040.00423.57
8.3.00.0050.00319.68
8.2.270.0150.00418.68
8.2.260.0120.00616.34
8.2.250.0080.00016.41
8.2.240.0000.01918.78
8.2.230.0030.00722.58
8.2.220.0040.00437.54
8.2.210.0140.00426.77
8.2.200.0060.00316.75
8.2.190.0060.00918.08
8.2.180.0060.01218.28
8.2.170.0070.00722.96
8.2.160.0130.00020.89
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0020.00519.64
8.2.110.0000.01020.57
8.2.100.0090.00317.91
8.2.90.0050.00318.22
8.2.80.0030.00519.02
8.2.70.0000.00817.50
8.2.60.0050.00317.50
8.2.50.0040.00418.10
8.2.40.0000.00819.33
8.2.30.0070.00019.11
8.2.20.0030.00717.95
8.2.10.0000.00719.15
8.2.00.0040.00419.22
8.1.310.0110.00415.95
8.1.300.0110.00718.59
8.1.290.0070.00330.84
8.1.280.0060.00925.92
8.1.270.0030.00523.99
8.1.260.0000.00826.35
8.1.250.0060.01128.09
8.1.240.0000.00822.14
8.1.230.0030.00820.95
8.1.220.0000.00817.74
8.1.210.0050.00318.90
8.1.200.0000.00817.10
8.1.190.0000.00917.10
8.1.180.0050.00218.91
8.1.170.0090.00018.57
8.1.160.0000.00718.96
8.1.150.0000.00918.86
8.1.140.0040.00420.68
8.1.130.0030.00320.24
8.1.120.0040.00317.39
8.1.110.0050.00317.34
8.1.100.0040.00417.35
8.1.90.0000.00717.35
8.1.80.0030.00817.31
8.1.70.0070.00017.41
8.1.60.0000.01017.52
8.1.50.0030.00617.48
8.1.40.0040.00417.42
8.1.30.0000.00717.61
8.1.20.0000.00817.57
8.1.10.0110.00017.43
8.1.00.0000.00817.45
8.0.300.0000.00719.98
8.0.290.0070.00016.75
8.0.280.0030.00318.33
8.0.270.0040.00416.65
8.0.260.0060.00019.99
8.0.250.0070.00016.92
8.0.240.0030.00516.74
8.0.230.0040.00416.87
8.0.220.0000.00716.80
8.0.210.0000.00816.70
8.0.200.0000.00716.80
8.0.190.0090.00016.88
8.0.180.0060.00316.84
8.0.170.0040.00416.85
8.0.160.0040.00416.80
8.0.150.0040.00416.75
8.0.140.0000.00716.83
8.0.130.0030.00313.23
8.0.120.0080.00016.80
8.0.110.0030.00316.66
8.0.100.0040.00416.79
8.0.90.0040.00416.87
8.0.80.0100.01016.70
8.0.70.0040.00416.69
8.0.60.0050.00316.88
8.0.50.0070.00016.68
8.0.30.0150.01116.70
8.0.20.0080.01216.82
8.0.10.0070.00016.96
8.0.00.0130.01016.72
7.4.330.0000.00515.55
7.4.320.0030.00316.45
7.4.300.0040.00416.51
7.4.290.0040.00416.57
7.4.280.0000.00816.56
7.4.270.0030.00316.51
7.4.260.0050.00013.14
7.4.250.0050.00316.54
7.4.240.0000.00716.45
7.4.230.0000.00716.34
7.4.220.0020.00516.50
7.4.210.0090.00916.47
7.4.200.0050.00316.54
7.4.130.0110.01316.42
7.4.120.0070.01016.39
7.4.110.0140.00316.33
7.4.100.0030.01316.30
7.4.90.0040.01416.45
7.4.80.0100.00719.39
7.4.70.0080.00816.39
7.4.60.0160.00016.48
7.4.50.0040.01116.38
7.4.40.0110.00716.43
7.4.20.0090.00916.38
7.4.10.0070.01015.92
7.4.00.0070.00716.23
7.3.330.0070.00016.23
7.3.320.0050.00012.87
7.3.310.0040.00416.09
7.3.300.0060.00016.14
7.3.290.0050.00316.13
7.3.280.0100.01016.14
7.3.260.0130.00716.17
7.3.240.0130.00816.25
7.3.230.0030.01316.11
7.3.210.0100.01016.22
7.3.200.0070.01016.17
7.3.190.0170.00016.20
7.3.180.0090.00916.19
7.3.170.0190.00316.48
7.3.160.0060.01016.45
7.3.140.0160.00816.25
7.3.130.0090.00616.29
7.3.120.0070.00716.14
7.3.110.0040.01116.08
7.3.100.0110.00416.27
7.3.90.0030.01116.17
7.3.80.0090.00616.04
7.3.70.0090.01216.09
7.3.60.0070.01316.18
7.3.50.0120.00916.02
7.3.40.0080.01216.21
7.3.30.0040.01116.09
7.3.20.0110.00815.82
7.3.10.0040.01116.12
7.3.00.0040.01116.26
7.2.330.0120.00916.62
7.2.320.0070.01016.46
7.2.310.0030.01316.48
7.2.300.0080.01116.38
7.2.290.0090.01116.57
7.2.270.0040.01416.41
7.2.260.0070.01316.33
7.2.250.0090.00616.16
7.2.240.0100.00716.21
7.2.230.0000.01516.36
7.2.220.0120.00616.44
7.2.210.0120.00316.25
7.2.200.0120.00916.03
7.2.190.0100.01116.32
7.2.180.0150.00616.18
7.2.170.0030.01316.30
7.2.160.0030.01616.38
7.2.150.0100.01016.29
7.2.140.0120.00316.28
7.2.130.0040.01116.32
7.2.120.0120.00316.48
7.2.110.0090.00616.15
7.2.100.0080.00816.39
7.2.90.0040.01116.31
7.2.80.0070.00716.27
7.2.70.0090.00616.39
7.2.60.0100.00616.41
7.2.50.0090.00616.32
7.2.40.0070.01016.38
7.2.30.0090.00616.23
7.2.20.0090.00616.38
7.2.10.0030.01216.29
7.2.00.0000.01616.18

preferences:
64.11 ms | 403 KiB | 5 Q