3v4l.org

run code in 300+ PHP versions simultaneously
<?php class FOO { public function bar() { $f = function () { return get_called_class(); }; $f = $f->bindTo(null, __CLASS__); $f = $f->bindTo($this, __CLASS__); var_dump($f); } } $f = new FOO; $f->bar();

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.0150.00016.50
8.3.50.0150.00222.82
8.3.40.0090.00618.72
8.3.30.0110.00718.93
8.3.20.0070.00020.39
8.3.10.0040.00423.52
8.3.00.0080.00019.25
8.2.180.0120.00316.50
8.2.170.0140.00022.96
8.2.160.0070.00720.47
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00420.92
8.2.110.0150.00320.56
8.2.100.0040.00717.79
8.2.90.0050.00318.16
8.2.80.0030.00517.97
8.2.70.0040.00417.63
8.2.60.0080.00018.05
8.2.50.0060.00318.07
8.2.40.0030.00518.16
8.2.30.0000.00717.94
8.2.20.0040.00417.69
8.2.10.0050.00317.98
8.2.00.0070.00017.68
8.1.280.0150.00025.92
8.1.270.0060.00323.88
8.1.260.0000.00726.35
8.1.250.0140.00028.09
8.1.240.0040.00422.21
8.1.230.0070.00420.91
8.1.220.0040.00417.74
8.1.210.0060.00318.97
8.1.200.0090.00017.22
8.1.190.0000.00817.36
8.1.180.0000.00718.10
8.1.170.0040.00418.56
8.1.160.0040.00422.04
8.1.150.0040.00418.94
8.1.140.0080.00017.36
8.1.130.0000.00717.70
8.1.120.0070.00017.48
8.1.110.0040.00417.37
8.1.100.0000.00717.48
8.1.90.0000.00717.36
8.1.80.0070.00017.37
8.1.70.0080.00017.39
8.1.60.0000.00817.52
8.1.50.0040.00417.52
8.1.40.0000.00817.43
8.1.30.0040.00417.66
8.1.20.0040.00417.61
8.1.10.0000.00717.50
8.1.00.0040.00417.43
8.0.300.0000.00820.08
8.0.290.0050.00216.63
8.0.280.0000.00718.26
8.0.270.0000.00717.10
8.0.260.0000.00617.13
8.0.250.0030.00316.80
8.0.240.0040.00416.91
8.0.230.0000.00716.82
8.0.220.0000.00716.79
8.0.210.0000.00716.80
8.0.200.0030.00316.82
8.0.190.0070.00416.84
8.0.180.0000.00716.90
8.0.170.0040.00416.80
8.0.160.0030.00616.75
8.0.150.0000.00816.84
8.0.140.0030.00516.90
8.0.130.0050.00013.23
8.0.120.0040.00416.79
8.0.110.0050.00316.86
8.0.100.0040.00416.77
8.0.90.0000.00716.67
8.0.80.0040.01516.88
8.0.70.0000.00816.90
8.0.60.0000.00716.88
8.0.50.0050.00216.78
8.0.30.0080.01317.04
8.0.20.0140.00417.40
8.0.10.0000.00817.13
8.0.00.0130.00616.59
7.4.330.0020.00215.00
7.4.320.0000.00616.50
7.4.300.0000.00616.50
7.4.290.0000.00716.52
7.4.280.0030.00516.59
7.4.270.0030.00316.48
7.4.260.0000.00816.48
7.4.250.0040.00416.47
7.4.240.0050.00216.58
7.4.230.0000.00716.70
7.4.220.0230.00716.62
7.4.210.0040.01116.66
7.4.200.0040.00416.35
7.4.160.0120.00316.55
7.4.150.0060.01317.40
7.4.140.0110.00617.86
7.4.130.0090.00916.49
7.4.120.0050.01216.49
7.4.110.0100.00716.69
7.4.100.0100.01016.53
7.4.90.0140.00316.41
7.4.80.0090.01519.39
7.4.70.0100.00816.45
7.4.60.0070.01016.43
7.4.50.0060.00316.36
7.4.40.0100.00716.49
7.4.30.0120.01216.50
7.4.00.0040.01215.21
7.3.330.0000.00613.32
7.3.320.0000.00613.32
7.3.310.0070.00016.38
7.3.300.0000.00716.17
7.3.290.0090.00616.39
7.3.280.0150.00416.29
7.3.270.0110.00617.40
7.3.260.0080.00916.51
7.3.250.0150.00616.45
7.3.240.0100.00716.52
7.3.230.0060.01216.39
7.3.210.0060.01216.44
7.3.200.0160.00619.39
7.3.190.0090.01216.29
7.3.180.0080.00816.59
7.3.170.0080.00816.36
7.3.160.0030.01316.41
7.2.330.0130.00716.70
7.2.320.0050.01516.59
7.2.310.0030.01316.36
7.2.300.0130.01016.63
7.2.290.0040.01216.66
7.2.60.0100.00316.91
7.2.00.0000.01519.26
7.1.200.0060.00615.82
7.1.100.0040.00818.43
7.1.70.0030.00516.95
7.1.60.0130.01019.40
7.1.50.0040.02216.95
7.1.00.0100.07022.26
7.0.200.0030.00316.81
7.0.140.0070.06722.12
7.0.60.0100.08720.02
7.0.50.0030.04017.77
7.0.40.0070.08320.11
7.0.30.0600.06720.08
7.0.20.0170.07720.30
7.0.10.0030.07720.07
7.0.00.0070.04020.09
5.6.280.0070.07021.02
5.6.210.0170.06320.48
5.6.200.0230.07018.14
5.6.190.0070.04320.45
5.6.180.3230.04020.48
5.6.170.0100.05720.55
5.6.160.0130.04320.39
5.6.150.0130.07318.29
5.6.140.0070.07718.20
5.6.130.0100.07718.28
5.6.120.0130.07021.00
5.6.110.0070.08721.10
5.6.100.0030.04020.98
5.6.90.0000.04321.00
5.6.80.0130.04720.39
5.6.70.0300.07320.39
5.5.350.0070.08020.44
5.5.340.0030.08718.02
5.5.330.0030.04720.42
5.5.320.0370.06720.30
5.5.310.0430.07720.20
5.5.300.0170.06717.95
5.5.290.0030.05018.04
5.5.280.0070.04320.97
5.5.270.0070.08320.77
5.5.260.0330.06720.87
5.5.250.0170.07320.79
5.5.240.0030.07720.19
5.4.450.0930.06719.48
5.4.440.0070.05719.21
5.4.430.0170.04719.23
5.4.420.0770.05719.37
5.4.410.0700.08019.48
5.4.400.0700.05019.19
5.4.390.0570.05019.17
5.4.380.0100.05018.74
5.4.370.0100.04018.56
5.4.360.0100.04318.63
5.4.350.0080.04212.02
5.4.340.0110.04712.02
5.4.320.0070.04512.51
5.4.310.0070.04412.50
5.4.300.0080.03412.50
5.4.290.0040.04212.50
5.4.280.0070.04012.40
5.4.270.0100.04312.39
5.4.260.0080.04212.40
5.4.250.0100.04912.40
5.4.240.0060.03612.40
5.4.230.0070.04312.39
5.4.220.0050.03912.39
5.4.210.0040.04312.39
5.4.200.0050.04312.39
5.4.190.0040.04112.39
5.4.180.0100.03512.39
5.4.170.0050.03712.40
5.4.160.0040.03912.39
5.4.150.0070.04012.39
5.4.140.0090.03512.07
5.4.130.0050.04312.06
5.4.120.0110.04012.02
5.4.110.0050.04012.02
5.4.100.0070.04212.02
5.4.90.0050.04212.02
5.4.80.0060.03712.02
5.4.70.0080.03612.01
5.4.60.0080.04012.01
5.4.50.0070.04212.01
5.4.40.0100.03612.00
5.4.30.0070.03812.00
5.4.20.0110.04012.00
5.4.10.0050.03912.00
5.4.00.0090.03211.48
5.3.290.0110.04212.80
5.3.280.0110.04012.71
5.3.270.0100.04312.72
5.3.260.0090.04212.72
5.3.250.0050.04012.72
5.3.240.0100.03312.71
5.3.230.0040.03912.71
5.3.220.0050.03812.68
5.3.210.0100.03512.68
5.3.200.0060.03612.68
5.3.190.0100.04212.68
5.3.180.0080.03712.68
5.3.170.0080.04512.67
5.3.160.0050.04412.67
5.3.150.0100.03612.68
5.3.140.0080.03612.66
5.3.130.0090.03712.66
5.3.120.0030.04712.66
5.3.110.0090.03912.66
5.3.100.0100.03812.13
5.3.90.0090.03512.11
5.3.80.0060.03912.10
5.3.70.0100.03412.10
5.3.60.0120.03412.08
5.3.50.0030.03812.04
5.3.40.0080.03612.04
5.3.30.0060.03911.99
5.3.20.0070.03611.77
5.3.10.0080.04211.73
5.3.00.0030.03811.72
5.2.170.0070.0389.22
5.2.160.0030.0399.22
5.2.150.0060.0389.22
5.2.140.0020.0379.22
5.2.130.0080.0329.18
5.2.120.0080.0359.18
5.2.110.0060.0309.18
5.2.100.0030.0319.18
5.2.90.0050.0319.18
5.2.80.0060.0349.18
5.2.70.0080.0429.18
5.2.60.0070.0439.13
5.2.50.0050.0339.10
5.2.40.0100.0379.07
5.2.30.0110.0289.05
5.2.20.0060.0489.04
5.2.10.0050.0388.95
5.2.00.0060.0368.80
5.1.60.0040.0298.10
5.1.50.0030.0318.09
5.1.40.0100.0238.07
5.1.30.0130.0288.42
5.1.20.0040.0288.43
5.1.10.0040.0398.17
5.1.00.0100.0268.17
5.0.50.0090.0246.64
5.0.40.0070.0236.50
5.0.30.0050.0316.31
5.0.20.0040.0216.28
5.0.10.0000.0266.25
5.0.00.0070.0326.25
4.4.90.0020.0164.78
4.4.80.0020.0194.75
4.4.70.0050.0134.75
4.4.60.0030.0154.76
4.4.50.0030.0164.77
4.4.40.0030.0314.71
4.4.30.0060.0134.75
4.4.20.0030.0164.84
4.4.10.0020.0164.84
4.4.00.0020.0324.76
4.3.110.0050.0164.67
4.3.100.0010.0254.66
4.3.90.0020.0164.63
4.3.80.0050.0354.58
4.3.70.0040.0154.63
4.3.60.0040.0164.62
4.3.50.0050.0184.63
4.3.40.0010.0354.53
4.3.30.0020.0163.30
4.3.20.0010.0203.28
4.3.10.0010.0173.23
4.3.00.0400.0237.93

preferences:
35.71 ms | 401 KiB | 5 Q