3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fruits[0]["expiryDate"] = "20142646"; $fruits[1]["expiryDate"] = "20142646"; $fruits[2]["expiryDate"] = "20142646"; usort($fruits, "compareDates"); public static function compareDates($a, $b) { if (!(isset($a['expiryDate']) && isset($b['expiryDate']))) { return false; } $t1 = strtotime($a['expiryDate']); $t2 = strtotime($b['expiryDate']); return $t1 - $t2; }

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.320.0060.04412.49
5.4.310.0080.03912.49
5.4.300.0080.03712.50
5.4.290.0060.04212.49
5.4.280.0070.03612.39
5.4.270.0040.04212.39
5.4.260.0070.04012.39
5.4.250.0100.04212.39
5.4.240.0050.03912.39
5.4.230.0070.04512.38
5.4.220.0080.03712.38
5.4.210.0090.03812.38
5.4.200.0040.04812.38
5.4.190.0060.04712.38
5.4.180.0070.03812.38
5.4.170.0080.05012.39
5.4.160.0110.04812.38
5.4.150.0050.04312.38
5.4.140.0060.03912.07
5.4.130.0080.03912.05
5.4.120.0060.03612.01
5.4.110.0090.03812.01
5.4.100.0080.03612.01
5.4.90.0070.04112.01
5.4.80.0080.04312.01
5.4.70.0080.03612.01
5.4.60.0080.03712.01
5.4.50.0060.03512.01
5.4.40.0050.03612.00
5.4.30.0070.03511.99
5.4.20.0090.04711.98
5.4.10.0070.03311.99
5.4.00.0060.03811.48
5.3.290.0150.04512.80
5.3.280.0050.04212.71
5.3.270.0070.04212.72
5.3.260.0100.04112.72
5.3.250.0070.03712.72
5.3.240.0060.04512.72
5.3.230.0110.04112.71
5.3.220.0100.05212.68
5.3.210.0180.04912.68
5.3.200.0160.05212.68
5.3.190.0120.05312.68
5.3.180.0090.05312.67
5.3.170.0120.05012.66
5.3.160.0130.04812.67
5.3.150.0170.04712.67
5.3.140.0130.05712.66
5.3.130.0090.04712.66
5.3.120.0080.04812.66
5.3.110.0070.03812.66
5.3.100.0110.04712.12
5.3.90.0100.05012.08
5.3.80.0140.05112.08
5.3.70.0110.04912.07
5.3.60.0130.04812.06
5.3.50.0060.05212.00
5.3.40.0120.04212.00
5.3.30.0100.04411.95
5.3.20.0070.04211.73
5.3.10.0040.04511.70
5.3.00.0080.04211.69
5.2.170.0100.0289.18
5.2.160.0080.0309.18
5.2.150.0050.0409.18
5.2.140.0040.0399.18
5.2.130.0050.0429.14
5.2.120.0060.0419.14
5.2.110.0050.0389.14
5.2.100.0060.0279.14
5.2.90.0050.0309.14
5.2.80.0070.0319.14
5.2.70.0060.0419.14
5.2.60.0050.0319.10
5.2.50.0060.0299.07
5.2.40.0100.0359.04
5.2.30.0100.0289.01
5.2.20.0060.0409.00
5.2.10.0080.0368.93
5.2.00.0070.0408.79
5.1.60.0050.0258.07
5.1.50.0060.0318.07
5.1.40.0060.0248.05
5.1.30.0060.0368.39
5.1.20.0000.0318.41
5.1.10.0030.0278.14
5.1.00.0030.0268.14
5.0.50.0060.0266.62
5.0.40.0070.0256.48
5.0.30.0070.0396.29
5.0.20.0070.0276.27
5.0.10.0030.0246.24
5.0.00.0000.0486.23
4.4.90.0030.0264.78
4.4.80.0040.0214.75
4.4.70.0060.0194.75
4.4.60.0030.0244.75
4.4.50.0080.0284.77
4.4.40.0110.0414.70
4.4.30.0050.0164.76
4.4.20.0050.0234.84
4.4.10.0050.0174.85
4.4.00.0030.0284.76
4.3.110.0030.0204.67
4.3.100.0020.0234.67
4.3.90.0050.0204.64
4.3.80.0040.0314.59
4.3.70.0030.0214.63
4.3.60.0050.0134.63
4.3.50.0020.0184.63
4.3.40.0040.0244.54
4.3.30.0030.0223.28
4.3.20.0030.0163.26
4.3.10.0030.0153.23
4.3.00.0100.01318.16

preferences:
141.88 ms | 1394 KiB | 7 Q