3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first = "Tomorrow I \'ll learn PHP global variables."; $second = "This is a bad command : del c:\*.*" function print(){ $GLOBALS["z"] = $GLOBALS["first"] + $GLOBALS["second"]; echo GLOBALS["first"]<br>; echo GLOBALS["second"]<br>; } print(); ?>

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.320.0330.03019.15
5.4.310.0400.06019.15
5.4.300.0300.06719.21
5.4.290.0300.04719.22
5.4.280.0370.06319.06
5.4.270.0270.04718.87
5.4.260.0370.05719.16
5.4.250.0330.06019.16
5.4.240.0300.03719.31
5.4.230.0330.07019.15
5.4.220.0230.06718.87
5.4.210.0230.03718.86
5.4.200.0330.07018.82
5.4.190.0370.03718.86
5.4.180.0270.05319.21
5.4.170.0230.06718.95
5.4.160.0300.04319.20
5.4.150.0270.06719.11
5.4.140.0370.06016.32
5.4.130.0300.06716.30
5.4.120.0230.04716.41
5.4.110.0230.07316.58
5.4.100.0230.04716.56
5.4.90.0330.06716.32
5.4.80.0370.04716.43
5.4.70.0370.04016.57
5.4.60.0200.04016.43
5.4.50.0270.04316.39
5.4.40.0200.07016.34
5.4.30.0330.06016.43
5.4.20.0230.06016.24
5.4.10.0330.04316.52
5.4.00.0270.04015.96
5.3.290.0300.06714.51
5.3.280.0230.05714.62
5.3.270.0170.04014.53
5.3.260.0200.05714.58
5.3.250.0300.04314.48
5.3.240.0200.06714.69
5.3.230.0230.04314.55
5.3.220.0170.07014.66
5.3.210.0300.03314.60
5.3.200.0230.05014.54
5.3.190.0230.03714.42
5.3.180.0300.04714.40
5.3.170.0300.07314.41
5.3.160.0300.07314.54
5.3.150.0230.05014.42
5.3.140.0270.03714.39
5.3.130.0300.05714.43
5.3.120.0270.07014.50
5.3.110.0300.07014.59
5.3.100.0270.04314.13
5.3.90.0170.04314.00
5.3.80.0200.04314.04
5.3.70.0270.05313.92
5.3.60.0270.03713.91
5.3.50.0330.07013.97
5.3.40.0330.06013.92
5.3.30.0300.06313.75
5.3.20.0370.05013.52
5.3.10.0270.04313.49
5.3.00.0230.06013.59
5.2.170.0270.05311.05
5.2.160.0330.05311.04
5.2.150.0270.06010.99
5.2.140.0300.05710.99
5.2.130.0230.03310.99
5.2.120.0230.05011.25
5.2.110.0230.05711.11
5.2.100.0270.05711.20
5.2.90.0230.05711.01
5.2.80.0330.05010.94
5.2.70.0170.04711.11
5.2.60.0200.03310.89
5.2.50.0330.05311.17
5.2.40.0300.04710.93
5.2.30.0200.06010.81
5.2.20.0230.03011.00
5.2.10.0130.03710.88
5.2.00.0230.03310.75
5.1.60.0200.04310.51
5.1.50.0270.04310.51
5.1.40.0200.05010.51
5.1.30.0270.05010.51
5.1.20.0200.05710.51
5.1.10.0300.04310.51
5.1.00.0200.05710.51
5.0.50.0130.02310.51
5.0.40.0100.02010.51
5.0.30.0130.06010.51
5.0.20.0070.03010.51
5.0.10.0130.01710.51
5.0.00.0070.03310.51
4.4.90.0100.01310.51
4.4.80.0170.03010.51
4.4.70.0130.03310.51
4.4.60.0100.02710.51
4.4.50.0130.02310.51
4.4.40.0100.05310.51
4.4.30.0100.03310.51
4.4.20.0130.03010.51
4.4.10.0100.03710.51
4.4.00.0070.03010.51
4.3.110.0070.01710.51
4.3.100.0130.03010.51
4.3.90.0070.02010.51
4.3.80.0070.02710.51
4.3.70.0100.03310.51
4.3.60.0130.03010.51
4.3.50.0130.03710.51
4.3.40.0070.05710.51
4.3.30.0030.04010.51
4.3.20.0070.03010.51
4.3.10.0070.03310.51
4.3.00.0030.02010.51

preferences:
139.23 ms | 1398 KiB | 7 Q