3v4l.org

run code in 300+ PHP versions simultaneously
<?php function surprise($str = '') { if ($str !== '') { static $value = $str; echo $value; return; } static $value = ''; echo 'value est vide'; return; } surprise();

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.270.0100.05018.84
5.4.260.0230.06018.80
5.4.250.0070.07718.79
5.4.240.0130.05718.98
5.4.230.0170.05318.80
5.4.220.0070.07718.93
5.4.210.0070.06019.00
5.4.200.0270.04718.98
5.4.190.0100.05719.08
5.4.180.0170.06318.99
5.4.170.0100.06718.98
5.4.160.0170.06718.98
5.4.150.0130.07318.98
5.4.140.0100.05016.29
5.4.130.0130.04716.29
5.4.120.0030.07016.33
5.4.110.0030.06316.47
5.4.100.0070.06016.62
5.4.90.0070.04716.48
5.4.80.0070.06316.55
5.4.70.0130.04716.47
5.4.60.0130.05016.39
5.4.50.0130.04316.47
5.4.40.0070.05316.51
5.4.30.0130.04016.52
5.4.20.0100.06716.49
5.4.10.0200.06716.39
5.4.00.0170.06316.09
5.3.280.0170.06714.68
5.3.270.0170.07314.78
5.3.260.0100.06714.74
5.3.250.0170.06714.59
5.3.240.0100.06714.69
5.3.230.0130.07014.59
5.3.220.0100.07314.64
5.3.210.0200.06714.54
5.3.200.0100.05714.79
5.3.190.0170.06714.74
5.3.180.0130.07014.72
5.3.170.0130.04714.53
5.3.160.0100.08014.78
5.3.150.0100.05314.78
5.3.140.0270.05014.46
5.3.130.0070.05314.58
5.3.120.0130.05314.55
5.3.110.0100.05014.61
5.3.100.0130.06714.26
5.3.90.0100.07013.93
5.3.80.0130.05314.09
5.3.70.0230.05313.92
5.3.60.0070.05014.16
5.3.50.0170.04013.78
5.3.40.0100.05013.95
5.3.30.0130.06013.87
5.3.20.0100.05313.66
5.3.10.0130.05713.62
5.3.00.0100.04713.66
5.2.170.0130.05311.14
5.2.160.0170.03711.20
5.2.150.0200.04711.04
5.2.140.0100.05311.04
5.2.130.0070.05311.08
5.2.120.0030.04011.31
5.2.110.0130.04711.17
5.2.100.0070.04011.00
5.2.90.0030.06011.18
5.2.80.0030.06010.99
5.2.70.0070.04311.17
5.2.60.0030.04311.13
5.2.50.0100.04010.93
5.2.40.0070.04311.08
5.2.30.0030.04310.96
5.2.20.0100.03710.93
5.2.10.0100.04010.93
5.2.00.0170.03310.80
5.1.60.0000.0409.99
5.1.50.0030.0509.83
5.1.40.0100.0339.93
5.1.30.0100.04710.43
5.1.20.0030.05310.41
5.1.10.0070.04710.02
5.1.00.0070.0509.99
5.0.50.0070.0378.70
5.0.40.0070.0378.37
5.0.30.0070.0538.46
5.0.20.0070.0338.39
5.0.10.0070.0278.37
5.0.00.0100.0378.25
4.4.90.0030.0307.12
4.4.80.0030.0307.12
4.4.70.0070.0237.12
4.4.60.0000.0277.12
4.4.50.0100.0237.12
4.4.40.0030.0377.12
4.4.30.0000.0277.12
4.4.20.0000.0307.11
4.4.10.0000.0237.11
4.4.00.0000.0477.12
4.3.110.0070.0177.12
4.3.100.0100.0177.12
4.3.90.0070.0307.12
4.3.80.0030.0437.12
4.3.70.0100.0277.12
4.3.60.0030.0337.12
4.3.50.0030.0277.12
4.3.40.0070.0337.12
4.3.30.0000.0237.12
4.3.20.0030.0277.12
4.3.10.0000.0237.12
4.3.00.0100.0207.77

preferences:
141.28 ms | 1394 KiB | 7 Q