3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['ray' => 33, 'amanda' => 19, 'julio' => '49']; # Sort by age asort($array, SORT_NUMERIC); var_dump( $array);

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.130.0050.00318.47
8.3.120.0080.00020.71
8.3.110.0040.00416.53
8.3.100.0060.00318.05
8.3.90.0040.00418.18
8.3.80.0090.00018.04
8.3.70.0090.00616.25
8.3.60.0070.01418.18
8.3.50.0120.00718.06
8.3.40.0070.01518.54
8.3.30.0120.00318.72
8.3.20.0040.00421.93
8.3.10.0060.00320.81
8.3.00.0000.00721.95
8.2.250.0070.00718.86
8.2.240.0070.00719.00
8.2.230.0090.00622.58
8.2.220.0090.00024.06
8.2.210.0050.00326.77
8.2.200.0060.00318.29
8.2.190.0110.00416.58
8.2.180.0140.00016.63
8.2.170.0140.00022.96
8.2.160.0000.01420.81
8.2.150.0030.00625.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00420.40
8.2.110.0060.00320.35
8.2.100.0030.00917.81
8.2.90.0000.00817.91
8.2.80.0040.00419.02
8.2.70.0080.00017.80
8.2.60.0040.00418.03
8.2.50.0040.00419.26
8.2.40.0000.00719.36
8.2.30.0040.00420.41
8.2.20.0080.00017.99
8.2.10.0050.00318.68
8.2.00.0040.00417.90
8.1.300.0130.00618.00
8.1.290.0060.00318.88
8.1.280.0100.01025.92
8.1.270.0000.00820.65
8.1.260.0000.00826.35
8.1.250.0090.00028.09
8.1.240.0030.00622.52
8.1.230.0080.00320.97
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0080.00017.35
8.1.190.0040.00417.13
8.1.180.0050.00318.10
8.1.170.0040.00418.56
8.1.160.0070.00018.82
8.1.150.0070.00018.75
8.1.140.0000.00720.34
8.1.130.0040.00420.18
8.1.120.0030.00717.25
8.1.110.0040.00417.44
8.1.100.0050.00217.38
8.1.90.0080.00017.25
8.1.80.0020.00517.41
8.1.70.0030.00617.31
8.1.60.0000.00817.54
8.1.50.0060.00317.46
8.1.40.0030.00517.46
8.1.30.0000.00817.50
8.1.20.0050.00317.44
8.1.10.0070.00017.55
8.1.00.0050.00317.30
8.0.300.0070.00020.07
8.0.290.0040.00416.63
8.0.280.0000.00718.37
8.0.270.0070.00017.07
8.0.260.0030.00318.24
8.0.250.0030.00316.81
8.0.240.0000.00616.79
8.0.230.0000.00716.79
8.0.220.0000.00716.69
8.0.210.0030.00616.83
8.0.200.0000.00616.77
8.0.190.0000.00716.78
8.0.180.0000.00716.82
8.0.170.0080.00016.83
8.0.160.0040.00416.78
8.0.150.0000.00716.66
8.0.140.0030.00316.77
8.0.130.0000.00613.21
8.0.120.0040.00416.77
8.0.110.0000.00816.84
8.0.100.0070.00016.86
8.0.90.0040.00416.72
8.0.80.0070.00716.77
8.0.70.0050.00316.71
8.0.60.0000.00816.83
8.0.50.0050.00316.76
8.0.30.0120.00616.97
8.0.20.0100.00916.98
8.0.10.0040.00416.77
8.0.00.0120.01016.63
7.4.330.0000.00415.55
7.4.320.0000.00616.59
7.4.300.0030.00316.53
7.4.290.0060.00316.54
7.4.280.0050.00316.44
7.4.270.0040.00416.36
7.4.260.0030.00516.54
7.4.250.0000.00816.34
7.4.240.0050.00216.55
7.4.230.0030.00316.63
7.4.220.0030.00616.37
7.4.210.0070.01016.53
7.4.200.0030.00316.61
7.4.160.0090.00616.39
7.4.140.0040.01517.86
7.4.130.0120.00616.50
7.4.120.0140.00316.67
7.4.110.0030.01416.38
7.4.100.0160.00616.39
7.4.90.0060.01016.48
7.4.80.0080.00919.39
7.4.70.0060.00916.36
7.4.60.0060.01016.54
7.4.50.0100.00316.60
7.4.40.0100.00616.20
7.4.00.0090.00814.79
7.3.330.0020.00212.90
7.3.320.0000.00712.88
7.3.310.0030.00316.21
7.3.300.0070.00016.00
7.3.290.0070.00716.20
7.3.280.0070.00816.09
7.3.260.0130.00516.23
7.3.240.0100.01016.37
7.3.230.0210.00316.53
7.3.210.0130.00916.50
7.3.200.0090.00916.32
7.3.190.0140.00816.40
7.3.180.0080.00816.53
7.3.170.0000.02216.20
7.3.160.0090.00616.37
7.3.120.0110.00714.61
7.3.110.0030.01314.20
7.3.100.0070.00714.66
7.3.90.0090.00314.71
7.3.80.0070.00714.55
7.3.70.0110.00414.71
7.3.60.0070.00714.36
7.3.50.0100.00714.54
7.3.40.0090.00414.63
7.3.30.0090.00514.41
7.3.20.0070.00816.46
7.3.10.0040.01016.61
7.3.00.0080.00516.44
7.2.330.0160.00616.18
7.2.320.0150.00416.28
7.2.310.0070.01016.11
7.2.300.0080.00816.51
7.2.290.0030.01816.46
7.2.250.0000.01314.97
7.2.240.0100.01014.48
7.2.230.0040.01115.11
7.2.220.0030.01014.57
7.2.210.0060.00914.70
7.2.200.0090.00615.03
7.2.190.0030.01014.62
7.2.180.0080.00514.77
7.2.170.0050.01114.87
7.2.160.0110.00314.86
7.2.150.0100.00316.39
7.2.140.0090.01216.79
7.2.130.0040.00716.64
7.2.120.0040.00816.71
7.2.110.0070.00716.34
7.2.100.0090.01316.35
7.2.90.0080.00816.88
7.2.80.0090.00916.50
7.2.70.0090.00316.68
7.2.60.0100.01316.51
7.2.50.0080.00416.73
7.2.40.0150.00016.85
7.2.30.0080.01116.84
7.2.20.0110.00316.60
7.2.10.0030.00916.82
7.2.00.0090.00616.74
7.1.330.0130.00315.70
7.1.320.0070.00315.85
7.1.310.0060.00915.41
7.1.300.0090.00315.88
7.1.290.0110.00315.84
7.1.280.0070.00815.68
7.1.270.0040.00615.59
7.1.260.0100.00315.71
7.1.250.0030.01015.74

preferences:
28.66 ms | 403 KiB | 5 Q