3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __construct(private readonly string $foo) {} } unserialize(serialize(new A('goo')));

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.5.00.0090.01319.86
8.4.150.0020.00014.05
8.4.140.0120.00817.55
8.4.130.0110.00917.70
8.4.120.0070.00920.67
8.4.110.0100.01022.33
8.4.100.0100.00718.00
8.4.90.0100.01018.67
8.4.80.0050.00418.83
8.4.70.0060.00319.64
8.4.60.0150.00518.64
8.4.50.0100.01018.79
8.4.40.0120.00617.95
8.4.30.0030.00620.53
8.4.20.0070.01322.23
8.4.10.0040.00423.95
8.3.280.0140.00718.18
8.3.270.0130.00816.78
8.3.260.0120.00716.80
8.3.250.0120.00818.98
8.3.240.0090.01016.72
8.3.230.0100.00816.42
8.3.220.0100.00819.00
8.3.210.0060.00216.58
8.3.200.0040.00416.50
8.3.190.0090.01017.17
8.3.180.0120.00717.02
8.3.170.0120.00622.68
8.3.160.0040.01417.18
8.3.150.0070.01117.10
8.3.140.0000.00816.83
8.3.130.0080.00018.35
8.3.120.0090.00020.64
8.3.110.0090.00918.27
8.3.100.0060.00318.37
8.3.50.0030.00518.43
8.2.290.0100.00920.60
8.2.280.0100.00818.20
8.2.270.0110.00717.01
8.2.260.0070.01016.45
8.2.250.0040.00418.25
8.2.240.0060.00918.89
8.2.230.0060.00918.20
8.2.220.0050.00318.24
8.1.330.0090.00620.18
8.1.320.0110.00916.13
8.1.310.0040.00418.71
8.1.300.0080.00015.97
8.1.110.0060.00317.22
8.1.100.0080.00517.32
8.1.90.0090.00417.36
8.1.80.0130.00017.32
8.1.70.0120.00417.26
8.1.60.0160.00217.54
8.1.50.0130.00417.55
8.1.40.0090.00917.50
8.1.30.0140.00517.64
8.1.20.0170.00017.61
8.1.10.0180.00017.38
8.1.00.0060.00617.37
8.0.240.0060.00316.90
8.0.230.0050.00516.92
8.0.220.0110.00416.89
8.0.210.0080.00816.78
8.0.200.0070.00716.94
8.0.190.0040.01116.93
8.0.180.0150.00016.76
8.0.170.0070.00716.81
8.0.160.0130.00216.87
8.0.150.0110.00416.71
8.0.140.0140.00016.81
8.0.130.0100.00516.80
8.0.120.0040.01116.87
8.0.110.0110.00316.78
8.0.100.0120.00316.78
8.0.90.0110.00416.90
8.0.80.0120.00216.82
8.0.70.0050.01116.71
8.0.60.0140.00016.80
8.0.50.0090.00616.87
8.0.30.0070.00716.71
8.0.20.0110.00416.88
8.0.10.0080.00816.84
7.4.320.0140.00316.32
7.4.300.0150.00316.30
7.4.290.0140.00216.25
7.4.280.0110.00516.43
7.4.270.0110.00516.33
7.4.260.0040.01316.33
7.4.250.0130.00316.33
7.4.240.0110.00416.31
7.4.230.0040.01316.37
7.4.220.0040.01016.23
7.4.210.0050.01016.48
7.4.200.0080.00616.36
7.4.190.0110.00416.45
7.4.180.0100.00416.54
7.4.160.0080.00816.48
7.4.150.0110.00416.25
7.4.140.0100.00016.18
7.4.130.0000.00816.31
7.4.120.0080.00016.16
7.4.110.0070.00016.21
7.4.100.0000.00816.39
7.4.90.0030.00516.14
7.4.80.0070.00716.27
7.4.70.0070.00016.23
7.4.60.0050.00216.21
7.4.50.0070.00016.14
7.4.40.0000.00816.10
7.4.30.0040.00416.34
7.4.20.0030.00316.28
7.4.10.0060.00016.34
7.4.00.0080.00016.21

preferences:
62.68 ms | 403 KiB | 5 Q