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(); }; $oFoo=new Foo; return $foo->bindTo(null,'Foo'); } } class Bar extends Foo { } //print Bar::bar() . Bar::baz() . print 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.0150.00018.43
8.3.50.0110.00922.05
8.3.40.0130.00918.58
8.3.30.0090.00618.85
8.3.20.0000.00818.85
8.3.10.0050.00321.08
8.3.00.0000.00821.57
8.2.180.0100.00716.49
8.2.170.0070.00722.96
8.2.160.0090.00620.52
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0020.00521.18
8.2.110.0080.00320.58
8.2.100.0100.00317.88
8.2.90.0040.00419.23
8.2.80.0080.00017.97
8.2.70.0070.00317.63
8.2.60.0060.00318.04
8.2.50.0090.00018.07
8.2.40.0000.00718.34
8.2.30.0040.00419.45
8.2.20.0070.00017.64
8.2.10.0000.00717.87
8.2.00.0030.00517.81
8.1.270.0030.00623.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.42
8.1.230.0070.00420.95
8.1.220.0050.00318.77
8.1.210.0040.00418.88
8.1.200.0030.00617.48
8.1.190.0000.00717.53
8.1.180.0000.00818.10
8.1.170.0030.00620.29
8.1.160.0070.00019.01
8.1.150.0070.00018.67
8.1.140.0000.00717.40
8.1.130.0070.00017.84
8.1.120.0050.00317.45
8.1.110.0060.00317.34
8.1.100.0000.00717.45
8.1.90.0000.00717.33
8.1.80.0050.00217.38
8.1.70.0030.00317.41
8.1.60.0060.00317.47
8.1.50.0000.00717.45
8.1.40.0030.00617.52
8.1.30.0040.00417.60
8.1.20.0050.00317.66
8.1.10.0040.00417.52
8.1.00.0070.00017.51
8.0.300.0050.00219.98
8.0.290.0000.00716.99
8.0.280.0040.00418.42
8.0.270.0030.00317.26
8.0.260.0000.00616.93
8.0.250.0040.00417.03
8.0.240.0000.00816.88
8.0.230.0000.00816.97
8.0.220.0000.00716.79
8.0.210.0030.00316.78
8.0.200.0000.00716.91
8.0.190.0030.00517.03
8.0.180.0000.01016.93
8.0.170.0000.00717.02
8.0.160.0040.00417.02
8.0.150.0070.00016.94
8.0.140.0000.00716.97
8.0.130.0000.00513.37
8.0.120.0080.00016.86
8.0.110.0000.00817.00
8.0.100.0000.00716.94
8.0.90.0000.00816.89
8.0.80.0040.01117.02
8.0.70.0050.00316.95
8.0.60.0000.00716.83
8.0.50.0000.00716.85
8.0.30.0130.00917.21
8.0.20.0080.01017.40
8.0.10.0050.00317.06
8.0.00.0030.01416.94
7.4.330.0030.00316.84
7.4.320.0030.00316.60
7.4.300.0040.00416.52
7.4.290.0030.00316.45
7.4.280.0030.00316.63
7.4.270.0030.00316.45
7.4.260.0030.00313.19
7.4.250.0040.00416.55
7.4.240.0000.00716.50
7.4.230.0030.00616.51
7.4.220.0060.00916.37
7.4.210.0060.01216.54
7.4.200.0000.00716.50
7.4.190.0030.00316.64
7.4.160.0070.01516.47
7.4.150.0030.01317.40
7.4.140.0120.00817.86
7.4.130.0060.01116.50
7.4.120.0110.00616.68
7.4.110.0140.00316.72
7.4.100.0070.01016.66
7.4.90.0070.01016.57
7.4.80.0060.01119.39
7.4.70.0110.00516.50
7.4.60.0100.00716.47
7.4.50.0030.00516.66
7.4.40.0070.01022.77
7.4.30.0090.00916.59
7.4.00.0120.00315.12
7.3.330.0000.00613.38
7.3.320.0000.00513.36
7.3.310.0030.00316.25
7.3.300.0030.00316.22
7.3.290.0100.00416.32
7.3.280.0070.00816.31
7.3.270.0030.01317.40
7.3.260.0060.01518.24
7.3.250.0090.00916.39
7.3.240.0080.00816.54
7.3.230.0110.00516.46
7.3.210.0130.00616.35
7.3.200.0100.00719.39
7.3.190.0090.00916.30
7.3.180.0060.01016.49
7.3.170.0030.01216.42
7.3.160.0120.00316.54
7.3.120.0040.01214.75
7.3.110.0080.00314.75
7.3.100.0130.00314.83
7.3.90.0030.01015.06
7.3.80.0040.00714.80
7.3.70.0090.00614.83
7.3.60.0060.01014.84
7.3.50.0030.01014.87
7.3.40.0000.01314.48
7.3.30.0070.00714.65
7.3.20.0070.01016.48
7.3.10.0090.00616.25
7.3.00.0100.00716.66
7.2.330.0120.00616.40
7.2.320.0090.00916.39
7.2.310.0120.00616.35
7.2.300.0100.00716.37
7.2.290.0130.00916.91
7.2.240.0110.00415.09
7.2.230.0060.00915.14
7.2.220.0040.00715.20
7.2.210.0130.00314.89
7.2.200.0090.00314.89
7.2.190.0060.00615.20
7.2.180.0060.00314.84
7.2.170.0060.00915.04
7.2.160.0030.01314.99
7.2.150.0030.01016.98
7.2.140.0100.00317.07
7.2.130.0060.01016.96
7.2.120.0040.01416.91
7.2.110.0070.01016.83
7.2.100.0110.00416.80
7.2.90.0070.00716.99
7.2.80.0090.00616.95
7.2.70.0080.00616.81
7.2.60.0050.00817.03
7.2.50.0070.01016.89
7.2.40.0040.00816.95
7.2.30.0040.01516.98
7.2.20.0040.01216.95
7.2.10.0030.01017.00
7.2.00.0090.00718.06
7.1.330.0030.01315.62
7.1.320.0060.00315.77
7.1.310.0060.00615.55
7.1.300.0040.01115.80
7.1.290.0110.00315.71
7.1.280.0070.00715.48
7.1.270.0110.00615.66
7.1.260.0130.00315.35
7.1.250.0070.00715.78
7.1.200.0060.00615.74
7.1.100.0080.00318.01
7.1.70.0070.00417.20
7.1.60.0070.01719.40
7.1.50.0110.00616.64
7.1.00.0030.03322.30
7.0.200.0100.00316.56
7.0.140.0000.07722.11
7.0.110.0170.08019.86
7.0.100.0030.07019.97
7.0.90.0130.08020.07
7.0.80.0030.06019.93
7.0.70.0130.07719.94
7.0.60.0200.07720.04
7.0.50.0170.04719.94
7.0.40.0030.08319.71
7.0.30.0030.07319.82
7.0.20.0130.08019.70
7.0.10.0170.03019.65
7.0.00.0170.07019.78
5.6.280.0070.07021.08
5.6.260.0030.08020.67
5.6.250.0130.07320.66
5.6.240.0100.07020.64
5.6.230.0100.08020.73
5.6.220.0070.08020.66
5.6.210.0070.07720.72
5.6.200.0000.06720.57
5.6.190.0100.06020.65
5.6.180.0030.09020.64
5.6.170.0070.07720.65
5.6.160.0030.08320.82
5.6.150.0070.08720.69
5.6.140.0130.07320.66
5.6.130.0070.08020.69
5.6.120.0030.06720.62
5.6.110.0000.07720.66
5.6.100.0030.07320.66
5.6.90.0030.08320.46
5.6.80.0070.08020.04
5.6.70.0030.08319.96
5.6.60.0030.05319.98
5.6.50.0170.07020.05
5.6.40.0100.07720.00
5.6.30.0070.06719.93
5.6.20.0100.06720.04
5.6.10.0000.07720.08
5.6.00.0100.04020.07
5.5.380.0000.06317.70
5.5.370.0070.04717.72
5.5.360.0070.07717.52
5.5.350.0200.07017.65
5.5.340.0030.05318.08
5.5.330.0130.07017.93
5.5.320.0100.05018.25
5.5.310.0170.04017.91
5.5.300.0070.08017.83
5.5.290.0000.07718.10
5.5.280.0030.04318.07
5.5.270.0100.05317.92
5.5.260.0130.07318.12
5.5.250.0030.08317.91
5.5.240.0000.06717.46
5.5.230.0100.07317.43
5.5.220.0070.07317.50
5.5.210.0130.07017.21
5.5.200.0030.07317.61
5.5.190.0070.07017.58
5.5.180.0070.04317.18
5.5.160.0070.07317.28
5.5.150.0030.07317.47
5.5.140.0100.04017.44
5.5.130.0070.07717.49
5.5.120.0030.08717.43
5.5.110.0070.04317.30
5.5.100.0030.07717.36
5.5.90.0030.06017.18
5.5.80.0100.07017.48
5.5.70.0070.03317.15
5.5.60.0030.08017.32
5.5.50.0030.06017.50
5.5.40.0070.07317.49
5.5.30.0030.07717.37
5.5.20.0030.07317.36
5.5.10.0000.08317.46
5.5.00.0070.07717.14
5.4.450.0100.05019.42
5.4.440.0030.05019.28
5.4.430.0130.03719.49
5.4.420.0170.06719.58
5.4.410.0030.04019.18
5.4.400.0030.08319.19
5.4.390.0030.06319.23
5.4.380.0100.07319.00
5.4.370.0030.07719.02
5.4.360.0100.06018.98
5.4.350.0100.03719.20
5.4.340.0030.07719.03
5.4.320.0070.07719.24
5.4.310.0130.06319.00
5.4.300.0070.06719.00
5.4.290.0000.07018.95
5.4.280.0000.08019.02
5.4.270.0230.02719.17
5.4.260.0130.07019.34
5.4.250.0100.07019.00
5.4.240.0030.03718.95
5.4.230.0070.04319.23
5.4.220.0030.06718.98
5.4.210.0030.08018.98
5.4.200.0130.04319.16
5.4.190.0000.07319.01
5.4.180.0100.04019.13
5.4.170.0100.05319.18
5.4.160.0070.07318.96
5.4.150.0130.07319.01
5.4.140.0070.06016.43
5.4.130.0070.06716.56
5.4.120.0100.05716.58
5.4.110.0100.06716.55
5.4.100.0100.06716.53
5.4.90.0100.05316.62
5.4.80.0070.03316.35
5.4.70.0100.03716.60
5.4.60.0070.07316.52
5.4.50.0070.06716.63
5.4.40.0100.06716.44
5.4.30.0100.06716.48
5.4.20.0030.07016.49
5.4.10.0030.07016.49
5.4.00.0070.08716.04
5.3.290.0070.04314.66
5.3.280.0070.07714.59
5.3.270.0000.05714.48
5.3.260.0000.05014.60
5.3.250.0000.07714.65
5.3.240.0070.07014.83
5.3.230.0100.06714.62
5.3.220.0070.04314.59
5.3.210.0100.07314.64
5.3.200.0000.05314.70
5.3.190.0030.07714.70
5.3.180.0070.07014.79
5.3.170.0130.07014.57
5.3.160.0030.07314.57
5.3.150.0130.06314.64
5.3.140.0070.06714.41
5.3.130.0170.04714.67
5.3.120.0100.07314.54
5.3.110.0070.07314.55
5.3.100.0030.06714.07
5.3.90.0100.06314.00
5.3.80.0130.06714.00
5.3.70.0070.07314.03
5.3.60.0070.07014.01
5.3.50.0000.08014.09
5.3.40.0100.07313.95
5.3.30.0130.06013.90
5.3.20.0070.06013.65
5.3.10.0070.03313.62
5.3.00.0030.03713.59
5.2.170.0030.03712.18
5.2.160.0130.05012.18
5.2.150.0100.05712.18
5.2.140.0070.03012.18
5.2.130.0030.06312.18
5.2.120.0000.05312.18
5.2.110.0000.03012.18
5.2.100.0030.05312.18
5.2.90.0030.06012.18
5.2.80.0070.03012.18
5.2.70.0000.04712.18
5.2.60.0070.03012.18
5.2.50.0000.06312.18
5.2.40.0000.03712.18
5.2.30.0100.05312.18
5.2.20.0030.05712.18
5.2.10.0100.05712.18
5.2.00.0170.04712.18
5.1.60.0030.05012.18
5.1.50.0000.05712.18
5.1.40.0100.04312.18
5.1.30.0100.04712.18
5.1.20.0070.05312.18
5.1.10.0000.06012.18
5.1.00.0030.05012.18
5.0.50.0030.04712.18
5.0.40.0070.03312.18
5.0.30.0070.05312.18
5.0.20.0000.03712.18
5.0.10.0100.01712.18
5.0.00.0130.02712.18
4.4.90.0000.03712.18
4.4.80.0070.01012.18
4.4.70.0070.03012.18
4.4.60.0030.01712.18
4.4.50.0000.01712.18
4.4.40.0070.04012.18
4.4.30.0030.02012.18
4.4.20.0000.02712.18
4.4.10.0000.02712.18
4.4.00.0000.05712.18
4.3.110.0030.01712.18
4.3.100.0030.03312.18
4.3.90.0030.03012.18
4.3.80.0030.03312.18
4.3.70.0030.03012.18
4.3.60.0000.02012.18
4.3.50.0000.03012.18
4.3.40.0000.03312.18
4.3.30.0030.01312.18
4.3.20.0000.03712.18
4.3.10.0000.02012.18
4.3.00.0000.03712.18

preferences:
62.6 ms | 400 KiB | 5 Q