3v4l.org

run code in 300+ PHP versions simultaneously
<?php class _ { private function __destruct() {new self;} } class __ { private $f; public function __construct(&$f) { $this->f = &$f; } public function __destruct() { $this->f = function(){new _;}; } } $f = function () use (&$f) { $t = new __($f); echo "All is good"; }; $f(); $f();

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.0030.01016.75
8.3.50.0150.00716.54
8.3.40.0040.01119.09
8.3.30.0120.00418.97
8.3.20.0040.00418.95
8.3.10.0040.00420.36
8.3.00.0080.00019.38
8.2.180.0130.00316.50
8.2.170.0110.00322.96
8.2.160.0100.00721.02
8.2.150.0030.00524.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0060.00317.75
8.2.110.0070.00319.30
8.2.100.0060.00617.91
8.2.90.0000.00818.22
8.2.80.0040.00419.35
8.2.70.0000.00817.50
8.2.60.0000.00817.93
8.2.50.0080.00018.07
8.2.40.0090.00018.14
8.2.30.0040.00418.18
8.2.20.0080.00019.48
8.2.10.0040.00417.78
8.2.00.0030.00617.74
8.1.280.0040.01125.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0100.00021.02
8.1.230.0110.00020.97
8.1.220.0000.00817.78
8.1.210.0040.00418.99
8.1.200.0060.00317.36
8.1.190.0040.00417.55
8.1.180.0000.01018.10
8.1.170.0040.00418.84
8.1.160.0000.00818.82
8.1.150.0040.00418.61
8.1.140.0080.00017.38
8.1.130.0030.00317.88
8.1.120.0000.00717.46
8.1.110.0000.00817.33
8.1.100.0000.00717.37
8.1.90.0100.00017.46
8.1.80.0050.00317.36
8.1.70.0050.00217.43
8.1.60.0030.00517.63
8.1.50.0030.00517.34
8.1.40.0080.00017.51
8.1.30.0030.00617.57
8.1.20.0060.00317.63
8.1.10.0050.00217.63
8.1.00.0000.00717.52
8.0.300.0040.00420.08
8.0.290.0040.00416.88
8.0.280.0070.00018.45
8.0.270.0000.00717.16
8.0.260.0030.00316.88
8.0.250.0000.00716.87
8.0.240.0040.00417.04
8.0.230.0000.00716.94
8.0.220.0070.00016.95
8.0.210.0000.00716.93
8.0.200.0000.00816.97
8.0.190.0080.00416.97
8.0.180.0040.00417.00
8.0.170.0000.00816.92
8.0.160.0040.00416.93
8.0.150.0000.00916.96
8.0.140.0000.00716.91
8.0.130.0000.00613.44
8.0.120.0000.00816.93
8.0.110.0040.00416.93
8.0.100.0090.00016.96
8.0.90.0000.00716.74
8.0.80.0180.00316.93
8.0.70.0030.00316.73
8.0.60.0040.00416.85
8.0.50.0070.00016.83
8.0.30.0110.00817.07
8.0.20.0090.00916.93
8.0.10.0000.00717.03
8.0.00.0140.00516.90
7.4.330.0050.00012.92
7.4.320.0000.00616.61
7.4.300.0040.00416.51
7.4.290.0030.00316.50
7.4.280.0000.00716.43
7.4.270.0030.00316.55
7.4.260.0020.00513.29
7.4.250.0040.00416.53
7.4.240.0000.00716.64
7.4.230.0040.00416.70
7.4.220.0090.00916.65
7.4.210.0060.01016.54
7.4.200.0000.00716.58
7.4.190.0040.00416.55
7.4.160.0110.00716.68
7.4.150.0150.00416.48
7.4.140.0090.01216.58
7.4.130.0080.01016.55
7.4.120.0120.00916.62
7.4.110.0100.00616.45
7.4.100.0060.01116.54
7.4.90.0130.00916.54
7.4.80.0060.01219.39
7.4.70.0080.00816.47
7.4.60.0150.00416.38
7.4.50.0050.00016.49
7.4.40.0040.00716.46
7.4.30.0070.01016.73
7.4.00.0000.01815.04
7.3.330.0030.00313.23
7.3.320.0000.00513.37
7.3.310.0030.00516.20
7.3.300.0040.00416.22
7.3.290.0090.00916.38
7.3.280.0070.00916.36
7.3.270.0090.00916.45
7.3.260.0090.00916.37
7.3.250.0090.00916.42
7.3.240.0070.01016.60
7.3.230.0090.00616.42
7.3.210.0100.00716.59
7.3.200.0060.01316.40
7.3.190.0120.00916.32
7.3.180.0110.00416.62
7.3.170.0130.01016.40
7.3.160.0120.00316.55
7.3.120.0070.00714.93
7.2.330.0140.00316.52
7.2.320.0100.00716.35
7.2.310.0040.01916.39
7.2.300.0000.01716.67
7.2.290.0090.00916.70
7.2.60.0060.00916.86
7.2.00.0100.00319.48
7.1.200.0060.00615.54
7.1.100.0030.01017.98
7.1.70.0000.00717.04
7.1.60.0030.02019.40
7.1.50.0070.01416.92
7.0.200.0240.00314.71
5.4.270.0170.04718.86
5.4.260.0270.07719.09
5.4.250.0200.06019.21
5.4.240.0330.06319.08
5.4.230.0270.06719.07
5.4.220.0300.07318.97
5.4.210.0270.07019.11
5.4.200.0330.04719.15
5.4.190.0400.04319.07
5.4.180.0270.07319.00
5.4.170.0330.03719.13
5.4.160.0400.04319.15
5.4.150.0270.06018.83
5.4.140.0270.04716.56
5.4.130.0330.05316.55
5.4.120.0300.05716.34
5.4.110.0170.06716.50
5.4.100.0230.07316.33
5.4.90.0330.06016.57
5.4.80.0300.04316.40
5.4.70.0270.07016.58
5.4.60.0370.03016.54
5.4.50.0330.05316.53
5.4.40.0270.07016.51
5.4.30.0200.06716.16
5.4.20.0270.07016.53
5.4.10.0230.05316.52
5.4.00.0300.05315.95
5.3.280.0170.04314.57
5.3.270.0330.03714.63
5.3.260.0370.04014.63
5.3.250.0370.06314.77
5.3.240.0230.04714.51
5.3.230.0370.05714.50
5.3.220.0170.05314.73
5.3.210.0400.05014.79
5.3.200.0370.05314.57
5.3.190.0270.05014.80
5.3.180.0230.07014.56
5.3.170.0300.04014.47
5.3.160.0430.03014.48
5.3.150.0270.06714.59
5.3.140.0170.04314.52
5.3.130.0270.06714.57
5.3.120.0270.05714.60
5.3.110.0200.05014.47
5.3.100.0300.07314.04
5.3.90.0300.06013.93
5.3.80.0270.06014.04
5.3.70.0270.06713.95
5.3.60.0330.06014.23
5.3.50.0370.05314.01
5.3.40.0300.06714.05
5.3.30.0230.06313.85
5.3.20.0370.06313.62
5.3.10.0270.04713.58
5.3.00.0270.07013.56

preferences:
44.6 ms | 401 KiB | 5 Q