3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$lines=file('your.txt'); $lines=[ 'a:849444988- b:10.0', 'a:748449844- b:15.0', 'a:123456789- b:120.0', 'a:940849847- b:20.0', 'a:474844994- b:55.0' ]; usort($lines,function($a,$b){ return strnatcmp( substr($b,strpos($b,'b:')+2) , substr($a,strpos($a,'b:')+2) ); }); echo implode("\n",$lines);

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.5.10.0110.00816.63
8.5.00.0210.00719.90
8.4.150.0010.00114.05
8.4.140.0140.00917.41
8.4.130.0120.00617.79
8.4.120.0120.00824.12
8.4.110.0110.00922.57
8.4.100.0060.00318.72
8.4.90.0090.00318.64
8.4.80.0030.00518.63
8.4.70.0120.00817.81
8.4.60.0110.00918.80
8.4.50.0060.01320.29
8.4.40.0090.00917.39
8.4.30.0060.01019.29
8.4.20.0100.01025.95
8.4.10.0030.00617.57
8.3.280.0160.00718.36
8.3.270.0090.01016.60
8.3.260.0110.00816.73
8.3.250.0140.00719.11
8.3.240.0130.00617.23
8.3.230.0110.00716.66
8.3.220.0100.00419.09
8.3.210.0100.00818.37
8.3.200.0030.00616.52
8.3.190.0130.00617.28
8.3.180.0110.00816.88
8.3.170.0110.00718.69
8.3.160.0180.00017.27
8.3.150.0130.00616.68
8.3.140.0090.00919.04
8.3.130.0040.00416.61
8.3.120.0030.00618.82
8.3.110.0030.00620.94
8.3.100.0060.00324.06
8.3.90.0040.01126.77
8.3.80.0030.00716.50
8.3.70.0060.01318.55
8.3.60.0090.01218.28
8.3.50.0130.00417.28
8.3.40.0110.00718.39
8.3.30.0140.00018.60
8.3.20.0050.00320.21
8.3.10.0080.00023.44
8.3.00.0040.00419.69
8.2.290.0140.00420.13
8.2.280.0120.00718.44
8.2.270.0070.01117.11
8.2.260.0060.00316.57
8.2.250.0080.00016.50
8.2.240.0090.00018.98
8.2.230.0030.00522.58
8.2.220.0060.00937.54
8.2.210.0070.01326.77
8.2.200.0000.00916.63
8.2.190.0170.00316.58
8.2.180.0040.01116.72
8.2.170.0070.01422.96
8.2.160.0040.01120.33
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00317.63
8.2.110.0000.01020.93
8.2.100.0120.00017.78
8.2.90.0000.00817.72
8.2.80.0030.00517.97
8.2.70.0040.00417.92
8.2.60.0040.00418.03
8.2.50.0000.00918.10
8.2.40.0060.00320.64
8.2.30.0000.00819.26
8.2.20.0030.00518.05
8.2.10.0000.00818.14
8.2.00.0070.00018.37
8.1.330.0130.00721.94
8.1.320.0090.01015.95
8.1.310.0050.00318.50
8.1.300.0060.00615.98
8.1.290.0040.00818.88
8.1.280.0100.00625.92
8.1.270.0080.00022.21
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0040.00822.16
8.1.230.0040.00922.61
8.1.220.0000.00817.78
8.1.210.0040.00818.77
8.1.200.0050.00617.35
8.1.190.0000.00917.13
8.1.180.0080.00018.10
8.1.170.0000.00918.57
8.1.160.0070.00018.86
8.1.150.0000.00718.81
8.1.140.0040.00417.71
8.1.130.0040.00418.92
8.1.120.0070.00017.48
8.1.110.0020.00517.42
8.1.100.0000.00717.46
8.1.90.0030.00517.46
8.1.80.0070.00017.40
8.1.70.0070.00017.38
8.1.60.0030.00517.64
8.1.50.0000.00817.52
8.1.40.0040.00417.48
8.1.30.0000.00717.68
8.1.20.0080.00817.68
8.1.10.0080.00017.37
8.1.00.0050.00317.31
8.0.300.0040.00421.40
8.0.290.0050.00316.75
8.0.280.0080.00018.45
8.0.270.0050.00317.25
8.0.260.0000.00816.76
8.0.250.0000.00816.99
8.0.240.0000.00716.96
8.0.230.0030.00316.91
8.0.220.0040.00416.84
8.0.210.0030.00316.82
8.0.200.0030.00316.95
8.0.190.0000.00716.88
8.0.180.0030.00516.93
8.0.170.0030.00516.94
8.0.160.0080.00016.73
8.0.150.0000.00816.91
8.0.140.0000.00716.89
8.0.130.0030.00313.32
8.0.120.0000.00916.86
8.0.110.0000.00716.79
8.0.100.0000.00817.01
8.0.90.0070.00016.77
8.0.80.0060.01216.92
8.0.70.0070.00016.84
8.0.60.0030.00616.76
8.0.50.0040.00416.91
8.0.30.0120.00517.36
8.0.20.0070.01217.40
8.0.10.0040.00416.88
8.0.00.0130.00616.63
7.4.330.0050.00015.55
7.4.320.0030.00316.51
7.4.300.0000.00616.66
7.4.290.0030.00316.62
7.4.280.0000.00816.59
7.4.270.0030.00316.64
7.4.260.0070.00016.59
7.4.250.0070.00016.37
7.4.240.0000.00716.61
7.4.230.0040.00416.64
7.4.220.0040.00416.58
7.4.210.0060.00816.65
7.4.200.0040.00416.63
7.4.160.0170.00016.53
7.4.150.0170.00717.40
7.4.140.0090.00917.86
7.4.130.0170.00016.45
7.4.120.0110.00616.44
7.4.110.0090.00916.55
7.4.100.0170.00016.68
7.4.90.0070.01116.49
7.4.80.0030.01519.39
7.4.70.0100.00716.59
7.4.60.0060.00916.44
7.4.50.0090.00616.21
7.4.40.0120.00416.66
7.4.00.0040.01415.09
7.3.330.0030.00313.03
7.3.320.0030.00313.19
7.3.310.0030.00316.09
7.3.300.0050.00316.20
7.3.290.0140.00016.17
7.3.280.0070.00716.21
7.3.270.0080.00817.40
7.3.260.0120.00716.40
7.3.240.0060.01116.36
7.3.230.0130.00316.42
7.3.210.0100.00716.40
7.3.200.0070.01016.46
7.3.190.0130.00316.49
7.3.180.0170.00416.43
7.3.170.0080.00816.50
7.3.160.0120.00916.31
7.2.330.0130.00316.61
7.2.320.0110.00616.64
7.2.310.0070.01016.61
7.2.300.0090.00916.58
7.2.290.0090.00916.58
7.2.60.0070.00716.71
7.2.20.0100.01019.94
7.2.10.0050.01319.89
7.2.00.0080.01519.68
7.1.200.0110.00315.74
7.1.140.0100.01018.35
7.1.130.0120.01018.62
7.1.120.0060.01518.39
7.1.110.0100.01018.03
7.1.100.0080.01418.13
7.1.90.0090.01417.93
7.1.80.0070.01317.93
7.1.70.0100.01017.07
7.1.60.0280.01334.94
7.1.50.0140.00534.67
7.1.40.0170.01034.22
7.1.30.0200.01234.41
7.1.20.0280.02134.73
7.1.10.0080.01416.44
7.1.00.0100.01116.57

preferences:
30.63 ms | 403 KiB | 5 Q