3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { public function __construct(public readonly int $bar) {} public function __set($var, $val) { echo '__set called'; } } $foo = new Foo(42); $foo->bar = 69;

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.70.0070.01018.61
8.5.60.0130.00516.89
8.5.50.0110.00516.80
8.5.30.0130.00717.48
8.5.20.0080.01319.46
8.5.10.0080.00920.21
8.5.00.0100.01022.81
8.4.220.0140.00819.63
8.4.210.0060.00419.71
8.4.180.0130.00920.65
8.4.170.0110.00923.90
8.4.160.0130.00823.76
8.4.150.0080.00416.97
8.4.140.0100.01217.73
8.4.130.0080.01217.89
8.4.120.0110.00921.94
8.4.110.0120.00718.79
8.4.100.0110.00918.92
8.4.90.0080.00818.73
8.4.80.0030.00618.77
8.4.70.0080.00818.14
8.4.60.0130.01118.94
8.4.50.0090.01018.72
8.4.40.0100.00717.95
8.4.30.0160.00320.68
8.4.20.0140.00718.17
8.4.10.0060.00322.02
8.3.310.0090.01018.42
8.3.300.0110.00920.73
8.3.290.0040.00620.78
8.3.280.0110.01018.43
8.3.270.0090.01116.56
8.3.260.0100.00516.68
8.3.250.0120.00718.70
8.3.240.0140.00316.61
8.3.230.0140.00616.87
8.3.220.0090.01018.87
8.3.210.0120.00718.56
8.3.200.0070.00216.49
8.3.190.0140.00516.79
8.3.180.0100.00917.21
8.3.170.0090.01018.84
8.3.160.0090.00917.07
8.3.150.0110.00317.33
8.3.140.0070.01116.70
8.3.130.0090.00018.57
8.3.120.0120.00318.78
8.3.110.0040.00416.73
8.3.100.0040.00418.77
8.3.50.0060.00316.88
8.2.310.0130.00618.22
8.2.300.0110.00918.90
8.2.290.0050.00320.39
8.2.280.0110.00418.34
8.2.270.0040.00416.96
8.2.260.0060.01216.49
8.2.250.0080.00016.79
8.2.240.0110.00816.92
8.2.230.0000.00816.50
8.2.220.0080.00016.50
8.1.340.0140.00619.69
8.1.330.0100.00821.86
8.1.320.0100.00816.25
8.1.310.0090.00016.57
8.1.300.0090.00618.46
8.1.90.0080.01217.30
8.1.80.0000.01317.39
8.1.70.0080.00417.31
8.1.60.0100.00317.46
8.1.50.0000.01217.41
8.1.40.0080.00417.47
8.1.30.0220.00017.57
8.1.20.0110.00617.65
8.1.10.0040.01117.44
8.1.00.0050.01117.51
8.0.220.0100.00616.84
8.0.210.0160.00016.73
8.0.200.0120.00516.96
8.0.190.0150.00216.90
8.0.180.0050.01016.87
8.0.170.0050.01116.85
8.0.160.0110.00516.82
8.0.150.0050.01016.77
8.0.140.0110.00516.71
8.0.130.0130.00216.65
8.0.120.0080.00816.89
8.0.110.0120.00416.79
8.0.100.0110.00516.85
8.0.90.0160.00016.77
8.0.80.0120.00516.76
8.0.70.0130.00316.72
8.0.60.0110.00616.72
8.0.50.0110.00516.70
8.0.30.0080.00816.79
8.0.20.0160.00016.81
8.0.10.0100.00616.86
7.4.300.0000.00716.49
7.4.290.0080.00816.34
7.4.280.0090.00916.45
7.4.270.0140.00316.23
7.4.260.0150.00316.43
7.4.250.0150.00416.45
7.4.240.0110.00716.47
7.4.230.0140.00316.45
7.4.220.0130.00316.25
7.4.210.0060.00916.33
7.4.200.0130.00316.45
7.4.190.0120.00416.50
7.4.180.0120.00316.50
7.4.160.0100.00616.42
7.4.150.0080.00816.41
7.4.140.0040.00416.20
7.4.130.0040.00416.23
7.4.120.0070.00216.11
7.4.110.0120.00016.23
7.4.100.0040.00416.16
7.4.90.0050.00316.21
7.4.80.0090.00016.13
7.4.70.0040.00416.13
7.4.60.0000.00916.19
7.4.50.0000.00916.25
7.4.40.0090.00316.14
7.4.30.0030.00616.05
7.4.20.0080.00816.20
7.4.10.0120.00416.23
7.4.00.0150.00016.27

preferences:
73.71 ms | 1017 KiB | 5 Q