3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { static function bar() { $foo = static function() { return get_called_class(); }; return $foo(); } static function baz() { $foo = function() { return get_called_class(); }; return $foo(); } static function rebind() { $foo = function() { return get_called_class(); }; return $foo->bindTo(new Foo); } } class Bar extends Foo { } print Bar::bar() . Bar::baz() . Bar::rebind(); assert(Bar::bar() === 'Bar'); assert(Bar::baz() === '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.0140.00718.40
8.3.50.0120.00621.93
8.3.40.0110.00719.02
8.3.30.0070.01118.61
8.3.20.0130.00318.52
8.3.10.0040.00421.04
8.3.00.0040.00421.57
8.2.180.0120.00316.88
8.2.170.0070.01122.96
8.2.160.0070.01320.43
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0080.00021.03
8.2.110.0030.00620.34
8.2.100.0070.00417.86
8.2.90.0040.00418.87
8.2.80.0050.00317.97
8.2.70.0030.00717.63
8.2.60.0030.00617.93
8.2.50.0000.00918.07
8.2.40.0050.00318.22
8.2.30.0060.00321.11
8.2.20.0040.00417.60
8.2.10.0040.00417.75
8.2.00.0000.00817.61
8.1.280.0140.00325.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0120.00622.54
8.1.230.0040.00720.89
8.1.220.0030.00618.77
8.1.210.0090.00018.81
8.1.200.0000.00817.35
8.1.190.0050.00317.53
8.1.180.0040.00418.10
8.1.170.0050.00318.59
8.1.160.0050.00218.88
8.1.150.0040.00418.67
8.1.140.0040.00417.38
8.1.130.0000.00717.77
8.1.120.0070.00017.40
8.1.110.0000.00717.49
8.1.100.0060.00317.43
8.1.90.0040.00417.35
8.1.80.0030.00317.42
8.1.70.0030.00317.47
8.1.60.0030.00917.60
8.1.50.0040.00417.49
8.1.40.0040.00417.57
8.1.30.0040.00417.48
8.1.20.0030.00617.65
8.1.10.0000.00717.54
8.1.00.0060.00617.49
8.0.300.0000.00719.85
8.0.290.0080.00017.16
8.0.280.0070.00018.40
8.0.270.0000.00717.14
8.0.260.0070.00016.90
8.0.250.0000.00717.03
8.0.240.0060.00616.92
8.0.230.0030.00316.89
8.0.220.0000.00716.97
8.0.210.0030.00316.85
8.0.200.0040.00416.89
8.0.190.0000.00717.05
8.0.180.0040.00416.98
8.0.170.0090.00017.00
8.0.160.0080.00016.96
8.0.150.0000.00816.98
8.0.140.0040.00416.75
8.0.130.0000.00613.35
8.0.120.0000.00816.98
8.0.110.0040.00416.82
8.0.100.0000.00716.76
8.0.90.0070.00016.78
8.0.80.0040.01217.02
8.0.70.0040.00417.02
8.0.60.0000.00716.87
8.0.50.0040.00416.90
8.0.30.0090.00917.10
8.0.20.0140.00517.40
8.0.10.0040.00417.09
8.0.00.0100.00716.75
7.4.330.0050.00016.77
7.4.320.0000.00716.65
7.4.300.0000.00616.50
7.4.290.0070.00016.64
7.4.280.0040.00416.51
7.4.270.0000.00716.54
7.4.260.0000.00513.39
7.4.250.0030.00516.48
7.4.240.0000.00716.41
7.4.230.0030.00316.54
7.4.220.0100.00716.52
7.4.210.0080.00916.58
7.4.200.0040.00416.70
7.4.190.0030.00316.70
7.4.160.0070.01016.66
7.4.150.0000.01717.40
7.4.140.0080.00917.86
7.4.130.0120.00516.61
7.4.120.0070.01116.51
7.4.110.0110.00616.55
7.4.100.0120.01216.59
7.4.90.0170.00016.48
7.4.80.0090.00919.39
7.4.70.0080.01116.59
7.4.60.0060.01116.50
7.4.50.0030.00616.34
7.4.40.0090.00622.77
7.4.30.0080.00816.65
7.4.00.0030.00915.03
7.3.330.0030.00313.31
7.3.320.0020.00213.39
7.3.310.0000.00716.24
7.3.300.0000.00716.28
7.3.290.0150.00016.40
7.3.280.0060.01016.40
7.3.270.0160.00017.40
7.3.260.0110.00918.24
7.3.250.0100.00916.44
7.3.240.0110.01116.26
7.3.230.0030.01316.39
7.3.210.0070.01116.33
7.3.200.0090.00919.39
7.3.190.0040.01316.39
7.3.180.0080.00816.41
7.3.170.0030.01416.57
7.3.160.0130.00316.40
7.3.120.0060.01014.96
7.2.330.0100.01016.53
7.2.320.0070.01116.58
7.2.310.0060.01216.67
7.2.300.0150.00316.33
7.2.290.0070.01016.75
7.2.80.0040.00916.58
7.2.60.0070.00716.82
7.2.00.0030.01019.18
7.1.200.0090.00315.61
7.1.100.0090.00618.09
7.1.70.0030.00617.29
7.1.60.0070.01719.40
7.1.50.0230.01034.81
7.1.00.0070.06022.30
7.0.200.0160.00615.08
7.0.140.0000.07721.95
7.0.100.0170.03019.91
7.0.90.0070.04019.84
7.0.80.0070.03020.09
7.0.70.0100.04719.92
7.0.60.0230.04319.91
7.0.50.0170.08020.27
7.0.40.0100.08320.10
7.0.30.0200.07020.07
7.0.20.0170.07320.03
7.0.10.0070.07320.13
7.0.00.0170.07319.98
5.6.280.0030.07320.92
5.6.250.0030.04720.72
5.6.240.0030.04320.71
5.6.230.0030.04020.71
5.6.220.0070.07720.70
5.6.210.0000.05020.42
5.6.200.0130.08321.10
5.6.190.0030.08020.90
5.6.180.0100.09021.00
5.6.170.0130.04320.90
5.6.160.0130.08021.03
5.6.150.0070.06721.04
5.6.140.0000.08321.09
5.6.130.0030.05321.13
5.6.120.0030.09321.02
5.6.110.0000.08721.09
5.6.100.0170.06721.06
5.6.90.0030.06321.08
5.6.80.0130.07020.46
5.6.70.0070.04320.36
5.6.60.0100.07720.36
5.6.50.0030.08020.37
5.6.40.0070.08720.46
5.6.30.0070.08320.43
5.6.20.0000.08720.25
5.6.10.0100.08020.34
5.6.00.0070.05020.31
5.5.380.0070.04320.31
5.5.370.0070.03720.34
5.5.360.0000.05020.41
5.5.350.0100.08020.38
5.5.340.0070.06020.73
5.5.330.0070.04320.77
5.5.320.0070.09020.77
5.5.310.0270.06020.79
5.5.300.0070.08020.88
5.5.290.0070.08320.83
5.5.280.0030.09320.84
5.5.270.0100.08720.75
5.5.260.0030.08720.69
5.5.250.0070.07720.70
5.5.240.0000.04320.25
5.5.230.0030.08020.21
5.5.220.0070.04320.17
5.5.210.0130.06319.98
5.5.200.0100.07320.20
5.5.190.0070.04720.20
5.5.180.0000.08720.04
5.5.160.0170.06320.19
5.5.150.0100.07720.19
5.5.140.0070.05320.22
5.5.130.0130.05020.21
5.5.120.0100.05320.10
5.5.110.0130.07020.14
5.5.100.0070.07720.03
5.5.90.0030.05719.99
5.5.80.0130.07020.12
5.5.70.0070.04320.10
5.5.60.0070.04719.96
5.5.50.0000.06719.93
5.5.40.0100.08019.92
5.5.30.0070.07720.01
5.5.20.0000.05020.01
5.5.10.0000.06720.08
5.5.00.0000.07719.88
5.4.450.0130.07719.38
5.4.440.0130.07019.51
5.4.430.0100.03719.35
5.4.420.0070.07719.48
5.4.410.0100.07719.35
5.4.400.0030.04019.08
5.4.390.0130.06719.21
5.4.380.0130.07719.05
5.4.370.0070.07019.12
5.4.360.0100.07319.05
5.4.350.0030.08019.25
5.4.340.0030.04318.90
5.4.320.0070.06319.03
5.4.310.0070.04319.13
5.4.300.0100.04319.18
5.4.290.0070.05719.02
5.4.280.0070.05719.13
5.4.270.0070.07319.13
5.4.260.0070.07318.88
5.4.250.0130.06319.02
5.4.240.0170.04719.02
5.4.230.0000.08719.04
5.4.220.0130.04018.89
5.4.210.0100.04718.84
5.4.200.0030.05719.09
5.4.190.0200.06318.93
5.4.180.0030.06019.11
5.4.170.0230.05319.17
5.4.160.0070.07319.10
5.4.150.0030.04319.00
5.4.140.0000.04316.50
5.4.130.0070.04316.19
5.4.120.0130.06316.33
5.4.110.0070.07016.39
5.4.100.0130.07316.48
5.4.90.0130.06316.47
5.4.80.0100.07316.50
5.4.70.0100.07016.32
5.4.60.0100.06316.43
5.4.50.0070.06016.46
5.4.40.0070.04016.38
5.4.30.0030.08016.43
5.4.20.0130.06016.48
5.4.10.0030.07716.47
5.4.00.0000.04715.80
5.3.290.0070.06314.76
5.3.280.0100.03314.59
5.3.270.0070.07714.54
5.3.260.0100.07314.67
5.3.250.0070.06714.67
5.3.240.0030.04014.57
5.3.230.0170.05714.60
5.3.220.0100.04714.57
5.3.210.0100.06714.54
5.3.200.0030.06314.68
5.3.190.0100.07714.49
5.3.180.0030.04714.55
5.3.170.0070.07014.68
5.3.160.0070.07014.53
5.3.150.0070.06314.70
5.3.140.0100.07014.62
5.3.130.0070.07714.54
5.3.120.0070.08014.52
5.3.110.0030.04714.55
5.3.100.0100.06714.02
5.3.90.0070.07314.04
5.3.80.0100.06714.03
5.3.70.0030.04314.11
5.3.60.0030.07714.02
5.3.50.0070.07014.08
5.3.40.0130.06714.06
5.3.30.0070.07713.81
5.3.20.0100.03313.75
5.3.10.0200.02713.70
5.3.00.0000.04013.64
5.2.170.0030.04711.25
5.2.160.0000.03311.24
5.2.150.0070.03311.20
5.2.140.0170.05011.25
5.2.130.0070.05010.98
5.2.120.0070.05011.03
5.2.110.0100.05010.98
5.2.100.0070.05011.12
5.2.90.0030.06011.02
5.2.80.0130.05711.12
5.2.70.0030.06011.21
5.2.60.0070.05311.16
5.2.50.0030.05310.97
5.2.40.0170.04011.06
5.2.30.0070.05711.09
5.2.20.0070.03010.91
5.2.10.0100.03710.86
5.2.00.0100.05710.74
5.1.60.0100.0479.95
5.1.50.0100.03010.00
5.1.40.0030.0479.98
5.1.30.0000.03710.24
5.1.20.0070.05310.30
5.1.10.0030.05310.06
5.1.00.0070.05310.08
5.0.50.0070.0308.54
5.0.40.0000.0308.48
5.0.30.0000.0808.30
5.0.20.0030.0438.28
5.0.10.0000.0478.18
5.0.00.0030.0338.24
4.4.90.0030.0377.24
4.4.80.0070.0307.24
4.4.70.0030.0307.24
4.4.60.0070.0237.24
4.4.50.0070.0307.24
4.4.40.0030.0377.24
4.4.30.0030.0337.24
4.4.20.0000.0337.24
4.4.10.0030.0377.24
4.4.00.0000.0537.24
4.3.110.0070.0307.24
4.3.100.0070.0137.24
4.3.90.0000.0337.24
4.3.80.0030.0477.24
4.3.70.0000.0207.24
4.3.60.0030.0177.24
4.3.50.0000.0177.24
4.3.40.0000.0377.24
4.3.30.0030.0307.24
4.3.20.0070.0307.24
4.3.10.0000.0377.24
4.3.00.0030.0177.24

preferences:
46.19 ms | 401 KiB | 5 Q