3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bar { public function foo() { namespace { } namespace The\Other\Thing { var_dump($this); } } } (new Bar)->foo();

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.340.0200.05319.20
5.4.320.0230.07318.96
5.4.310.0330.06019.09
5.4.300.0300.05719.13
5.4.290.0230.06319.33
5.4.280.0300.04019.16
5.4.270.0230.05319.20
5.4.260.0200.03718.99
5.4.250.0170.03718.95
5.4.240.0270.07019.14
5.4.230.0300.06719.03
5.4.220.0270.06719.17
5.4.210.0200.06719.34
5.4.200.0300.06319.14
5.4.190.0170.05019.19
5.4.180.0270.07319.07
5.4.170.0270.05719.12
5.4.160.0130.04019.15
5.4.150.0100.04318.97
5.4.140.0230.03716.36
5.4.130.0100.03716.37
5.4.120.0070.05016.62
5.4.110.0130.03716.37
5.4.100.0200.03016.56
5.4.90.0170.03016.19
5.4.80.0070.04316.26
5.4.70.0170.03316.35
5.4.60.0200.03016.25
5.4.50.0330.04016.38
5.4.40.0130.04016.52
5.4.30.0170.03316.42
5.4.20.0100.03716.34
5.4.10.0130.04016.32
5.4.00.0230.03015.79
5.3.290.0300.04014.88
5.3.280.0270.06314.50
5.3.270.0200.08014.57
5.3.260.0200.04314.60
5.3.250.0170.04314.58
5.3.240.0170.03314.78
5.3.230.0130.03714.67
5.3.220.0100.04014.47
5.3.210.0170.03314.48
5.3.200.0170.03714.78
5.3.190.0170.03714.64
5.3.180.0130.03714.64
5.3.170.0130.04014.58
5.3.160.0170.04014.79
5.3.150.0100.04014.68
5.3.140.0100.04014.77
5.3.130.0130.04714.47
5.3.120.0170.03314.56
5.3.110.0130.03714.77
5.3.100.0170.03314.05
5.3.90.0230.02714.00
5.3.80.0130.03313.94
5.3.70.0070.04714.09
5.3.60.0170.03014.02
5.3.50.0100.04714.02
5.3.40.0030.05013.86
5.3.30.0130.03313.80
5.3.20.0130.03313.61
5.3.10.0100.03713.87
5.3.00.0130.03313.64
5.2.170.0130.02712.36
5.2.160.0200.02012.36
5.2.150.0100.03312.36
5.2.140.0100.03312.36
5.2.130.0070.03312.36
5.2.120.0070.03312.36
5.2.110.0130.03012.36
5.2.100.0100.03012.36
5.2.90.0130.03312.36
5.2.80.0170.03712.36
5.2.70.0200.05712.36
5.2.60.0100.04312.36
5.2.50.0170.05012.36
5.2.40.0170.04312.36
5.2.30.0170.06312.36
5.2.20.0170.05312.36
5.2.10.0170.06012.36
5.2.00.0170.05712.36
5.1.60.0170.05312.36
5.1.50.0130.04712.36
5.1.40.0130.05712.36
5.1.30.0170.05312.36
5.1.20.0200.05312.36
5.1.10.0170.05312.36
5.1.00.0130.05712.36
5.0.50.0170.03312.36
5.0.40.0070.03312.36
5.0.30.0030.07012.36
5.0.20.0130.04012.36
5.0.10.0030.03712.36
5.0.00.0070.06012.36
4.4.90.0070.03012.36
4.4.80.0100.03012.36
4.4.70.0070.03712.36
4.4.60.0030.04012.36
4.4.50.0100.02012.36
4.4.40.0100.04712.36
4.4.30.0070.04012.36
4.4.20.0070.03312.36
4.4.10.0200.02312.36
4.4.00.0100.04012.36
4.3.110.0070.03312.36
4.3.100.0100.02712.36
4.3.90.0100.02712.36
4.3.80.0130.03312.36
4.3.70.0070.02712.36
4.3.60.0130.02712.36
4.3.50.0100.02012.36
4.3.40.0100.04712.36
4.3.30.0070.01712.36
4.3.20.0070.01712.36
4.3.10.0100.02312.36
4.3.00.0070.02312.36

preferences:
138.81 ms | 1398 KiB | 7 Q