3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 5; $c = 6; $b = 7; echo $a > $c ?? $b

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.20.0300.07019.99
7.0.10.0000.09320.19
7.0.00.0070.03720.18
5.6.170.0300.07720.55
5.6.160.0030.08720.55
5.6.150.0070.08018.28
5.6.140.0000.07318.23
5.6.130.0030.05318.27
5.6.120.0070.08720.98
5.6.110.0030.08721.07
5.6.100.0100.04021.05
5.6.90.0170.07020.98
5.6.80.0130.07320.37
5.5.310.0230.07320.35
5.5.300.0070.04317.97
5.5.290.0070.05317.95
5.5.280.0000.04720.97
5.5.270.0170.07320.96
5.5.260.0100.08720.75
5.5.250.0130.07320.49
5.5.240.0070.08020.31

preferences:
141.54 ms | 1394 KiB | 7 Q