3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct(): void { return "bar"; } } $foo = new Foo(); var_dump($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)
8.0.00.0210.00316.58
7.4.130.0130.00516.17
7.4.120.0130.01016.30
7.4.110.0200.00616.28
7.4.100.0110.00616.48
7.4.90.0040.01516.21
7.4.80.0160.00316.28
7.4.70.0090.01216.29
7.4.60.0070.01016.28
7.4.50.0130.01016.27
7.4.40.0060.01216.21
7.4.30.0070.01416.28
7.4.20.0110.00816.29
7.4.10.0140.01016.38
7.4.00.0080.01116.16
7.3.250.0180.00316.55
7.3.240.0090.00916.35
7.3.230.0140.01116.15
7.3.220.0120.00616.09
7.3.210.0110.00716.41
7.3.200.0150.00916.19
7.3.190.0120.00616.31
7.3.180.0090.00916.26
7.3.170.0170.00316.37
7.3.160.0100.01016.04
7.3.150.0110.01116.07
7.3.140.0090.00916.30
7.3.130.0000.01716.17
7.3.120.0060.01116.34
7.3.110.0140.00316.06
7.3.100.0160.00916.17
7.3.90.0140.00416.36
7.3.80.0150.00716.13
7.3.70.0050.01415.30
7.3.60.0130.00515.49
7.3.50.0100.00715.35
7.3.40.0100.00615.43
7.3.30.0080.01315.47
7.3.20.0150.00615.40
7.3.10.0110.01215.41
7.3.00.0150.00515.53
7.2.340.0140.00716.18
7.2.330.0120.00616.34
7.2.320.0110.01116.14
7.2.310.0120.00616.32
7.2.300.0100.00716.25
7.2.290.0120.00616.23
7.2.280.0070.01016.30
7.2.270.0150.00616.38
7.2.260.0110.00716.55
7.2.250.0150.00416.16
7.2.240.0070.01416.48
7.2.230.0100.00716.37
7.2.220.0160.00616.27
7.2.210.0060.01216.22
7.2.200.0110.01015.52
7.2.190.0130.00615.48
7.2.180.0080.00915.38
7.2.170.0130.00415.53
7.2.160.0090.01115.54
7.2.150.0220.01015.55
7.2.140.0140.00815.58
7.2.130.0130.01015.45
7.2.120.0100.01115.66
7.2.110.0150.00515.44
7.2.100.0100.00915.61
7.2.90.0130.00815.40
7.2.80.0160.00615.50
7.2.70.0160.00715.59
7.2.60.0180.00215.58
7.2.50.0150.00615.38
7.2.40.0120.01015.67
7.2.30.0100.00915.66
7.2.20.0120.01115.68
7.2.10.0130.00715.58
7.2.00.0150.00615.63
7.1.330.0080.00815.25
7.1.320.0140.00315.09
7.1.310.0160.00015.36
7.1.300.0110.00714.53
7.1.290.0130.00714.45
7.1.280.0150.00314.63
7.1.270.0150.00614.34
7.1.260.0120.00614.38
7.1.250.0820.01014.65
7.1.240.0100.00715.51
7.1.230.0130.00615.48
7.1.220.0080.00815.19
7.1.210.0170.00015.44
7.1.200.0100.00615.32
7.1.190.0140.00415.35
7.1.180.0170.00315.22
7.1.170.0140.00715.37
7.1.160.0120.00615.38
7.1.150.0230.01015.25
7.1.140.0120.00315.22
7.1.130.0150.00615.45
7.1.120.0030.01315.35
7.1.110.0090.00615.38
7.1.100.0060.00915.27
7.1.90.0140.00315.16
7.1.80.0120.00315.24
7.1.70.0120.00614.99
7.1.60.0040.01315.09
7.1.50.0070.01015.11
7.1.40.0100.00615.12
7.1.30.0030.01315.32
7.1.20.0060.01015.11
7.1.10.0030.01315.43
7.1.00.0120.00914.97

preferences:
150.35 ms | 995 KiB | 7 Q