3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct() { print 'construct'; } public function Foo() { print 'foo'; } public function foo() { print 'foo'; } } $foo = new 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.350.0200.03719.22
5.4.340.0200.07719.12
5.4.320.0600.05719.08
5.4.310.0300.06018.86
5.4.300.0200.08019.24
5.4.290.0200.04319.09
5.4.280.0270.06319.14
5.4.270.0300.06719.21
5.4.260.0230.04719.14
5.4.250.0330.06018.84
5.4.240.0270.04318.83
5.4.230.0200.04018.95
5.4.220.0300.07018.84
5.4.210.0300.06719.19
5.4.200.0300.07319.30
5.4.190.0230.04019.08
5.4.180.0330.06019.15
5.4.170.0330.05718.86
5.4.160.0330.06019.04
5.4.150.0330.07019.04
5.4.140.0300.04716.38
5.4.130.0400.06016.50
5.4.120.0230.06716.66
5.4.110.0400.06316.28
5.4.100.0300.05016.52
5.4.90.0330.06716.51
5.4.80.0300.04016.54
5.4.70.0300.06016.49
5.4.60.0300.06716.54
5.4.50.0370.05316.43
5.4.40.0270.05716.54
5.4.30.0300.07016.52
5.4.20.0230.04716.33
5.4.10.0300.03016.42
5.4.00.0200.03716.28
5.3.290.0230.08316.28
5.3.280.0270.04716.28
5.3.270.0230.04316.28
5.3.260.0200.04016.28
5.3.250.0330.06316.28
5.3.240.0270.04016.28
5.3.230.0300.07016.28
5.3.220.0300.06016.28
5.3.210.0230.05316.28
5.3.200.0270.03716.28
5.3.190.0230.07716.28
5.3.180.0370.05316.28
5.3.170.0200.05316.28
5.3.160.0200.04016.28
5.3.150.0270.06316.28
5.3.140.0170.04316.28
5.3.130.0200.05716.28
5.3.120.0270.06716.28
5.3.110.0200.05316.28
5.3.100.0300.07016.28
5.3.90.0230.04316.28
5.3.80.0230.07016.28
5.3.70.0330.05716.28
5.3.60.0270.06716.28
5.3.50.0170.05316.28
5.3.40.0300.06016.28
5.3.30.0270.04316.28
5.3.20.0270.04316.28
5.3.10.0230.03316.28
5.3.00.0230.03716.28
5.2.170.0230.04716.28
5.2.160.0130.03316.28
5.2.150.0130.03716.28
5.2.140.0200.05716.28
5.2.130.0270.04016.28
5.2.120.0230.04316.28
5.2.110.0370.04016.28
5.2.100.0400.02016.28
5.2.90.0170.04316.28
5.2.80.0270.05016.28
5.2.70.0230.03016.28
5.2.60.0200.04016.28
5.2.50.0170.03016.28
5.2.40.0100.03316.28
5.2.30.0100.03316.28
5.2.20.0200.02716.28
5.2.10.0130.06016.28
5.2.00.0200.05016.28
5.1.60.0300.03316.28
5.1.50.0200.03716.28
5.1.40.0130.03716.28
5.1.30.0130.03016.28
5.1.20.0200.04316.28
5.1.10.0170.03016.28
5.1.00.0170.04316.28
5.0.50.0130.03716.28
5.0.40.0130.01316.28
5.0.30.0130.04316.28
5.0.20.0130.03716.28
5.0.10.0230.03016.28
5.0.00.0130.05316.28
4.4.90.0070.03016.28
4.4.80.0100.03316.28
4.4.70.0170.01716.28
4.4.60.0130.02716.28
4.4.50.0070.02016.28
4.4.40.0070.05016.28
4.4.30.0130.03016.28
4.4.20.0100.03016.28
4.4.10.0070.03016.28
4.4.00.0070.03316.28
4.3.110.0070.03016.28
4.3.100.0100.02016.28
4.3.90.0130.02716.28
4.3.80.0070.03716.28
4.3.70.0100.02716.28
4.3.60.0170.02016.28
4.3.50.0100.03316.28
4.3.40.0230.02016.28
4.3.30.0100.02716.28
4.3.20.0100.03316.28
4.3.10.0030.02316.28
4.3.00.0070.03016.28

preferences:
143.15 ms | 1386 KiB | 7 Q