3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 2; switch($i){ case 1: echo "It's about one"; break; case 2: echo "It's about two"; break; case 3: echo "it's about three"; break; case default: echo "not at all"; }

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.170.0200.07319.00
5.4.160.0070.05318.98
5.4.150.0100.05318.92
5.4.140.0070.05016.69
5.4.130.0170.05316.59
5.4.120.0100.04716.36
5.4.110.0030.06016.55
5.4.100.0100.07016.63
5.4.90.0030.07016.41
5.4.80.0200.06016.62
5.4.70.0170.04316.68
5.4.60.0100.05716.63
5.4.50.0030.07316.39
5.4.40.0030.06316.56
5.4.30.0100.05016.62
5.4.20.0170.06316.66
5.4.10.0130.04316.39
5.4.00.0070.07016.13
5.3.270.0200.04314.59
5.3.260.0100.06714.59
5.3.250.0200.06314.60
5.3.240.0030.05714.72
5.3.230.0030.07714.69
5.3.220.0070.05314.72
5.3.210.0130.07314.49
5.3.200.0070.05314.68
5.3.190.0070.06314.55
5.3.180.0130.04714.72
5.3.170.0070.05314.58
5.3.160.0130.04714.71
5.3.150.0070.06014.49
5.3.140.0170.06014.65
5.3.130.0170.04714.59
5.3.120.0200.04714.38
5.3.110.0100.07714.64
5.3.100.0030.05714.13
5.3.90.0030.05314.00
5.3.80.0030.05714.01
5.3.70.0100.05313.95
5.3.60.0100.04713.93
5.3.50.0030.07014.06
5.3.40.0130.05013.93
5.3.30.0130.05314.02
5.3.20.0070.07013.87
5.3.10.0130.06013.72
5.3.00.0030.05713.86

preferences:
134.95 ms | 1386 KiB | 7 Q