3v4l.org

run code in 300+ PHP versions simultaneously
<?php $price = 456.78 function lpe($p) { $p = $price; $base = $p * 0.83; $markup = $base * 0.17; $total = $base + $markup; $rounded = ceil($total / 10) * 10; return $rounded; }; $lp = lpe(); ?>

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)
7.0.10.0030.05720.12
7.0.00.0030.08720.20
5.6.160.0030.04320.54
5.6.150.0070.07718.18
5.6.140.0030.04018.23
5.6.130.0030.04018.23
5.6.120.0130.05021.00
5.6.110.0030.05721.11
5.6.100.0100.08321.00
5.6.90.0100.04020.97
5.6.80.0100.07720.50
5.5.300.0000.04018.04
5.5.290.0070.08017.98
5.5.280.0030.04020.86
5.5.270.0100.06320.86
5.5.260.0070.07720.67
5.5.250.0000.04320.61
5.5.240.0330.06020.07

preferences:
142.77 ms | 1394 KiB | 7 Q