3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public $bar; public function __destruct() { $r = new ReflectionClass($this->bar); $this->test(); } public function test() { echo get_class($this->bar); } } $f = new foo; $f->bar = new StdClass; $f->bar->baz = $f; unset($f); //trigger destructor

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.0090.00618.30
8.3.50.0130.00722.17
8.3.40.0060.00918.49
8.3.30.0100.00319.18
8.3.20.0040.00420.15
8.3.10.0050.00321.96
8.3.00.0070.00022.52
8.2.180.0100.00716.38
8.2.170.0110.00422.96
8.2.160.0130.00720.31
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0080.00017.63
8.2.110.0030.00622.00
8.2.100.0070.00417.91
8.2.90.0000.00819.21
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0030.00617.93
8.2.50.0090.00018.07
8.2.40.0040.00418.22
8.2.30.0040.00417.95
8.2.20.0060.00317.65
8.2.10.0040.00419.46
8.2.00.0050.00217.57
8.1.280.0140.00425.92
8.1.270.0040.00422.14
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0080.00023.70
8.1.230.0080.00419.16
8.1.220.0000.00817.76
8.1.210.0040.00418.77
8.1.200.0060.00317.38
8.1.190.0050.00317.40
8.1.180.0040.00418.10
8.1.170.0040.00418.57
8.1.160.0000.00721.97
8.1.150.0060.00318.49
8.1.140.0000.00717.39
8.1.130.0030.00317.89
8.1.120.0030.00317.31
8.1.110.0070.00017.31
8.1.100.0000.00817.29
8.1.90.0040.00417.44
8.1.80.0040.00417.37
8.1.70.0030.00517.43
8.1.60.0000.00917.58
8.1.50.0060.00317.41
8.1.40.0050.00317.50
8.1.30.0060.00317.60
8.1.20.0000.00817.69
8.1.10.0040.00417.61
8.1.00.0070.00017.57
8.0.300.0000.00818.77
8.0.290.0070.00017.18
8.0.280.0000.00718.45
8.0.270.0030.00317.18
8.0.260.0030.00316.83
8.0.250.0000.00716.97
8.0.240.0060.00317.02
8.0.230.0060.00316.91
8.0.220.0000.00716.91
8.0.210.0030.00316.70
8.0.200.0030.00316.78
8.0.190.0080.00016.77
8.0.180.0000.00716.93
8.0.170.0050.00316.86
8.0.160.0000.00716.96
8.0.150.0050.00316.78
8.0.140.0000.00716.85
8.0.130.0040.00413.25
8.0.120.0020.00516.76
8.0.110.0040.00416.82
8.0.100.0070.00016.83
8.0.90.0000.00716.63
8.0.80.0120.00616.82
8.0.70.0030.00316.80
8.0.60.0050.00216.89
8.0.50.0050.00216.66
8.0.30.0110.00817.01
8.0.20.0070.01717.42
8.0.10.0000.00817.00
8.0.00.0080.01116.87
7.4.330.0000.00515.02
7.4.320.0000.00616.43
7.4.300.0000.00716.58
7.4.290.0070.00016.57
7.4.280.0040.00416.52
7.4.270.0000.00616.63
7.4.260.0070.00016.51
7.4.250.0040.00416.53
7.4.240.0030.00316.51
7.4.230.0070.00016.63
7.4.220.0030.01316.54
7.4.210.0080.00716.52
7.4.200.0030.00316.50
7.4.190.0050.00216.67
7.4.160.0110.00716.61
7.4.150.0150.00417.40
7.4.140.0080.01117.86
7.4.130.0070.01216.52
7.4.120.0070.01016.44
7.4.110.0130.00316.34
7.4.100.0110.00716.63
7.4.90.0120.00916.37
7.4.80.0000.01719.39
7.4.70.0110.00616.51
7.4.60.0000.01616.48
7.4.50.0030.00316.39
7.4.40.0130.00222.77
7.4.30.0120.00616.64
7.4.00.0030.01315.11
7.3.330.0050.00013.31
7.3.320.0000.00513.25
7.3.310.0030.00316.34
7.3.300.0070.00016.26
7.3.290.0030.01016.35
7.3.280.0100.00816.32
7.3.270.0130.00717.40
7.3.260.0070.01016.43
7.3.250.0120.00816.44
7.3.240.0130.00316.29
7.3.230.0080.01116.58
7.3.210.0000.01716.55
7.3.200.0090.01219.39
7.3.190.0090.01116.49
7.3.180.0040.01516.46
7.3.170.0080.00816.36
7.3.160.0090.00616.26
7.3.120.0070.01014.89
7.3.10.0080.00816.64
7.3.00.0070.00916.42
7.2.330.0080.00916.81
7.2.320.0070.01116.84
7.2.310.0120.00416.87
7.2.300.0110.00616.69
7.2.290.0130.00316.79
7.2.130.0110.00416.74
7.2.120.0050.00916.78
7.2.110.0080.00716.56
7.2.100.0100.00516.46
7.2.90.0080.00516.63
7.2.80.0080.00416.73
7.2.70.0060.00416.77
7.2.60.0050.01016.75
7.2.50.0070.00416.72
7.2.40.0010.01016.82
7.2.30.0050.00716.79
7.2.20.0040.00716.77
7.2.10.0030.00916.99
7.2.00.0050.00516.89
7.1.250.0090.00615.52
7.1.200.0120.00015.63
7.1.70.0070.00017.01
7.1.60.0030.00717.31
7.1.50.0130.00916.88
7.1.00.0030.07722.23
7.0.200.0400.01816.46
7.0.140.0100.06722.00
7.0.60.0070.08319.88
7.0.50.0100.08717.87
7.0.40.0100.06020.40
7.0.30.0330.04020.26
7.0.20.0200.06320.09
7.0.10.0300.03320.08
7.0.00.0230.06020.32
5.6.280.0000.07721.02
5.6.210.0070.03720.57
5.6.200.0070.08718.16
5.6.190.0070.04720.49
5.6.180.3870.04020.57
5.6.170.0330.06720.55
5.6.160.0070.08320.53
5.6.150.0100.05018.18
5.6.140.0100.06318.27
5.6.130.0070.04718.18
5.6.120.0130.06321.00
5.6.110.0030.06721.05
5.6.100.0070.04021.11
5.6.90.0170.07721.01
5.6.80.0000.04020.36
5.6.70.0300.06720.52
5.5.350.0030.08320.43
5.5.340.0100.03318.08
5.5.330.0030.05720.18
5.5.320.0200.05020.28
5.5.310.0200.04320.26
5.5.300.0030.05318.08
5.5.290.0070.03717.93
5.5.280.0070.06020.88
5.5.270.0030.08720.98
5.5.260.0000.04720.77
5.5.250.0030.09020.70
5.5.240.0070.08020.07
5.4.450.0200.04719.44
5.4.440.0070.06319.29
5.4.430.0130.07319.36
5.4.420.0100.05719.56
5.4.410.0030.06319.30
5.4.400.1430.00018.83
5.4.390.1700.00018.50
5.4.380.0270.05018.74
5.4.370.0170.05318.63
5.4.360.0130.05318.57
5.4.350.0200.05018.78
5.4.340.0170.05318.67
5.4.320.0050.03712.50
5.4.310.0040.03912.50
5.4.300.0060.03512.50
5.4.290.0080.03612.50
5.4.280.0060.03612.40
5.4.270.0030.06718.74
5.4.260.0130.04718.90
5.4.250.0070.05718.99
5.4.240.0000.08718.75
5.4.230.0030.08318.94
5.4.220.0170.05018.83
5.4.210.0230.06318.84
5.4.200.0170.06718.90
5.4.190.0070.06318.73
5.4.180.0070.06018.94
5.4.170.0100.05718.89
5.4.160.0270.06018.73
5.4.150.0070.05718.77
5.4.140.0030.07316.59
5.4.130.0230.05316.38
5.4.120.0330.05016.36
5.4.110.0070.07016.44
5.4.100.0100.06016.41
5.4.90.0130.05716.41
5.4.80.0130.04316.35
5.4.70.0170.05016.45
5.4.60.0070.05016.49
5.4.50.0270.06716.47
5.4.40.0170.06716.51
5.4.30.0100.05716.30
5.4.20.0100.05716.48
5.4.10.0100.06016.46
5.4.00.0170.05716.04
5.3.290.0030.04212.80
5.3.280.0170.06314.50
5.3.270.0030.07314.75
5.3.260.0130.07314.61
5.3.250.0100.08014.58
5.3.240.0100.05014.68
5.3.230.0170.06314.68
5.3.220.0170.05014.66
5.3.210.0070.06014.74
5.3.200.0270.03714.40
5.3.190.0100.07014.71
5.3.180.0030.07314.64
5.3.170.0130.07714.65
5.3.160.0100.06714.70
5.3.150.0070.05714.65
5.3.140.0070.07014.69
5.3.130.0170.04714.57
5.3.120.0070.07314.55
5.3.110.0070.08014.55
5.3.100.0100.04714.06
5.3.90.0030.05314.01
5.3.80.0070.06014.04
5.3.70.0130.04714.10
5.3.60.0100.06314.09
5.3.50.0070.05314.05
5.3.40.0230.05013.86
5.3.30.0130.07713.90
5.3.20.0130.04013.88
5.3.10.0030.05013.64
5.3.00.0100.07013.47
5.2.170.0030.05011.22
5.2.160.0100.04311.32
5.2.150.0000.06711.31
5.2.140.0230.03711.14
5.2.130.0100.05011.09
5.2.120.0170.04311.06
5.2.110.0030.06011.28
5.2.100.0030.04011.20
5.2.90.0130.03711.19
5.2.80.0100.05010.93
5.2.70.0030.04711.18
5.2.60.0070.05311.04
5.2.50.0070.05710.92
5.2.40.0070.05011.07
5.2.30.0030.06311.06
5.2.20.0170.04311.03
5.2.10.0070.05711.04
5.2.00.0070.05010.81
5.1.60.0030.03310.04
5.1.50.0030.04310.09
5.1.40.0000.05310.18
5.1.30.0000.04310.51
5.1.20.0070.05010.19
5.1.10.0130.04310.04
5.1.00.0030.03710.27
5.0.50.0000.0378.39
5.0.40.0130.0308.52
5.0.30.0030.0438.29
5.0.20.0030.0278.35
5.0.10.0070.0378.26
5.0.00.0030.0438.25
4.4.90.0000.0236.65
4.4.80.0100.0236.65
4.4.70.0070.0206.65
4.4.60.0070.0206.65
4.4.50.0000.0276.65
4.4.40.0130.0276.65
4.4.30.0000.0306.65
4.4.20.0000.0236.65
4.4.10.0070.0276.65
4.4.00.0070.0306.65
4.3.110.0070.0306.60
4.3.100.0000.0306.60
4.3.90.0030.0276.60
4.3.80.0170.0236.60
4.3.70.0000.0276.60
4.3.60.0070.0276.60
4.3.50.0000.0336.60
4.3.40.0030.0436.60
4.3.30.0030.0236.60
4.3.20.0030.0236.60
4.3.10.0000.0236.60
4.3.00.0030.0205.84

preferences:
62.37 ms | 401 KiB | 5 Q