3v4l.org

run code in 300+ PHP versions simultaneously
<?php class _ { public 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.70.0240.01332.00
8.3.60.0380.01032.05
8.3.50.0250.01632.96
8.3.40.0190.01934.02
8.3.30.0300.01134.55
8.3.20.0200.00035.46
8.3.10.0110.00735.98
8.3.00.0100.01036.07
8.2.180.0200.01426.59
8.2.170.0190.00628.71
8.2.160.0220.00330.86
8.2.150.0140.00028.72
8.2.140.0110.00328.91
8.2.130.0000.01430.70
8.2.120.0150.00027.75
8.2.110.0170.00031.02
8.2.100.0140.01127.91
8.2.90.0110.00427.97
8.2.80.0080.00627.93
8.2.70.0100.00327.38
8.2.60.0110.00327.80
8.2.50.0130.00327.75
8.2.40.0130.00028.28
8.2.30.0100.00628.03
8.2.20.0110.00027.75
8.2.10.0090.00627.70
8.2.00.0100.00327.62
8.1.280.0200.00726.43
8.1.270.0110.00432.17
8.1.260.0140.00032.31
8.1.250.0070.00733.39
8.1.240.0140.00332.32
8.1.230.0150.00632.55
8.1.220.0120.00327.78
8.1.210.0110.00329.09
8.1.200.0130.00327.60
8.1.190.0100.00327.66
8.1.180.0140.00027.35
8.1.170.0100.00728.78
8.1.160.0070.00432.27
8.1.150.0080.00428.89
8.1.140.0070.00727.69
8.1.130.0090.00427.98
8.1.120.0090.00327.60
8.1.110.0120.00327.66
8.1.100.0080.00427.55
8.1.90.0040.00727.63
8.1.80.0030.00727.66
8.1.70.0070.00427.47
8.1.60.0070.00727.79
8.1.50.0060.00627.73
8.1.40.0130.00027.62
8.1.30.0030.00927.68
8.1.20.0090.00327.78
8.1.10.0040.00827.79
8.1.00.0060.00627.75
8.0.300.0160.00029.94
8.0.290.0100.00326.38
8.0.280.0040.00828.21
8.0.270.0040.00726.67
8.0.260.0090.00326.67
8.0.250.0120.00326.77
8.0.240.0080.00426.80
8.0.230.0060.00626.85
8.0.220.0110.00026.66
8.0.210.0040.00726.54
8.0.200.0090.00326.64
8.0.190.0070.00726.80
8.0.180.0090.00326.77
8.0.170.0030.01026.77
8.0.160.0090.00326.59
8.0.150.0120.00626.67
8.0.140.0100.00326.66
8.0.130.0040.00823.20
8.0.120.0000.01226.70
8.0.110.0120.00026.71
8.0.100.0110.00026.65
8.0.90.0060.00626.67
8.0.80.0150.00926.64
8.0.70.0070.00426.51
8.0.60.0000.01326.55
8.0.50.0080.00326.66
8.0.30.0170.01927.05
8.0.20.0150.01726.83
8.0.10.0070.00426.79
8.0.00.0180.01226.61
7.4.330.0030.00524.98
7.4.320.0040.00826.46
7.4.300.0040.00726.53
7.4.290.0080.00326.53
7.4.280.0070.00426.51
7.4.270.0060.00626.44
7.4.260.0090.00326.52
7.4.250.0060.00626.53
7.4.240.0080.00426.53
7.4.230.0080.00426.57
7.4.220.0240.01426.48
7.4.210.0150.01226.51
7.4.200.0110.00026.45
7.4.190.0060.00626.26
7.4.160.0130.03026.50
7.4.150.0190.01326.48
7.4.140.0200.01026.46
7.4.130.0190.01626.58
7.4.120.0180.01326.47
7.4.110.0230.00726.49
7.4.100.0100.02026.60
7.4.90.0160.02326.55
7.4.80.0190.01326.52
7.4.70.0180.01826.40
7.4.60.0070.02226.45
7.4.50.0060.00626.19
7.4.40.0120.01226.26
7.4.30.0170.01026.56
7.4.00.0160.00624.76
7.3.330.0060.00623.34
7.3.320.0060.00323.45
7.3.310.0060.00626.39
7.3.300.0080.00426.13
7.3.290.0200.00326.32
7.3.280.0140.01426.28
7.3.270.0270.00326.33
7.3.260.0220.00926.48
7.3.250.0210.01326.43
7.3.240.0150.01526.45
7.3.230.0190.01026.51
7.3.210.0250.00626.38
7.3.200.0270.01426.45
7.3.190.0250.01326.51
7.3.180.0150.01526.68
7.3.170.0240.01426.33
7.3.160.0140.01426.31
7.3.120.0170.00324.82
7.3.10.0140.00626.71
7.3.00.0160.01326.54
7.2.330.0180.00926.13
7.2.320.0220.01125.98
7.2.310.0120.01926.25
7.2.300.0160.01325.94
7.2.290.0190.01026.15
7.2.130.0120.00826.70
7.2.120.0300.00726.91
7.2.110.0090.00926.86
7.2.100.0170.00926.98
7.2.90.0300.00426.83
7.2.80.0120.01026.77
7.2.70.0110.01526.93
7.2.60.0200.00826.77
7.2.50.0100.01626.90
7.2.40.0080.01226.74
7.2.30.0220.00326.66
7.2.20.0180.00327.05
7.2.10.0100.01026.71
7.2.00.0210.00726.92
7.1.250.0120.00323.79
7.1.200.0200.00323.51
7.1.70.0070.00325.23
7.1.60.0160.01225.50
7.1.50.0140.01424.97
7.0.200.0070.00724.84
5.4.450.0300.07330.02
5.4.440.0200.04730.05
5.4.430.0300.06330.19
5.4.420.0300.07029.93
5.4.410.0270.07030.02
5.4.400.0330.06729.81
5.4.390.0330.07029.77
5.4.380.0270.05729.84
5.4.370.0270.03329.88
5.4.360.0230.03729.83
5.4.350.0370.06329.60
5.4.340.0430.06029.98
5.4.320.0270.06029.63
5.4.310.0370.06729.88
5.4.300.0330.06729.81
5.4.290.0300.06729.83
5.4.280.0230.07729.84
5.4.270.0300.05329.72
5.4.260.0270.07330.05
5.4.250.0370.06329.83
5.4.240.0300.06729.83
5.4.230.0400.06029.86
5.4.220.0270.07729.60
5.4.210.0270.04029.87
5.4.200.0270.07329.87
5.4.190.0270.04730.05
5.4.180.0230.04729.57
5.4.170.0370.05729.73
5.4.160.0300.03729.55
5.4.150.0270.08029.81
5.4.140.0370.03727.07
5.4.130.0300.06727.16
5.4.120.0200.04727.06
5.4.110.0330.06327.33
5.4.100.0270.04327.23
5.4.90.0200.04027.07
5.4.80.0230.06727.18
5.4.70.0230.07327.34
5.4.60.0330.06327.24
5.4.50.0270.06027.29
5.4.40.0200.04027.05
5.4.30.0330.06327.21
5.4.20.0400.04727.25
5.4.10.0300.05027.24
5.4.00.0430.05726.53
5.3.290.0270.05726.34
5.3.280.0230.04327.05
5.3.270.0300.07026.80
5.3.260.0370.06326.85
5.3.250.0300.07026.84
5.3.240.0300.07026.76
5.3.230.0370.06726.76
5.3.220.0200.06726.90
5.3.210.0200.05726.82
5.3.200.0270.05027.02
5.3.190.0330.07326.74
5.3.180.0270.06326.89
5.3.170.0300.05326.80
5.3.160.0270.06026.73
5.3.150.0370.07726.71
5.3.140.0230.04026.71
5.3.130.0330.06026.69
5.3.120.0270.04726.73
5.3.110.0230.04326.70
5.3.100.0200.04726.29
5.3.90.0230.07026.30
5.3.80.0230.06326.20
5.3.70.0200.04326.11
5.3.60.0300.04726.05
5.3.50.0330.04326.16
5.3.40.0270.05026.29
5.3.30.0230.04725.95
5.3.20.0330.03725.90
5.3.10.0130.04325.77
5.3.00.0170.04325.86

preferences:
41.08 ms | 401 KiB | 5 Q