3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = 'ABC123'; switch (false) { case isset($var): throw new Exception("Not set!"); case $var: throw new Exception("False!"); case isstring($var): throw new Exception("Not a string!"); default: echo "All checks passed"!; }

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.1.70.1190.04015.05
7.1.60.1760.01633.24
7.1.50.1570.02632.90
7.1.40.0470.02332.34
7.1.30.0620.01232.66
7.1.20.0520.00932.52
7.1.10.2500.01414.57
7.1.00.0240.01714.79
7.0.200.0850.02014.74
7.0.190.1370.02214.42
7.0.180.0370.01214.20
7.0.170.0300.01914.41
7.0.160.0190.01914.46
7.0.150.0180.02114.17
7.0.140.0250.00914.38
7.0.130.0240.02114.70
7.0.120.0340.01014.51
7.0.110.0230.01314.34
7.0.100.0160.01614.24
7.0.90.0340.01114.32
7.0.80.0250.01614.26
7.0.70.0330.01014.21
7.0.60.0320.01314.15
7.0.50.0330.01314.29
7.0.40.0270.01014.39
7.0.30.0220.00914.43
7.0.20.0190.01314.47
7.0.10.0230.00714.55
7.0.00.0260.00314.64

preferences:
141.21 ms | 1398 KiB | 7 Q