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; 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.40.0120.00318.59
8.3.30.0140.00019.08
8.3.20.0050.00320.09
8.3.10.0000.00821.94
8.3.00.0050.00222.37
8.2.170.0090.00922.96
8.2.160.0140.00720.28
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.24
8.2.110.0090.00022.08
8.2.100.0080.00319.57
8.2.90.0040.00419.23
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0030.00617.93
8.2.50.0060.00318.07
8.2.40.0040.00418.28
8.2.30.0000.00918.10
8.2.20.0050.00217.66
8.2.10.0030.00519.26
8.2.00.0030.00617.67
8.1.270.0030.00621.90
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.79
8.1.230.0090.00319.15
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0040.00417.50
8.1.180.0040.00418.10
8.1.170.0030.00518.59
8.1.160.0040.00421.96
8.1.150.0000.00818.59
8.1.140.0040.00417.39
8.1.130.0070.00017.89
8.1.120.0000.00717.40
8.1.110.0000.00817.26
8.1.100.0040.00417.41
8.1.90.0030.00317.30
8.1.80.0000.00717.32
8.1.70.0030.00517.43
8.1.60.0030.00617.63
8.1.50.0040.00417.43
8.1.40.0020.00517.48
8.1.30.0070.00017.66
8.1.20.0040.00417.56
8.1.10.0040.00417.57
8.1.00.0040.00417.53
8.0.300.0050.00218.77
8.0.290.0040.00417.18
8.0.280.0000.00718.46
8.0.270.0000.00817.17
8.0.260.0000.00716.86
8.0.250.0030.00316.95
8.0.240.0080.00017.02
8.0.230.0000.01016.90
8.0.220.0040.00416.82
8.0.210.0000.00716.70
8.0.200.0000.00616.82
8.0.190.0000.00816.84
8.0.180.0030.00616.90
8.0.170.0000.00816.82
8.0.160.0040.00416.77
8.0.150.0000.00716.80
8.0.140.0040.00416.77
8.0.130.0000.00513.31
8.0.120.0070.00016.70
8.0.110.0040.00416.80
8.0.100.0030.00516.89
8.0.90.0070.00016.89
8.0.80.0110.00416.87
8.0.70.0040.00416.78
8.0.60.0000.00716.90
8.0.50.0040.00416.73
8.0.30.0120.00917.12
8.0.20.0110.01017.40
8.0.10.0040.00416.97
8.0.00.0160.00616.84
7.4.330.0050.00015.09
7.4.320.0060.00016.61
7.4.300.0000.00716.61
7.4.290.0000.00716.41
7.4.280.0040.00416.63
7.4.270.0030.00316.48
7.4.260.0050.00516.36
7.4.250.0030.00516.39
7.4.240.0060.00116.57
7.4.230.0030.00516.63
7.4.220.0150.00416.50
7.4.210.0070.00616.65
7.4.200.0000.00716.51
7.4.190.0040.00416.57
7.4.160.0090.00916.41
7.4.150.0070.01117.40
7.4.140.0090.00917.86
7.4.130.0100.01116.56
7.4.120.0080.01316.63
7.4.110.0100.00616.55
7.4.100.0070.01416.45
7.4.90.0070.01116.38
7.4.80.0030.01519.39
7.4.70.0060.01016.52
7.4.60.0090.00616.32
7.4.50.0050.00316.17
7.4.40.0070.01022.77
7.4.30.0120.00316.54
7.4.00.0030.01015.11
7.3.330.0030.00313.29
7.3.320.0000.00513.38
7.3.310.0040.00416.26
7.3.300.0060.00016.32
7.3.290.0090.00616.38
7.3.280.0060.01016.31
7.3.270.0120.00617.40
7.3.260.0100.00716.29
7.3.250.0090.00916.38
7.3.240.0120.00616.53
7.3.230.0120.00916.39
7.3.210.0040.01216.25
7.3.200.0120.00319.39
7.3.190.0140.00516.54
7.3.180.0080.00816.24
7.3.170.0150.00016.31
7.3.160.0140.00316.45
7.3.120.0030.01214.93
7.2.330.0060.01016.48
7.2.320.0090.01516.77
7.2.310.0030.01316.52
7.2.300.0000.01716.61
7.2.290.0070.01016.72
7.2.00.0070.00718.96
7.1.100.0000.01318.04
7.1.70.0100.01016.80
7.1.60.0170.00719.82
7.1.50.0030.02016.89
7.1.00.0030.07722.36
7.0.200.0030.00716.96
7.0.140.0030.07321.92
7.0.60.0270.04719.88
7.0.50.0000.06317.95
7.0.40.0030.07320.40
7.0.30.0300.06720.21
7.0.20.0230.08020.24
7.0.10.0030.05020.22
7.0.00.0130.08320.20
5.6.280.0030.07020.86
5.6.210.0030.08020.61
5.6.200.0130.05018.15
5.6.190.0100.07720.61
5.6.180.3830.04720.67
5.6.170.0230.05020.47
5.6.160.0100.05720.52
5.6.150.0070.08018.18
5.6.140.0070.03718.14
5.6.130.0030.07718.11
5.6.120.0070.07321.16
5.6.110.0200.05720.99
5.6.100.0130.05020.98
5.6.90.0030.08721.09
5.6.80.0000.04020.38
5.6.70.4300.04320.42
5.5.350.0000.07020.38
5.5.340.0070.07718.02
5.5.330.0100.03320.37
5.5.320.0230.08020.20
5.5.310.0270.05320.34
5.5.300.0230.06718.08
5.5.290.0130.07317.95
5.5.280.0000.05320.69
5.5.270.0070.08320.87
5.5.260.0100.07020.98
5.5.250.0070.04320.58
5.5.240.0000.08020.27
5.4.450.0600.05719.47
5.4.440.0970.05319.58
5.4.430.1130.05019.48
5.4.420.0800.07319.61
5.4.410.0130.07318.70
5.4.400.0100.06018.83
5.4.390.0430.04318.57
5.4.380.0100.06318.84
5.4.370.0070.04018.69
5.4.360.0170.04318.80
5.4.350.0120.03212.02
5.4.340.0060.03712.02
5.4.320.0030.04112.50
5.4.310.0080.03812.50
5.4.300.0060.03912.50
5.4.290.0090.03612.50
5.4.280.0070.03412.40
5.4.270.0170.05318.84
5.4.260.0130.05318.84
5.4.250.0100.05718.74
5.4.240.0070.06018.90
5.4.230.0030.07318.76
5.4.220.0070.08018.65
5.4.210.0170.05719.02
5.4.200.0070.07019.09
5.4.190.0130.07718.89
5.4.180.0170.06718.98
5.4.170.0100.05718.94
5.4.160.0170.05718.75
5.4.150.0170.07318.82
5.4.140.0070.05016.44
5.4.130.0070.06716.39
5.4.120.0070.05716.41
5.4.110.0170.05016.51
5.4.100.0100.06316.50
5.4.90.0100.05016.47
5.4.80.0170.05316.36
5.4.70.0200.06016.61
5.4.60.0130.05316.53
5.4.50.0170.05016.48
5.4.40.0070.06716.44
5.4.30.0170.04316.30
5.4.20.0000.06316.52
5.4.10.0170.07316.39
5.4.00.0130.06315.88
5.3.290.0080.03612.80
5.3.280.0200.06314.43
5.3.270.0130.07314.79
5.3.260.0000.09014.68
5.3.250.0030.09014.77
5.3.240.0230.05714.67
5.3.230.0100.06714.60
5.3.220.0000.06714.65
5.3.210.0200.06314.40
5.3.200.0270.05314.67
5.3.190.0200.05314.65
5.3.180.0070.05714.64
5.3.170.0100.05014.74
5.3.160.0170.07014.65
5.3.150.0070.05714.40
5.3.140.0130.06314.74
5.3.130.0070.06714.55
5.3.120.0070.06314.38
5.3.110.0100.06014.71
5.3.100.0130.06714.11
5.3.90.0170.06713.93
5.3.80.0030.07314.04
5.3.70.0100.05314.00
5.3.60.0100.06314.18
5.3.50.0130.06014.02
5.3.40.0130.06714.04
5.3.30.0070.05313.88
5.3.20.0070.06713.60
5.3.10.0170.06013.65
5.3.00.0030.07713.46
5.2.170.0100.04311.23
5.2.160.0130.04711.05
5.2.150.0070.04711.24
5.2.140.0070.04311.23
5.2.130.0130.04711.09
5.2.120.0100.04011.19
5.2.110.0070.05011.01
5.2.100.0030.05011.01
5.2.90.0130.05011.19
5.2.80.0030.06311.05
5.2.70.0070.05711.07
5.2.60.0100.05011.13
5.2.50.0070.05711.09
5.2.40.0170.03711.07
5.2.30.0170.03711.07
5.2.20.0070.04711.03
5.2.10.0070.04010.94
5.2.00.0030.05010.81
5.1.60.0070.03310.09
5.1.50.0070.04010.21
5.1.40.0170.0339.98
5.1.30.0030.04710.41
5.1.20.0130.04310.44
5.1.10.0130.0409.99
5.1.00.0000.05710.13
5.0.50.0100.0338.61
5.0.40.0130.0278.50
5.0.30.0030.0508.38
5.0.20.0070.0408.29
5.0.10.0100.0238.18
5.0.00.0070.0438.11
4.4.90.0030.0306.90
4.4.80.0000.0276.90
4.4.70.0030.0276.90
4.4.60.0070.0276.90
4.4.50.0070.0306.90
4.4.40.0030.0376.90
4.4.30.0070.0276.90
4.4.20.0100.0276.90
4.4.10.0100.0236.90
4.4.00.0030.0376.90
4.3.110.0100.0276.90
4.3.100.0130.0206.90
4.3.90.0070.0276.90
4.3.80.0000.0436.90
4.3.70.0070.0276.90
4.3.60.0030.0236.90
4.3.50.0030.0276.90
4.3.40.0000.0506.90
4.3.30.0030.0206.90
4.3.20.0000.0236.90
4.3.10.0000.0236.90
4.3.00.0130.0207.13

preferences:
47.95 ms | 400 KiB | 5 Q