3v4l.org

run code in 300+ PHP versions simultaneously
<?php class D{ public $flag=True; public function __get($a){ if($this->flag){ echo 'flag'; }else{ echo 'hint'; } } public function __wakeup(){ $this->flag = False; } } class C{ public function __destruct(){ echo $this->c->b; } } @unserialize('O:1:"C":1:{s:1:"c";O:1:"D":0:{};N;}');

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.0130.00916.88
8.3.50.0040.01818.13
8.3.40.0130.00318.63
8.3.30.0070.00718.88
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.180.0100.00725.92
8.2.170.0200.00019.13
8.2.160.0090.00622.96
8.2.150.0000.00825.66
8.2.140.0070.00024.66
8.2.130.0000.00826.16
8.2.120.0030.00520.88
8.2.110.0100.00021.12
8.2.100.0080.00417.84
8.2.90.0160.00619.06
8.2.80.0180.00318.14
8.2.70.0170.00417.98
8.2.60.0190.00418.26
8.2.50.0160.00618.13
8.2.40.0160.00219.16
8.2.30.0140.00318.35
8.2.20.0100.00818.26
8.2.10.0150.00319.01
8.2.00.0070.00618.18
8.1.280.0130.00625.92
8.1.270.0080.00023.99
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0040.00421.20
8.1.230.0090.00317.42
8.1.220.0170.00117.95
8.1.210.0180.00018.58
8.1.200.0180.00017.75
8.1.190.0130.00517.75
8.1.180.0090.00918.10
8.1.170.0120.00618.47
8.1.160.0150.00218.54
8.1.150.0140.00318.51
8.1.140.0110.00719.43
8.1.130.0090.00517.72
8.1.120.0100.00517.70
8.1.110.0100.00417.67
8.1.100.0100.00517.59
8.1.90.0090.00517.50
8.1.80.0080.00717.51
8.1.70.0100.00517.53
8.1.60.0120.00417.64
8.1.50.0100.00617.60
8.1.40.0100.00617.61
8.1.30.0080.00817.68
8.1.20.0120.00417.65
8.1.10.0090.00717.56
8.1.00.0130.00517.45
8.0.300.0190.00018.23
8.0.290.0140.00617.21
8.0.280.0170.00518.27
8.0.270.0140.00517.89
8.0.260.0060.00917.36
8.0.250.0100.00517.48
8.0.240.0090.00317.26
8.0.230.0100.00517.03
8.0.220.0100.00517.00
8.0.210.0100.00517.02
8.0.200.0110.00417.08
8.0.190.0100.00517.01
8.0.180.0100.00517.03
8.0.170.0110.00416.99
8.0.160.0100.00516.96
8.0.150.0090.00616.95
8.0.140.0090.00617.03
8.0.130.0100.00516.63
8.0.120.0100.00517.03
8.0.110.0110.00317.02
8.0.100.0110.00317.02
8.0.90.0090.00517.02
8.0.80.0070.00817.07
8.0.70.0090.00517.10
8.0.60.0080.00617.13
8.0.50.0110.00417.09
8.0.30.0120.00617.13
8.0.20.0120.00517.14
8.0.10.0120.00717.23
8.0.00.0130.00617.26
7.4.330.0100.00316.96
7.4.320.0160.00416.99
7.4.300.0090.00416.59
7.4.290.0090.00616.59
7.4.280.0110.00516.66
7.4.270.0100.00616.65
7.4.260.0100.00516.25
7.4.250.0100.00616.60
7.4.240.0100.00416.64
7.4.230.0090.00416.58
7.4.220.0080.00516.59
7.4.210.0090.00516.58
7.4.200.0090.00416.60
7.4.190.0090.00516.60
7.4.180.0100.00416.59
7.4.160.0120.00516.60
7.4.150.0110.00516.54
7.4.140.0090.00716.55
7.4.130.0110.00516.56
7.4.120.0120.00416.55
7.4.110.0110.00516.56
7.4.100.0110.00516.59
7.4.90.0110.00516.54
7.4.80.0110.00616.56
7.4.70.0100.00616.58
7.4.60.0120.00516.60
7.4.50.0080.00616.45
7.4.40.0100.00616.51
7.4.30.0100.00616.56
7.4.20.0080.00716.52
7.4.10.0090.00716.57
7.4.00.0090.00616.53
7.3.330.0110.00416.52
7.3.320.0110.00416.21
7.3.310.0110.00416.48
7.3.300.0090.00516.47
7.3.290.0090.00516.51
7.3.280.0100.00716.47
7.3.270.0110.00616.45
7.3.260.0110.00716.48
7.3.250.0140.00416.48
7.3.240.0120.00616.48
7.3.230.0130.00416.47
7.3.220.0130.00416.42
7.3.210.0120.00516.41
7.3.200.0110.00616.40
7.3.190.0120.00516.39
7.3.180.0120.00616.43
7.3.170.0110.00716.39
7.3.160.0110.00716.42
7.3.150.0130.00516.38
7.3.140.0120.00616.43
7.3.130.0120.00516.38
7.3.120.0120.00516.42
7.3.110.0140.00416.36
7.3.100.0140.00416.31
7.3.90.0120.00616.63
7.3.80.0110.00716.42
7.3.70.0110.00616.45
7.3.60.0140.00416.52
7.3.50.0110.00716.51
7.3.40.0130.00516.48
7.3.30.0130.00516.48
7.3.20.0120.00617.58
7.3.10.0130.00517.50
7.3.00.0140.00417.56
7.2.340.0170.00518.22

preferences:
40.35 ms | 401 KiB | 5 Q