3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace App; class Bar {}; class Baz {}; class Foo { public function __construct( private Bar $bar, private Baz $baz ) {} } var_dump(new Foo(new Bar, new Baz));

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.3.60.0030.01316.32
8.3.50.0130.00316.55
8.3.40.0070.00718.54
8.3.30.0090.00618.68
8.3.20.0000.00824.18
8.3.10.0040.00424.66
8.3.00.0070.00026.16
8.2.180.0170.00025.92
8.2.170.0140.00018.84
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0000.00820.70
8.2.110.0080.00020.92
8.2.100.0080.00317.78
8.2.90.0030.00717.63
8.2.80.0000.00917.97
8.2.70.0050.00317.63
8.2.60.0060.00317.63
8.2.50.0080.00017.91
8.2.40.0040.00418.04
8.2.30.0040.00417.91
8.2.20.0000.00817.90
8.2.10.0020.00519.17
8.2.00.0000.00719.16
8.1.280.0040.01125.92
8.1.270.0060.00323.86
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00422.68
8.1.230.0000.01119.01
8.1.220.0030.00517.74
8.1.210.0080.00018.77
8.1.200.0100.00017.35
8.1.190.0000.00817.10
8.1.180.0060.00318.10
8.1.170.0040.00417.62
8.1.160.0000.00718.73
8.1.150.0020.00518.71
8.1.140.0070.00018.71
8.1.130.0000.00720.11
8.1.120.0040.00417.21
8.1.110.0000.00717.22
8.1.100.0050.00217.36
8.1.90.0000.00717.39
8.1.80.0040.00717.28
8.1.70.0000.00717.38
8.1.60.0060.00517.53
8.1.50.0030.00517.50
8.1.40.0040.00417.38
8.1.30.0000.00917.68
8.1.20.0040.00417.66
8.1.10.0040.00417.46
8.1.00.0000.00917.38
8.0.300.0040.00419.73
8.0.290.0090.00016.75
8.0.280.0000.00718.28
8.0.270.0000.00717.99
8.0.260.0000.00618.43
8.0.250.0000.00716.99
8.0.240.0030.00316.88
8.0.230.0040.00416.97
8.0.220.0050.00316.88
8.0.210.0030.00316.88
8.0.200.0040.00416.93
8.0.190.0040.00416.88
8.0.180.0000.00816.90
8.0.170.0080.00016.91
8.0.160.0000.00816.93
8.0.150.0000.00816.86
8.0.140.0000.01116.83
8.0.130.0030.00313.39
8.0.120.0040.00416.82
8.0.110.0080.00016.74
8.0.100.0040.00416.91
8.0.90.0080.00016.76
8.0.80.0050.01116.88
8.0.70.0070.01016.93
8.0.60.0070.01016.77
8.0.50.0100.00716.84
8.0.30.0110.00716.86
8.0.20.0080.00816.92
8.0.10.0120.00716.97
8.0.00.0120.00717.01
7.4.330.0000.00415.55
7.4.320.0060.00016.42
7.4.300.0000.00616.37
7.4.290.0030.00516.29
7.4.280.0060.00316.39
7.4.270.0040.00416.25
7.4.260.0030.00313.23
7.4.250.0040.00416.32
7.4.240.0030.00316.44
7.4.230.0070.00316.45
7.4.220.0040.00316.31
7.4.210.0080.00816.34
7.4.200.0000.01616.54
7.4.190.0110.00816.51
7.4.180.0120.00316.45
7.4.160.0100.00816.46
7.4.150.0070.00916.43
7.4.140.0100.00616.31
7.4.130.0070.00816.30
7.4.120.0080.00716.29
7.4.110.0070.00916.28
7.4.100.0100.00716.43
7.4.90.0080.01116.25
7.4.80.0060.01116.22
7.4.70.0080.00716.25
7.4.60.0070.00916.32
7.4.50.0090.00916.18
7.4.40.0050.01216.14
7.4.30.0090.00916.21
7.4.20.0100.00716.21
7.4.10.0050.01416.27
7.4.00.0090.00616.32
7.3.330.0070.00016.20
7.3.320.0050.00013.20
7.3.310.0000.00716.11
7.3.300.0060.00016.16
7.3.290.0070.00816.14
7.3.280.0080.01016.16
7.3.270.0080.00816.16
7.3.260.0110.00616.17
7.3.250.0070.00916.18
7.3.240.0090.00716.18
7.3.230.0070.00916.15
7.3.220.0100.00716.11
7.3.210.0070.00916.12
7.3.200.0070.01016.12
7.3.190.0090.00816.10
7.3.180.0070.01116.10
7.3.170.0080.00916.11
7.3.160.0100.00616.11
7.3.150.0070.00816.13
7.3.140.0080.00816.12
7.3.130.0060.00916.15
7.3.120.0050.01016.10
7.3.110.0070.00716.06
7.3.100.0090.00816.02
7.3.90.0090.00716.36
7.3.80.0070.00916.09
7.3.70.0080.00916.15
7.3.60.0060.00816.25
7.3.50.0090.00716.23
7.3.40.0100.00616.18
7.3.30.0050.01116.21
7.3.20.0110.00416.25
7.3.10.0070.00916.16
7.3.00.0070.01016.11

preferences:
63.57 ms | 401 KiB | 5 Q