3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { readonly int $foo; public function __construct() { $this->foo = 42; } public function unset_me() { unset( $this->foo ); } public function __set($key, $value) { echo "__set called with {$value}\n"; } } $f = new Foo; $f->unset_me(); $f->foo = 43;

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.30.0120.00919.66
8.5.20.0100.00919.39
8.5.10.0080.00920.14
8.5.00.0120.01020.32
8.4.180.0120.01025.65
8.4.170.0110.01123.84
8.4.160.0130.01023.68
8.4.150.0070.00516.87
8.4.140.0110.01017.90
8.4.130.0090.00818.74
8.4.120.0100.00924.14
8.4.110.0050.00620.57
8.4.100.0040.00518.82
8.4.90.0040.00520.70
8.4.80.0130.00718.90
8.4.70.0030.00517.99
8.4.60.0110.00919.90
8.4.50.0090.00119.74
8.4.40.0130.00719.58
8.4.30.0040.00420.52
8.4.20.0140.00722.48
8.4.10.0030.00623.90
8.3.300.0130.00822.83
8.3.290.0100.01118.37
8.3.280.0120.00918.44
8.3.270.0120.00716.75
8.3.260.0060.00316.84
8.3.250.0070.00218.84
8.3.240.0080.01117.12
8.3.230.0090.00816.61
8.3.220.0120.00618.82
8.3.210.0090.00918.57
8.3.200.0030.00616.54
8.3.190.0120.00816.77
8.3.180.0070.01118.30
8.3.170.0040.00419.04
8.3.160.0130.00616.97
8.3.150.0070.01019.17
8.3.140.0030.00620.78
8.3.130.0080.00018.40
8.3.120.0000.01018.38
8.3.110.0060.00318.49
8.3.50.0060.00318.36
8.2.300.0110.00818.12
8.2.290.0130.00520.36
8.2.280.0060.01218.70
8.2.270.0140.00416.70
8.2.260.0160.00318.94
8.2.250.0070.01116.80
8.2.240.0110.00818.36
8.2.230.0100.00018.43
8.2.220.0050.00317.06
8.1.340.0150.00617.69
8.1.330.0040.00521.79
8.1.320.0130.00716.10
8.1.310.0110.01116.86
8.1.300.0060.00918.56
8.1.130.0050.00320.27

preferences:
74.51 ms | 730 KiB | 5 Q