3v4l.org

run code in 300+ PHP versions simultaneously
<?php $items = false; $quantity = count($items); // default return value 1 with scalars unless var is null if ( $quantity) > 0) { echo "Sending you $quantity item(s)"; }

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.280.0670.03718.96
5.4.270.0530.04318.88
5.4.260.0470.04718.98
5.4.250.0970.03718.82
5.4.240.0670.03719.21
5.4.230.0670.03318.96
5.4.220.0370.07319.12
5.4.210.0500.04319.29
5.4.200.0730.03018.96
5.4.190.0770.03719.04
5.4.180.0400.04018.84
5.4.170.0370.05019.15
5.4.160.0370.03718.94
5.4.150.0800.04019.05
5.4.140.0430.03716.46
5.4.130.0470.03716.50
5.4.120.0870.03016.51
5.4.110.0300.04016.54
5.4.100.0670.02716.55
5.4.90.0330.04016.19
5.4.80.0630.04016.34
5.4.70.0830.02716.18
5.4.60.0770.04716.25
5.4.50.0470.04316.51
5.4.40.0800.02716.41
5.4.30.0430.03716.32
5.4.20.1070.03016.52
5.4.10.0800.03716.50
5.4.00.0430.03715.85
5.3.280.0570.03715.51
5.3.270.0700.03715.51
5.3.260.0330.04315.51
5.3.250.0830.03715.51
5.3.240.0230.04315.51
5.3.230.0470.04015.51
5.3.220.0300.05315.51
5.3.210.0600.03715.51
5.3.200.0770.03715.51
5.3.190.0670.03015.51
5.3.180.0400.03315.51
5.3.170.0400.04015.51
5.3.160.0570.04015.51
5.3.150.0370.04015.51
5.3.140.1000.03015.51
5.3.130.0130.04015.51
5.3.120.0370.04315.51
5.3.110.0500.06015.51
5.3.100.0570.03315.51
5.3.90.0570.04015.51
5.3.80.0530.03315.51
5.3.70.0570.04015.51
5.3.60.0470.04315.51
5.3.50.0430.03315.51
5.3.40.0600.04315.51
5.3.30.0830.03315.51
5.3.20.0870.02015.51
5.3.10.0170.03315.51
5.3.00.0300.04015.51

preferences:
144.38 ms | 1398 KiB | 7 Q