3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { static $bar = "1234567890123456789012345678901234567890"; return $bar; } var_dump(memory_get_usage()); $f = foo(); var_dump(memory_get_usage());

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.2.00.0060.00319.32
7.1.70.0080.00017.10
7.1.60.0090.01219.82
7.1.50.0030.01916.98
7.1.00.0030.07022.28
7.0.200.0070.00716.33
7.0.140.0070.06722.03
7.0.60.0100.06319.92
7.0.50.0130.07317.85
7.0.40.0100.08320.26
7.0.30.0270.03320.07
7.0.20.0470.05720.03
7.0.10.0030.05720.29
7.0.00.0070.08320.20
5.6.280.0000.07721.10
5.6.210.0130.07720.57
5.6.200.0030.04318.24
5.6.190.0070.08020.48
5.6.180.0330.06720.55
5.6.170.0270.07720.51
5.6.160.0000.04320.46
5.6.150.0000.08718.24
5.6.140.0170.07318.14
5.6.130.0200.06718.18
5.6.120.0000.04721.02
5.6.110.0100.08321.05
5.6.100.0000.04321.13
5.6.90.0100.03721.00
5.6.80.0130.05020.41
5.6.70.3670.04320.50
5.5.350.0030.08020.46
5.5.340.0000.08717.98
5.5.330.0100.08320.41
5.5.320.0400.07020.34
5.5.310.0330.05720.14
5.5.300.0000.05718.03
5.5.290.0000.05018.00
5.5.280.0030.04720.94
5.5.270.0100.07720.87
5.5.260.0130.08020.88
5.5.250.0070.08720.69
5.5.240.0300.07020.33
5.4.450.0200.05019.29
5.4.440.0270.06319.50
5.4.430.0330.07019.52
5.4.420.0200.04719.63
5.4.410.0230.05319.03
5.4.400.0230.04319.20
5.4.390.0170.04019.09
5.4.380.0170.04719.14
5.4.370.0200.04019.25
5.4.360.0230.04719.07
5.4.350.0230.05019.15
5.4.340.0300.04019.16
5.4.320.0330.05318.87
5.4.310.0200.04319.13
5.4.300.0200.03319.30
5.4.290.0300.03019.21
5.4.280.0170.05018.85
5.4.270.0270.04019.22
5.4.260.0200.03719.08
5.4.250.0270.04019.21
5.4.240.0200.07018.86
5.4.230.0130.06718.97
5.4.220.0170.08019.08
5.4.210.0200.04019.21
5.4.200.0200.04718.94
5.4.190.0300.03719.22
5.4.180.0200.04319.20
5.4.170.0270.06719.20
5.4.160.0270.03719.16
5.4.150.0300.03719.05
5.4.140.0200.07316.29
5.4.130.0130.04016.30
5.4.120.0200.04316.32
5.4.110.0330.06016.38
5.4.100.0270.06316.62
5.4.90.0170.06016.36
5.4.80.0130.04716.18
5.4.70.0270.04716.52
5.4.60.0270.03716.51
5.4.50.0230.06716.42
5.4.40.0200.04716.37
5.4.30.0200.03016.55
5.4.20.0230.04016.54
5.4.10.0270.04316.32
5.4.00.0300.05715.73
5.3.290.0170.05314.63
5.3.280.0230.04014.56
5.3.270.0200.03714.68
5.3.260.0170.04314.62
5.3.250.0200.03314.52
5.3.240.0270.04014.68
5.3.230.0130.04014.82
5.3.220.0230.06314.61
5.3.210.0200.04714.57
5.3.200.0170.07014.49
5.3.190.0200.04314.53
5.3.180.0170.05014.79
5.3.170.0230.04014.67
5.3.160.0230.07714.54
5.3.150.0200.06014.58
5.3.140.0230.04014.55
5.3.130.0270.03714.63
5.3.120.0130.04314.53
5.3.110.0170.05014.46
5.3.100.0270.06714.11
5.3.90.0200.03314.03
5.3.80.0030.06013.99
5.3.70.0070.03313.95
5.3.60.0030.06014.09
5.3.50.1570.05314.06
5.3.40.2400.03713.84
5.3.30.1500.03313.85
5.3.20.1930.03013.58
5.3.10.1900.03013.88
5.3.00.1800.04013.86
5.2.170.1530.02711.02
5.2.160.1700.03711.05
5.2.150.1600.02311.06
5.2.140.1470.04011.04
5.2.130.1470.02311.02
5.2.120.0000.03011.11
5.2.110.0000.03011.01
5.2.100.0030.02711.21
5.2.90.0530.02311.00
5.2.80.1530.03011.10
5.2.70.1630.02711.12
5.2.60.1830.03010.98
5.2.50.1570.03011.09
5.2.40.1270.03011.11
5.2.30.1300.02310.88
5.2.20.1500.03011.18
5.2.10.1470.03010.83
5.2.00.1270.03310.71
5.1.60.1370.0309.97
5.1.50.1270.02310.22
5.1.40.1370.0339.90
5.1.30.1370.02310.57
5.1.20.0000.05010.25
5.1.10.0000.0409.99
5.1.00.0030.0279.95
5.0.50.0030.0308.52
5.0.40.0000.0208.39
5.0.30.0070.0278.45
5.0.20.0630.0238.19
5.0.10.0530.0178.15
5.0.00.0670.0378.04
4.4.90.0830.0237.56
4.4.80.0700.0177.56
4.4.70.0630.0177.56
4.4.60.0630.0207.56
4.4.50.0370.0177.56
4.4.40.0270.0277.56
4.4.30.0800.0137.56
4.4.20.0600.0207.56
4.4.10.0600.0137.56
4.4.00.0700.0377.56
4.3.110.0600.0177.56
4.3.100.0670.0177.56
4.3.90.0770.0177.56
4.3.80.0800.0337.56
4.3.70.0770.0237.56
4.3.60.0770.0237.56
4.3.50.0800.0237.56
4.3.40.0700.0277.56
4.3.30.0000.0177.56
4.3.20.0030.0337.56
4.3.10.0000.0407.56
4.3.00.0070.0237.56

preferences:
38.49 ms | 401 KiB | 5 Q