3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = array('SS2014', 'SU2014','FW2014','SS2013','SU2013','FW2013'); $results = array(); sort($strings); echo 'using normal sort' var_dump($strings); ksort($strings); echo 'using ksort' var_dump($strings); ntsort($strings); echo 'using ntsort' var_dump($strings);

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)
5.4.300.0090.06312.50
5.4.290.0170.05112.49
5.4.280.0130.06412.39
5.4.270.0100.04412.39
5.4.260.0130.05312.39
5.4.250.0160.05212.39
5.4.240.0140.04512.39
5.4.230.0200.09712.38
5.4.220.0070.04812.38
5.4.210.0080.04012.38
5.4.200.0060.04312.38
5.4.190.0080.04412.38
5.4.180.0100.05012.38
5.4.170.0210.05612.39
5.4.160.0120.04412.38
5.4.150.0110.06612.38
5.4.140.0100.06112.07
5.4.130.0080.05012.05
5.4.120.0070.05412.02
5.4.110.0120.05512.01
5.4.100.0110.05612.01
5.4.90.0130.04912.01
5.4.80.0110.06512.01
5.4.70.0170.07312.01
5.4.60.0260.10012.01
5.4.50.0060.05912.00
5.4.40.0070.05711.99
5.4.30.0180.08111.99
5.4.20.0170.07111.99
5.4.10.0270.08611.99
5.4.00.0100.05911.48
5.3.280.0140.04112.71
5.3.270.0130.09012.73
5.3.260.0150.08912.72
5.3.250.0080.05012.72
5.3.240.0060.04412.72
5.3.230.0110.05712.71
5.3.220.0040.04312.68
5.3.210.0090.04412.68
5.3.200.0110.03712.68
5.3.190.0100.04212.68
5.3.180.0250.06912.68
5.3.170.0150.06212.66
5.3.160.0090.06012.67
5.3.150.0060.06312.67
5.3.140.0170.05912.66
5.3.130.0230.08012.66
5.3.120.0220.09812.66
5.3.110.0210.08612.66
5.3.100.0200.07312.12
5.3.90.0140.09412.09
5.3.80.0150.08212.07
5.3.70.0170.08112.07
5.3.60.0110.09012.06
5.3.50.0090.06012.00
5.3.40.0150.06112.00
5.3.30.0150.06511.95
5.3.20.0170.07211.72
5.3.10.0080.05811.70
5.3.00.0210.08811.68

preferences:
137.16 ms | 1394 KiB | 7 Q