3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array=array(); for($i=0; $i<50; $i++) { $array[]=rand(); } $promenna=sort($array); var_dump($promenna);

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)
7.3.120.0060.01314.72
7.3.110.0070.01015.08
7.3.100.0070.00714.64
7.3.90.0000.01714.96
7.3.80.0040.00814.95
7.3.70.0040.00814.82
7.3.60.0040.01114.90
7.3.50.0100.00714.72
7.3.40.0000.01614.89
7.3.30.0040.01114.87
7.3.20.0100.00716.75
7.3.10.0140.00616.58
7.3.00.0080.01016.44
7.2.240.0000.01515.06
7.2.230.0040.01515.05
7.2.220.0060.01014.80
7.2.210.0090.00314.96
7.2.200.0140.00015.05
7.2.190.0030.01014.86
7.2.180.0090.00614.97
7.2.170.0100.00314.86
7.2.160.0070.01115.01
7.2.150.0040.01517.03
7.2.140.0070.01116.97
7.2.130.0060.01016.91
7.2.120.0050.00916.75
7.2.110.0070.00716.73
7.2.100.0050.01216.73
7.2.90.0090.00916.82
7.2.80.0010.01016.92
7.2.70.0080.00917.02
7.2.60.0030.00817.01
7.2.50.0090.00716.87
7.2.40.0070.00716.84
7.2.30.0050.00816.69
7.2.20.0110.00516.79
7.2.10.0080.00816.77
7.2.00.0070.00917.57
7.1.330.0060.00615.71
7.1.320.0070.00715.91
7.1.310.0000.01515.50
7.1.300.0040.00815.70
7.1.290.0030.00915.74
7.1.280.0040.01115.93
7.1.270.0070.00415.66
7.1.260.0080.00415.83
7.1.250.0070.00715.63
7.1.100.0090.00618.07
7.1.70.0040.00817.18
7.1.60.0060.01619.30
7.1.50.0100.00616.78
7.1.00.0130.06322.51
7.0.200.0080.00316.73
7.0.60.0200.06721.63
7.0.50.0100.07317.83
7.0.40.0130.08019.98
7.0.30.0230.06720.02
7.0.20.0270.08720.16
7.0.10.0070.08320.30
7.0.00.0100.07020.00
5.6.280.0000.07720.82
5.6.210.0130.06720.64
5.6.200.0100.04718.12
5.6.190.0100.07720.43
5.6.180.0430.03020.43
5.6.170.0300.07720.38
5.6.160.0100.05020.33
5.6.150.0070.04718.12
5.6.140.0100.07018.12
5.6.130.0070.05718.11
5.6.120.0170.04320.99
5.6.110.0130.06321.04
5.6.100.0030.04721.03
5.6.90.0000.07020.96
5.6.80.0000.04020.47
5.5.350.0130.06320.40
5.5.340.0000.08318.02
5.5.330.0100.06320.37
5.5.320.0200.03720.20
5.5.310.0200.05720.29
5.5.300.0130.04317.91
5.5.290.0030.05318.01
5.5.280.0000.04320.88
5.5.270.0030.08320.75
5.5.260.0200.07020.79
5.5.250.0030.04020.61
5.5.240.0170.06720.18

preferences:
33.58 ms | 400 KiB | 5 Q