3v4l.org

run code in 300+ PHP versions simultaneously
<?php class D { public function __get($name) { echo "D::__get($name)\n"; } public function __destruct() { echo "D::__destruct\n"; } public function __wakeup() { echo "D::__wakeup\n"; } } class C { public function __destruct() { echo "C::__destruct\n"; $this->c->b; } } unserialize('O:1:"C":1:{s:1:"c";O:1:"D":0:{};}');

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.70.0130.00618.56
8.3.60.0060.00918.56
8.3.50.0100.01017.98
8.3.40.0120.00918.79
8.3.30.0100.00718.67
8.3.20.0050.00324.18
8.3.10.0060.00324.66
8.3.00.0040.00426.16
8.2.180.0040.01125.92
8.2.170.0150.00018.96
8.2.160.0100.00322.96
8.2.150.0030.00625.66
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00319.83
8.2.110.0030.00722.11
8.2.100.0060.00617.78
8.2.90.0040.00417.75
8.2.80.0000.01118.79
8.2.70.0070.00417.80
8.2.60.0050.00318.09
8.2.50.0050.00318.10
8.2.40.0050.00321.29
8.2.30.0040.00419.13
8.2.20.0080.00018.14
8.2.10.0080.00218.13
8.2.00.0040.00618.21
8.1.280.0080.01125.92
8.1.270.0060.00320.65
8.1.260.0000.00926.35
8.1.250.0070.00028.09
8.1.240.0030.00622.16
8.1.230.0140.00018.96
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0080.00317.23
8.1.190.0050.00317.25
8.1.180.0000.00818.10
8.1.170.0060.00318.37
8.1.160.0040.00418.76
8.1.150.0000.00718.76
8.1.140.0060.00618.39
8.1.130.0040.00417.27
8.1.120.0080.00017.29
8.1.110.0030.00617.28
8.1.100.0070.00417.31
8.1.90.0060.00517.30
8.1.80.0070.00417.30
8.1.70.0070.00417.30
8.1.60.0050.00617.51
8.1.50.0040.00817.44
8.1.40.0080.00417.49
8.1.30.0040.00817.55
8.1.20.0060.00617.55
8.1.10.0070.00417.41
8.1.00.0040.00717.37
8.0.300.0030.00521.62
8.0.290.0080.00016.75
8.0.280.0030.00518.30
8.0.270.0030.00516.75
8.0.260.0040.00316.78
8.0.250.0040.00416.83
8.0.240.0060.00316.85
8.0.230.0040.00616.83
8.0.220.0060.00516.85
8.0.210.0050.00616.86
8.0.200.0070.00416.87
8.0.190.0070.00416.87
8.0.180.0050.00616.88
8.0.170.0040.00716.87
8.0.160.0050.00516.85
8.0.150.0080.00416.77
8.0.140.0040.00716.78
8.0.130.0060.00415.89
8.0.120.0090.00416.81
8.0.110.0070.00416.79
8.0.100.0070.00416.79
8.0.90.0060.00516.74
8.0.80.0070.00816.84
8.0.70.0060.00516.82
8.0.60.0080.00416.78
8.0.50.0070.00516.81
8.0.30.0150.00716.78
8.0.20.0090.00816.84
8.0.10.0120.00516.86
8.0.00.0110.00616.90
7.4.330.0080.00416.05
7.4.320.0080.00416.35
7.4.300.0130.00116.47
7.4.290.0090.00716.38
7.4.280.0110.00416.46
7.4.270.0120.00216.37
7.4.260.0080.00415.64
7.4.250.0120.00216.47
7.4.240.0100.00216.36
7.4.230.0110.00316.42
7.4.220.0110.00216.50
7.4.210.0060.00916.45
7.4.200.0060.00716.44
7.4.190.0130.00216.49
7.4.180.0100.00616.44
7.4.160.0130.00716.46
7.4.150.0140.00616.37
7.4.140.0120.00616.35
7.4.130.0160.00416.38
7.4.120.0100.00716.34
7.4.110.0140.00516.38
7.4.100.0150.00216.35
7.4.90.0130.00616.33
7.4.80.0130.00616.33
7.4.70.0120.00316.35
7.4.60.0150.00416.30
7.4.50.0100.00416.26
7.4.40.0070.01016.23
7.4.30.0130.00416.23
7.4.20.0130.00416.23
7.4.10.0090.00816.33
7.4.00.0080.00716.34
7.3.330.0090.00516.36
7.3.320.0080.00515.58
7.3.310.0110.00216.33
7.3.300.0100.00316.29
7.3.290.0120.00416.32
7.3.280.0120.00616.26
7.3.270.0150.00516.30
7.3.260.0130.00616.26
7.3.250.0100.00816.33
7.3.240.0140.00516.29
7.3.230.0120.00716.32
7.3.220.0140.00716.26
7.3.210.0140.00516.30
7.3.200.0150.00416.29
7.3.190.0130.00616.30
7.3.180.0120.00716.28
7.3.170.0150.00516.29
7.3.160.0140.00616.30
7.3.150.0120.00716.29
7.3.140.0150.00416.29
7.3.130.0150.00516.25
7.3.120.0130.00416.31
7.3.110.0140.00716.25
7.3.100.0110.00716.21
7.3.90.0120.00816.49
7.3.80.0150.00416.23
7.3.70.0140.00516.32
7.3.60.0150.00516.32
7.3.50.0170.00316.42
7.3.40.0100.00816.40
7.3.30.0140.00516.36
7.3.20.0150.00516.33
7.3.10.0160.00416.32
7.3.00.0190.00416.33

preferences:
53.38 ms | 401 KiB | 5 Q