3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array('11-01-2012', '01-01-2014', '01-01-2015', '09-02-2013', '01-01-2013'); function date_sort($a, $b) { return strtotime($a) - strtotime($b); } usort($arr, "date_sort"); print_r($arr);

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.130.1530.01314.49
7.2.120.0690.01115.02
7.2.110.0490.00915.04
7.2.100.0770.00914.98
7.2.90.0880.00614.80
7.2.80.0640.01014.95
7.2.70.0530.00915.24
7.2.60.0490.00915.17
7.2.50.0850.00815.20
7.2.40.0540.00815.18
7.2.30.0630.01015.21
7.2.20.0570.00815.08
7.2.10.0540.00915.12
7.2.00.0500.00915.26
7.1.250.1160.00614.05
7.1.240.0630.00514.33
7.1.230.0620.00714.23
7.1.220.0700.00514.11
7.1.210.0900.00614.12
7.1.200.0920.00914.17
7.1.190.0570.00414.11
7.1.180.0920.00714.07
7.1.170.0730.00714.19
7.1.160.0710.00614.17
7.1.150.0700.00714.13
7.1.140.0650.00714.20
7.1.130.0620.00814.08
7.1.120.0510.00714.14
7.1.110.0340.00714.20
7.1.100.0580.00614.19
7.1.90.0680.00714.21
7.1.80.0730.00814.11
7.1.70.0590.00814.19
7.1.60.0610.01122.08
7.1.50.0720.00822.06
7.1.40.0670.00721.97
7.1.30.0660.00722.10
7.1.20.0840.00922.13
7.1.10.0550.00814.07
7.1.00.0530.00514.07
7.0.330.1380.00313.59
7.0.320.0610.00613.87
7.0.310.0480.00813.79
7.0.300.0830.00813.81
7.0.290.0820.00513.83
7.0.280.0640.00913.81
7.0.270.0630.00713.88
7.0.260.0530.00713.85
7.0.250.0460.00713.88
7.0.240.0460.00713.89
7.0.230.0730.00813.82
7.0.220.0850.00713.83
7.0.210.0620.00713.84
7.0.200.0830.00513.80
7.0.190.0700.00813.82
7.0.180.0570.00713.90
7.0.170.0630.00713.79
7.0.160.0630.00713.83
7.0.150.0600.00613.80
7.0.140.0580.00813.85
7.0.130.0750.00513.92
7.0.120.0570.00913.85
7.0.110.0530.00613.80
7.0.100.0670.00713.84
7.0.90.0910.00613.85
7.0.80.0530.00613.74
7.0.70.0520.00813.83
7.0.60.0460.00713.81
7.0.50.0500.00713.84
7.0.40.0440.00713.88
7.0.30.0450.00813.91
7.0.20.0480.00613.87
7.0.10.0400.00513.91
7.0.00.0440.00813.95
hhvm-3.22.00.1090.19290.57
hhvm-3.21.30.1100.17590.09
hhvm-3.21.00.1160.18890.39
hhvm-3.20.20.1150.19290.72
hhvm-3.19.20.1120.18789.41
hhvm-3.18.50.0990.19188.47
hhvm-3.18.40.1140.18588.47
hhvm-3.17.30.1050.16787.50
hhvm-3.15.40.0970.16185.16
hhvm-3.13.20.1160.16796.67
hhvm-3.12.140.1160.17695.46
hhvm-3.11.10.1180.17987.75
hhvm-3.10.10.1070.16484.38
5.6.380.0100.00714.27
5.6.370.0140.00714.40
5.6.360.0120.00914.40
5.6.350.0130.00814.30
5.6.340.0130.00814.39
5.6.330.0100.00914.41
5.6.320.0110.01014.39
5.6.310.0110.01014.40
5.6.300.0140.00714.45
5.6.290.0110.01014.50
5.6.280.0110.00914.39
5.6.270.0100.01014.42
5.6.260.0110.01014.33
5.6.250.0120.00814.46
5.6.240.0100.01014.37
5.6.230.0140.00714.43
5.6.220.0120.00914.34
5.6.210.0120.00914.35
5.6.200.0140.00714.43
5.6.190.0130.00714.45
5.6.180.0140.00714.36
5.6.170.0130.00914.36
5.6.160.0140.00714.36
5.6.150.0140.00814.34
5.6.140.0120.00914.37
5.6.130.0160.00614.34
5.6.120.0130.00814.39
5.6.110.0130.00814.32
5.6.100.0100.00914.35
5.6.90.0130.00814.30
5.6.80.0120.00714.28
5.6.70.0110.01014.35
5.6.60.0120.00914.32
5.6.50.0120.00914.20
5.6.40.0130.00714.26
5.6.30.0110.00914.33
5.6.20.0110.00914.29
5.6.10.0130.00814.26
5.6.00.0120.00914.28
5.5.380.0110.00511.16
5.5.370.0100.00611.32
5.5.360.0120.00511.21
5.5.350.0110.00411.22
5.5.340.0100.00611.28
5.5.330.0110.00511.33
5.5.320.0100.00611.32
5.5.310.0120.00511.32
5.5.300.0090.00711.30
5.5.290.0110.00511.33
5.5.280.0090.00611.39
5.5.270.0110.00511.21
5.5.260.0090.00711.25
5.5.250.0080.00711.24
5.5.240.0110.00511.14
5.5.230.0080.00611.11
5.5.220.0110.00511.22
5.5.210.0100.00611.25
5.5.200.0070.00811.22
5.5.190.0100.00411.23
5.5.180.0070.00911.12
5.5.170.0130.00714.30
5.5.160.0100.00511.22
5.5.150.0080.00711.19
5.5.140.0070.00811.27
5.5.130.0100.00511.15
5.5.120.0110.00511.19
5.5.110.0100.00511.15
5.5.100.0090.00611.21
5.5.90.0090.00511.21
5.5.80.0070.00911.15
5.5.70.0110.00511.23
5.5.60.0100.00511.23
5.5.50.0100.00611.11
5.5.40.0100.00611.13
5.5.30.0100.00411.07
5.5.20.0080.00711.19
5.5.10.0110.00511.16
5.5.00.0100.00411.15
5.4.450.0110.00511.20
5.4.440.0090.00611.14
5.4.430.0110.00511.23
5.4.420.0070.00811.18
5.4.410.0080.00711.22
5.4.400.0070.00711.06
5.4.390.0090.00711.11
5.4.380.0090.00511.13
5.4.370.0090.00711.21
5.4.360.0090.00611.17
5.4.350.0090.00511.09
5.4.340.0080.00611.12
5.4.330.0080.00611.10
5.4.320.0090.00511.14
5.4.310.0080.00611.22
5.4.300.0110.00411.24
5.4.290.0100.00611.05
5.4.280.0110.00411.11
5.4.270.0120.00311.19
5.4.260.0090.00611.17
5.4.250.0100.00411.12
5.4.240.0100.00411.12
5.4.230.0090.00711.07
5.4.220.0100.00411.13
5.4.210.0130.00311.15
5.4.200.0110.00411.03
5.4.190.0100.00511.08
5.4.180.0110.00511.14
5.4.170.0120.00411.11
5.4.160.0100.00411.14
5.4.150.0100.00511.08
5.4.140.0100.00611.19
5.4.130.0100.00411.22
5.4.120.0060.00811.05
5.4.110.0080.00511.19
5.4.100.0080.00611.24
5.4.90.0070.00711.14
5.4.80.0090.00511.16
5.4.70.0090.00611.11
5.4.60.0070.00711.13
5.4.50.0100.00411.17
5.4.40.0080.00511.16
5.4.30.0110.00411.16
5.4.20.0090.00411.22
5.4.10.0090.00511.15
5.4.00.0110.00411.03
5.3.290.0090.00610.80
5.3.280.0080.00610.72
5.3.270.0090.00510.78
5.3.260.0080.00610.74
5.3.250.0090.00510.76
5.3.240.0090.00410.72
5.3.230.0090.00410.78
5.3.220.0100.00310.70
5.3.210.0080.00610.67
5.3.200.0060.00710.71
5.3.190.0080.00510.73
5.3.180.0090.00510.76
5.3.170.0100.00410.76
5.3.160.0070.00710.85
5.3.150.0090.00510.82
5.3.140.0080.00510.68
5.3.130.0110.00310.79
5.3.120.0080.00610.78
5.3.110.0080.00610.74
5.3.100.0080.00610.77
5.3.90.0090.00410.76
5.3.80.0090.00510.71
5.3.70.0100.00410.66
5.3.60.0080.00610.81
5.3.50.0080.00510.76
5.3.40.0090.00610.77
5.3.30.0080.00610.78
5.3.20.0070.00510.72
5.3.10.0090.00410.70
5.3.00.0080.00610.63
5.2.170.0080.00310.22
5.2.160.0070.00510.20
5.2.150.0080.00510.22
5.2.140.0060.00610.23
5.2.130.0060.00510.14
5.2.120.0070.00410.19
5.2.110.0050.00710.17
5.2.100.0070.00510.11
5.2.90.0070.00410.10
5.2.80.0050.00610.10
5.2.70.0090.00310.07
5.2.60.0060.00610.11
5.2.50.0070.00410.05
5.2.40.0060.00610.08
5.2.30.0050.00710.12
5.2.20.0100.00310.08
5.2.10.0080.00310.04
5.2.00.0070.00510.00
5.1.60.0070.0039.86
5.1.50.0070.0039.86
5.1.40.0060.0049.86
5.1.30.0040.0059.87
5.1.20.0080.0039.87
5.1.10.0080.0039.88
5.1.00.0070.0039.88
5.0.50.0060.0039.86
5.0.40.0080.0039.86
5.0.30.0060.0029.86
5.0.20.0090.0009.86
5.0.10.0040.0059.86
5.0.00.0050.0039.86
4.4.90.0030.0049.86
4.4.80.0030.0049.86
4.4.70.0050.0029.86
4.4.60.0040.0049.86
4.4.50.0040.0039.86
4.4.40.0040.0049.86
4.4.30.0050.0029.86
4.4.20.0030.0059.86
4.4.10.0040.0039.86
4.4.00.0030.0049.86
4.3.110.0050.0029.86
4.3.100.0040.0049.86
4.3.90.0040.0039.86
4.3.80.0040.0039.86
4.3.70.0030.0059.86
4.3.60.0030.0049.86
4.3.50.0030.0049.86
4.3.40.0040.0049.86
4.3.30.0030.0039.86
4.3.20.0020.0049.86
4.3.10.0040.0029.86
4.3.00.0020.0049.86