3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* // Original definition readonly class Foo { public function __construct(private string $a) {} } var_dump(bin2hex(serialize(new Foo("foo")))); // 4f3a333a22466f6f223a313a7b733a363a2200466f6f0061223b733a333a22666f6f223b7d */ // New definition, 'a' is no longer required. readonly class Foo { public function __construct() {} } var_dump(unserialize(hex2bin('4f3a333a22466f6f223a313a7b733a363a2200466f6f0061223b733a333a22666f6f223b7d')));

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.4.130.0130.00718.64
8.4.120.0140.00622.41
8.4.110.0100.01022.44
8.4.100.0110.00617.81
8.4.90.0050.00517.74
8.4.80.0110.00817.85
8.4.70.0130.00617.81
8.4.60.0100.01017.72
8.4.50.0140.00619.40
8.4.40.0130.00719.64
8.4.30.0000.01918.64
8.4.20.0070.00717.95
8.4.10.0160.00321.87
8.3.260.0100.01016.54
8.3.250.0120.00818.82
8.3.240.0120.00716.56
8.3.230.0140.00616.51
8.3.220.0100.00917.22
8.3.210.0120.00316.70
8.3.200.0130.00616.71
8.3.190.0070.00818.57
8.3.180.0110.00716.48
8.3.170.0120.00317.23
8.3.160.0140.00018.36
8.3.150.0100.01016.93
8.3.140.0080.00016.89
8.3.130.0080.00018.60
8.3.120.0100.00020.52
8.3.110.0000.00822.58
8.3.100.0070.00020.94
8.3.90.0060.00320.94
8.3.50.0040.00420.94
8.2.290.0070.01120.50
8.2.280.0050.00616.79
8.2.270.0130.00616.45
8.2.260.0040.00416.84
8.2.250.0140.00416.52
8.2.240.0040.00418.76
8.2.230.0040.00422.58
8.2.220.0100.00722.58
8.2.210.0060.00322.58
8.1.330.0150.00421.67
8.1.320.0120.01116.28
8.1.310.0170.00018.34
8.1.300.0030.00619.54
8.1.100.0140.00317.21
8.1.90.0150.00017.31
8.1.80.0000.01417.26
8.1.70.0110.00417.25
8.1.60.0170.00317.46
8.1.50.0060.01217.26
8.1.40.0110.00717.36
8.1.30.0160.00417.47
8.1.20.0110.00817.35
8.1.10.0120.00617.39
8.1.00.0190.00017.39
8.0.230.0040.01116.85
8.0.220.0080.00816.69
8.0.210.0050.01016.85
8.0.200.0150.00016.91
8.0.190.0070.00716.91
8.0.180.0140.00216.87
8.0.170.0090.00516.88
8.0.160.0140.00016.72
8.0.150.0110.00416.75
8.0.140.0100.00016.71
8.0.130.0140.00016.76
8.0.120.0050.00516.69
8.0.110.0130.00016.29
8.0.100.0100.00516.78
8.0.90.0130.00316.80
8.0.80.0160.00016.86
8.0.70.0140.00016.83
8.0.60.0140.00016.82
8.0.50.0100.00316.61
8.0.30.0060.00916.76
8.0.20.0100.00716.91
8.0.10.0050.01116.76
7.4.300.0070.00016.34
7.4.290.0120.00016.20
7.4.280.0100.00316.25
7.4.270.0120.00316.34
7.4.260.0160.00316.31
7.4.250.0180.00016.39
7.4.240.0060.01216.30
7.4.230.0100.00716.39
7.4.220.0100.00316.43
7.4.210.0110.00016.31
7.4.200.0080.00216.41
7.4.190.0140.00016.34
7.4.180.0090.00216.26
7.4.160.0140.00016.32
7.4.150.0120.00016.20
7.4.140.0070.00716.25
7.4.130.0080.00416.07
7.4.120.0110.00016.09
7.4.110.0090.00616.23
7.4.100.0070.00516.20
7.4.90.0130.00016.22
7.4.80.0060.00416.20
7.4.70.0000.01216.12
7.4.60.0100.00316.21
7.4.50.0060.00616.23
7.4.40.0040.00715.88
7.4.30.0030.00916.16
7.4.20.0000.01116.21
7.4.10.0050.00516.05
7.4.00.0060.00316.27

preferences:
57.5 ms | 403 KiB | 5 Q