3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=$_GET['fuck']; $b=$_GET['you']; if(is_string($a)); echo " $a good 1"; else if(is_string($b)); echo "this $b 2"; else echo "$a $b 3"; ?>

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.160.0200.07718.82
5.4.150.0330.06319.20
5.4.140.0200.04716.46
5.4.130.0200.06716.30
5.4.120.0270.06316.33
5.4.110.0200.06016.50
5.4.100.0200.04716.54
5.4.90.0200.03316.25
5.4.80.0200.04716.39
5.4.70.0230.03716.44
5.4.60.0300.06016.51
5.4.50.0300.05716.52
5.4.40.0270.04316.55
5.4.30.0230.04316.16
5.4.20.0170.03716.43
5.4.10.0200.06016.51
5.4.00.0200.07015.81
5.3.260.0230.07314.54
5.3.250.0270.06014.44
5.3.240.0170.06314.55
5.3.230.0300.02714.46
5.3.220.0230.04014.51
5.3.210.0130.07714.45
5.3.200.0200.04014.52
5.3.190.0200.03314.41
5.3.180.0200.07014.52
5.3.170.0200.04314.47
5.3.160.0130.04014.39
5.3.150.0170.04714.50
5.3.140.0200.07014.50
5.3.130.0170.04714.45
5.3.120.0130.04014.46
5.3.110.0130.03714.57
5.3.100.0200.03013.99
5.3.90.0170.04713.82
5.3.80.0100.04013.88
5.3.70.0200.06013.90
5.3.60.0230.04713.88
5.3.50.0230.07013.78
5.3.40.0130.04313.93
5.3.30.0200.06713.74
5.3.20.0230.03013.73
5.3.10.0170.04013.71
5.3.00.0070.04013.46
5.2.170.0170.03013.00
5.2.160.0130.03313.00
5.2.150.0130.03313.00
5.2.140.0130.02713.00
5.2.130.0170.02713.00
5.2.120.0130.03713.00
5.2.110.0130.05313.00
5.2.100.0130.06713.00
5.2.90.0200.04713.00
5.2.80.0130.06013.00
5.2.70.0230.04313.00
5.2.60.0300.02313.00
5.2.50.0230.03313.00
5.2.40.0230.05313.00
5.2.30.0170.05013.00
5.2.20.0200.05313.00
5.2.10.0170.05713.00
5.2.00.0170.02713.00
5.1.60.0170.03713.00
5.1.50.0200.03013.00
5.1.40.0100.03713.00
5.1.30.0170.03013.00
5.1.20.0170.03013.00
5.1.10.0170.05013.00
5.1.00.0170.02313.00
5.0.50.0070.04013.00
5.0.40.0170.04013.00
5.0.30.0130.05013.00
5.0.20.0070.02713.00
5.0.10.0130.02713.00
5.0.00.0070.06313.00
4.4.90.0100.03013.00
4.4.80.0100.03013.00
4.4.70.0070.03313.00
4.4.60.0070.03013.00
4.4.50.0130.02013.00
4.4.40.0130.05013.00
4.4.30.0070.03313.00
4.4.20.0100.03013.00
4.4.10.0070.02713.00
4.4.00.0070.05313.00
4.3.110.0100.02013.00
4.3.100.0070.03713.00
4.3.90.0070.02313.00
4.3.80.0100.03713.00
4.3.70.0030.02313.00
4.3.60.0070.02313.00
4.3.50.0030.02713.00
4.3.40.0070.04013.00
4.3.30.0030.04013.00
4.3.20.0000.03313.00
4.3.10.0030.03713.00
4.3.00.0030.02713.00

preferences:
137.23 ms | 1386 KiB | 7 Q