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,'Bar'); } } class Bar extends Foo { } //print Bar::bar() . Bar::baz() . $reb= Bar::rebind(); print $reb() . " " . Bar::bar(); // 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.0120.00918.55
8.3.50.0130.00721.91
8.3.40.0150.00618.85
8.3.30.0070.01118.63
8.3.20.0080.00018.74
8.3.10.0040.00420.84
8.3.00.0000.00821.80
8.2.180.0040.01118.29
8.2.170.0070.01322.96
8.2.160.0100.00320.39
8.2.150.0080.00024.18
8.2.140.0080.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00821.04
8.2.110.0000.01020.51
8.2.100.0060.00617.91
8.2.90.0050.00319.17
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0030.00517.80
8.2.50.0080.00018.07
8.2.40.0050.00318.16
8.2.30.0040.00419.35
8.2.20.0040.00417.73
8.2.10.0030.00517.61
8.2.00.0000.00817.55
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00322.54
8.1.230.0040.00721.05
8.1.220.0040.00418.77
8.1.210.0060.00618.77
8.1.200.0060.00317.22
8.1.190.0040.00417.40
8.1.180.0000.00918.10
8.1.170.0080.00018.73
8.1.160.0030.00518.91
8.1.150.0000.00918.64
8.1.140.0040.00417.46
8.1.130.0030.00317.75
8.1.120.0000.00717.43
8.1.110.0070.00017.50
8.1.100.0070.00017.44
8.1.90.0040.00417.47
8.1.80.0000.00817.48
8.1.70.0000.00717.42
8.1.60.0040.00417.58
8.1.50.0000.00817.53
8.1.40.0040.00417.51
8.1.30.0030.00617.64
8.1.20.0030.00517.66
8.1.10.0040.00417.50
8.1.00.0040.00717.49
8.0.300.0070.00019.89
8.0.290.0080.00017.28
8.0.280.0030.00318.32
8.0.270.0070.00017.17
8.0.260.0030.00316.81
8.0.250.0070.00016.96
8.0.240.0050.00316.85
8.0.230.0000.00716.93
8.0.220.0070.00016.90
8.0.210.0000.00716.80
8.0.200.0040.00716.96
8.0.190.0030.00416.89
8.0.180.0000.00816.86
8.0.170.0040.00416.80
8.0.160.0030.00316.92
8.0.150.0000.00716.75
8.0.140.0040.00416.88
8.0.130.0060.00013.35
8.0.120.0020.00516.74
8.0.110.0040.00416.71
8.0.100.0040.00416.96
8.0.90.0030.00316.91
8.0.80.0080.00816.90
8.0.70.0050.00316.93
8.0.60.0000.00716.91
8.0.50.0060.00316.99
8.0.30.0120.00917.10
8.0.20.0100.00817.40
8.0.10.0050.00216.88
8.0.00.0120.00816.71
7.4.330.0000.00516.89
7.4.320.0080.00016.64
7.4.300.0060.00016.58
7.4.290.0000.00616.61
7.4.280.0070.00016.60
7.4.270.0030.00316.43
7.4.260.0000.00513.21
7.4.250.0040.00416.47
7.4.240.0030.00316.41
7.4.230.0030.00316.47
7.4.220.0150.00316.35
7.4.210.0090.00816.54
7.4.200.0040.00416.39
7.4.190.0030.00316.70
7.4.160.0030.01316.32
7.4.150.0070.01017.40
7.4.140.0130.00417.86
7.4.130.0130.00816.58
7.4.120.0100.00716.46
7.4.110.0070.01116.48
7.4.100.0110.00616.53
7.4.90.0130.01016.58
7.4.80.0060.01319.39
7.4.70.0090.01316.34
7.4.60.0070.01416.61
7.4.50.0070.00016.55
7.4.40.0000.01522.77
7.4.30.0160.00016.49
7.4.00.0060.01014.78
7.3.330.0030.00313.13
7.3.320.0030.00313.09
7.3.310.0000.00716.19
7.3.300.0000.00616.27
7.3.290.0070.01416.29
7.3.280.0060.00816.29
7.3.270.0070.01417.40
7.3.260.0120.00718.24
7.3.250.0080.00816.36
7.3.240.0070.01016.30
7.3.230.0110.00616.39
7.3.210.0160.00016.29
7.3.200.0090.00619.39
7.3.190.0060.01016.35
7.3.180.0110.00416.20
7.3.170.0100.00716.39
7.3.160.0120.01016.48
7.3.120.0090.00714.90
7.3.110.0110.00414.65
7.3.100.0070.00314.63
7.3.90.0060.01014.52
7.3.80.0080.00314.99
7.3.70.0030.01314.70
7.3.60.0030.01014.88
7.3.50.0080.00814.73
7.3.40.0060.00614.61
7.3.30.0100.00614.83
7.3.20.0110.00316.58
7.3.10.0030.01016.63
7.3.00.0060.00616.63
7.2.330.0040.01416.68
7.2.320.0030.01516.51
7.2.310.0070.01016.80
7.2.300.0070.01316.72
7.2.290.0090.00916.46
7.2.250.0030.01814.74
7.2.240.0030.01715.04
7.2.230.0030.01015.10
7.2.220.0130.00315.10
7.2.210.0100.00714.94
7.2.200.0120.00415.25
7.2.190.0060.00615.02
7.2.180.0080.00815.07
7.2.170.0000.01214.99
7.2.00.0090.00619.45
7.1.330.0120.00315.71
7.1.320.0070.00715.80
7.1.310.0130.00615.80
7.1.300.0000.01315.56
7.1.290.0040.00815.81
7.1.280.0100.00315.69
7.1.270.0100.00315.79
7.1.260.0000.01415.37
7.1.100.0030.00617.88
7.1.70.0040.00417.02
7.1.60.0100.01319.17
7.1.50.0100.01416.73
7.1.00.0030.03322.36
7.0.200.0030.00316.70
7.0.140.0030.07322.16
7.0.100.0000.05020.07
7.0.90.0000.05319.91
7.0.80.0070.04320.00
7.0.70.0100.04019.94
7.0.60.0030.04319.95
7.0.50.0000.04720.37
7.0.40.0000.04720.05
7.0.30.0130.05720.17
7.0.20.0030.04320.00
7.0.10.0000.04320.16
7.0.00.0030.04320.05
5.6.280.0030.07321.11
5.6.250.0030.04320.68
5.6.240.0200.03320.68
5.6.230.0000.05020.58
5.6.220.0070.04020.63
5.6.210.0100.03720.79
5.6.200.0070.04721.09
5.6.190.0030.04320.97
5.6.180.0070.04021.09
5.6.170.0030.05721.03
5.6.160.0070.04021.09
5.6.150.0030.04321.14
5.6.140.0000.04721.05
5.6.130.0030.04321.12
5.6.120.0070.04721.03
5.6.110.0100.04021.05
5.6.100.0130.06021.03
5.6.90.0100.03721.00
5.6.80.0000.04020.50
5.6.70.0030.04020.41
5.6.60.0070.04020.45
5.6.50.0100.08020.46
5.6.40.0070.06320.41
5.6.30.0100.07320.30
5.6.20.0100.07320.50
5.6.10.0130.05020.45
5.6.00.0070.07320.46
5.5.380.0170.03020.47
5.5.370.0070.04020.39
5.5.360.0070.04720.36
5.5.350.0000.04720.44
5.5.340.0130.05720.78
5.5.330.0100.03720.82
5.5.320.0170.03020.82
5.5.310.0030.05020.89
5.5.300.0000.04320.80
5.5.290.0030.04320.80
5.5.280.0100.03720.82
5.5.270.0070.04020.88
5.5.260.0000.05020.89
5.5.250.0070.03320.66
5.5.240.0000.05320.31
5.5.230.0100.03320.17
5.5.220.0030.04020.32
5.5.210.0030.05720.25
5.5.200.0030.07320.27
5.5.190.0130.07020.25
5.5.180.0070.04020.10
5.5.160.0100.07720.25
5.5.150.0070.08020.12
5.5.140.0130.05020.16
5.5.130.0130.05020.16
5.5.120.0130.07020.29
5.5.110.0070.04720.26
5.5.100.0070.08320.09
5.5.90.0000.06320.11
5.5.80.0100.04320.18
5.5.70.0070.04320.14
5.5.60.0100.07320.14
5.5.50.0030.08019.95
5.5.40.0200.06320.06
5.5.30.0030.04720.17
5.5.20.0070.05720.07
5.5.10.0070.08020.07
5.5.00.0000.04019.98
5.4.450.0070.04019.46
5.4.440.0070.03719.37
5.4.430.0100.03319.37
5.4.420.0100.03019.27
5.4.410.0070.03719.33
5.4.400.0070.03718.88
5.4.390.0030.03718.91
5.4.380.0100.03019.21
5.4.370.0030.06719.20
5.4.360.0170.07318.95
5.4.350.0070.03719.08
5.4.340.0170.06718.85
5.4.320.0030.04719.16
5.4.310.0100.07319.12
5.4.300.0030.07719.21
5.4.290.0130.05719.04
5.4.280.0100.07019.15
5.4.270.0030.08019.12
5.4.260.0030.08019.25
5.4.250.0070.07719.20
5.4.240.0070.07319.04
5.4.230.0070.05319.09
5.4.220.0100.07018.83
5.4.210.0100.07019.12
5.4.200.0070.06718.87
5.4.190.0070.06719.03
5.4.180.0070.07718.87
5.4.170.0030.08018.84
5.4.160.0030.04319.11
5.4.150.0070.03319.03
5.4.140.0030.07316.41
5.4.130.0030.07016.25
5.4.120.0030.07316.25
5.4.110.0030.06716.38
5.4.100.0070.07316.38
5.4.90.0100.06316.37
5.4.80.0030.07016.52
5.4.70.0030.07316.31
5.4.60.0130.06716.45
5.4.50.0130.05016.44
5.4.40.0070.07316.46
5.4.30.0070.05716.42
5.4.20.0130.05316.44
5.4.10.0000.07716.41
5.4.00.0070.07315.72
5.3.290.0100.07714.69
5.3.280.0070.08014.65
5.3.270.0030.08014.53
5.3.260.0130.02714.59
5.3.250.0000.08014.54
5.3.240.0100.06014.62
5.3.230.0130.02714.59
5.3.220.0070.07314.68
5.3.210.0070.07314.56
5.3.200.0000.08314.49
5.3.190.0030.05714.62
5.3.180.0100.07314.57
5.3.170.0100.07014.53
5.3.160.0070.07314.67
5.3.150.0070.07314.50
5.3.140.0170.04014.62
5.3.130.0030.04014.48
5.3.120.0030.08314.52
5.3.110.0070.07314.55
5.3.100.0100.04314.13
5.3.90.0070.07314.11
5.3.80.0070.05713.91
5.3.70.0070.04013.95
5.3.60.0070.07014.00
5.3.50.0200.03713.83
5.3.40.0100.06714.05
5.3.30.0130.06713.97
5.3.20.0100.06713.81
5.3.10.0000.07713.76
5.3.00.0170.05713.57
5.2.170.0100.03012.98
5.2.160.0100.06012.98
5.2.150.0070.03712.98
5.2.140.0030.06712.98
5.2.130.0030.06012.98
5.2.120.0000.04012.98
5.2.110.0070.06012.98
5.2.100.0000.06712.98
5.2.90.0130.05312.98
5.2.80.0070.05012.98
5.2.70.0000.04012.98
5.2.60.0000.06312.98
5.2.50.0070.03712.98
5.2.40.0070.03712.98
5.2.30.0030.03012.98
5.2.20.0030.05312.98
5.2.10.0100.05312.98
5.2.00.0070.06012.98
5.1.60.0000.04312.98
5.1.50.0100.04712.98
5.1.40.0070.03712.98
5.1.30.0000.05312.98
5.1.20.0030.04712.98
5.1.10.0000.03312.98
5.1.00.0070.05312.98
5.0.50.0130.03312.98
5.0.40.0030.04712.98
5.0.30.0070.05712.98
5.0.20.0070.04312.98
5.0.10.0070.03312.98
5.0.00.0030.06012.98
4.4.90.0030.03312.98
4.4.80.0070.03012.98
4.4.70.0030.03712.98
4.4.60.0070.03312.98
4.4.50.0000.03712.98
4.4.40.0070.05012.98
4.4.30.0030.03012.98
4.4.20.0030.01712.98
4.4.10.0000.02712.98
4.4.00.0000.05312.98
4.3.110.0070.03312.98
4.3.100.0030.03312.98
4.3.90.0030.02712.98
4.3.80.0000.05712.98
4.3.70.0000.03312.98
4.3.60.0000.02312.98
4.3.50.0030.02312.98
4.3.40.0000.04012.98
4.3.30.0070.03012.98
4.3.20.0070.03012.98
4.3.10.0030.03012.98
4.3.00.0070.03012.98

preferences:
53.03 ms | 400 KiB | 5 Q