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($self); } } 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.00316.63
8.3.50.0060.01117.40
8.3.40.0170.00318.82
8.3.30.0070.00718.84
8.3.20.0040.00418.77
8.3.10.0000.00818.86
8.3.00.0030.00519.26
8.2.180.0120.00316.88
8.2.170.0110.00422.96
8.2.160.0080.00818.93
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0070.00020.71
8.2.110.0060.00621.05
8.2.100.0060.00617.97
8.2.90.0050.00319.02
8.2.80.0000.00817.97
8.2.70.0030.00617.75
8.2.60.0060.00317.93
8.2.50.0050.00318.07
8.2.40.0080.00318.21
8.2.30.0080.00017.95
8.2.20.0040.00417.78
8.2.10.0030.00517.73
8.2.00.0030.00617.79
8.1.280.0110.00425.92
8.1.270.0080.00024.66
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0000.00921.34
8.1.230.0110.00017.42
8.1.220.0030.00517.79
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0000.00817.35
8.1.180.0000.01218.10
8.1.170.0030.00518.79
8.1.160.0000.00718.97
8.1.150.0000.00818.51
8.1.140.0040.00417.45
8.1.130.0000.00717.75
8.1.120.0040.00417.46
8.1.110.0040.00417.32
8.1.100.0000.00817.36
8.1.90.0000.00717.52
8.1.80.0050.00217.37
8.1.70.0070.00017.45
8.1.60.0030.00617.55
8.1.50.0050.00317.48
8.1.40.0060.00317.47
8.1.30.0040.00417.64
8.1.20.0040.00417.72
8.1.10.0040.00417.63
8.1.00.0000.00717.49
8.0.300.0070.00018.77
8.0.290.0050.00216.75
8.0.280.0080.00018.44
8.0.270.0000.00717.25
8.0.260.0000.00616.86
8.0.250.0050.00316.93
8.0.240.0000.00717.07
8.0.230.0070.00017.02
8.0.220.0030.00516.93
8.0.210.0030.00317.01
8.0.200.0000.00716.89
8.0.190.0060.00316.98
8.0.180.0100.00016.88
8.0.170.0040.00416.94
8.0.160.0000.00717.08
8.0.150.0090.00017.00
8.0.140.0000.00816.79
8.0.130.0060.00013.34
8.0.120.0040.00416.94
8.0.110.0060.00316.84
8.0.100.0070.00016.86
8.0.90.0000.00817.07
8.0.80.0090.00616.98
8.0.70.0000.00816.94
8.0.60.0070.00016.77
8.0.50.0020.00516.93
8.0.30.0060.01517.22
8.0.20.0110.00817.15
8.0.10.0000.00716.94
8.0.00.0110.00716.77
7.4.330.0030.00312.88
7.4.320.0030.00316.59
7.4.300.0030.00316.40
7.4.290.0000.00716.35
7.4.280.0040.00416.64
7.4.270.0040.00416.54
7.4.260.0050.00013.25
7.4.250.0000.00716.57
7.4.240.0020.00516.58
7.4.230.0000.00716.41
7.4.220.0040.01516.55
7.4.210.0060.00816.45
7.4.200.0030.00316.31
7.4.190.0000.00716.56
7.4.160.0060.00916.61
7.4.150.0090.00916.43
7.4.140.0110.00616.47
7.4.130.0100.01016.64
7.4.120.0080.01016.50
7.4.110.0140.00416.41
7.4.100.0040.01316.47
7.4.90.0070.01016.61
7.4.80.0060.00916.59
7.4.70.0100.00616.59
7.4.60.0120.00316.46
7.4.50.0060.00616.19
7.4.40.0120.00316.43
7.4.30.0070.01016.55
7.4.00.0080.00914.92
7.3.330.0030.00313.40
7.3.320.0000.00613.24
7.3.310.0000.00716.41
7.3.300.0030.00316.24
7.3.290.0040.01116.35
7.3.280.0090.00716.35
7.3.270.0120.00616.32
7.3.260.0030.01316.57
7.3.250.0120.01016.50
7.3.240.0130.00716.43
7.3.230.0000.01716.55
7.3.210.0110.00716.54
7.3.200.0060.01619.39
7.3.190.0100.01016.47
7.3.180.0100.00716.27
7.3.170.0040.01516.32
7.3.160.0050.01116.44
7.3.120.0100.00714.61
7.3.110.0000.01514.93
7.3.100.0100.00014.92
7.3.90.0040.01114.82
7.3.80.0160.00014.83
7.3.70.0060.00914.82
7.3.60.0090.00014.85
7.3.50.0140.00014.66
7.3.40.0040.01414.81
7.3.30.0060.00314.65
7.3.20.0060.00816.75
7.3.10.0000.00916.55
7.3.00.0030.01016.61
7.2.330.0030.01516.32
7.2.320.0090.00916.57
7.2.310.0070.01416.59
7.2.300.0150.00616.32
7.2.290.0060.01016.63
7.2.250.0030.01515.07
7.2.240.0100.00714.67
7.2.230.0100.00615.25
7.2.220.0040.01114.85
7.2.210.0030.00714.72
7.2.200.0080.00814.93
7.2.190.0070.00715.00
7.2.180.0030.01714.95
7.2.170.0130.00614.76
7.2.60.0040.01416.56
7.2.00.0040.00719.16
7.1.330.0040.01115.46
7.1.320.0030.01015.50
7.1.310.0060.00615.86
7.1.300.0070.00715.54
7.1.290.0090.00915.43
7.1.280.0090.00915.76
7.1.270.0040.01115.41
7.1.260.0030.01015.71
7.1.200.0040.00415.46
7.1.100.0000.00918.14
7.1.70.0070.00717.03
7.1.60.0090.01519.40
7.1.50.0030.01616.92
7.1.00.0030.07722.40
7.0.200.0040.00416.76
7.0.140.0100.06322.08
7.0.120.0000.03322.16
7.0.60.0070.07319.91
7.0.50.0170.06717.85
7.0.40.0130.06017.75
7.0.30.0000.07317.80
7.0.20.0070.04317.76
7.0.10.0030.04317.85
7.0.00.0070.04017.85
5.6.280.0030.07320.83
5.6.210.0130.06320.52
5.6.200.0030.08718.15
5.6.190.0100.07718.16
5.6.180.0130.03318.16
5.6.170.0030.05018.25
5.6.160.0070.04718.12
5.6.150.0000.05718.20
5.6.140.0030.04318.28
5.6.130.0070.04318.19
5.6.120.0000.04718.23
5.6.110.0070.04318.21
5.6.100.0030.08018.27
5.6.90.0130.05018.25
5.6.80.0000.08317.62
5.6.70.0000.08717.56
5.6.60.0070.06717.53
5.6.50.0100.06317.54
5.6.40.0100.07317.52
5.6.30.0070.04317.52
5.6.20.0100.06317.51
5.6.10.0100.07317.53
5.6.00.0170.03317.50
5.5.350.0300.06720.34
5.5.340.0100.06317.99
5.5.330.0070.08017.95
5.5.320.0100.06018.08
5.5.310.0070.05317.98
5.5.300.0100.05718.05
5.5.290.0070.08018.01
5.5.280.0030.05317.99
5.5.270.0170.03018.00
5.5.260.0100.05317.98
5.5.250.0070.04717.80
5.5.240.0130.07317.34
5.5.230.0070.07317.37
5.5.220.0130.04717.35
5.5.210.0000.06717.37
5.5.200.0100.07717.34
5.5.190.0000.05317.30
5.5.180.0030.08317.44
5.5.160.0000.04317.36
5.5.150.0070.07717.41
5.5.140.0100.08017.36
5.5.130.0100.07017.34
5.5.120.0000.04317.29
5.5.110.0070.04017.29
5.5.100.0200.04717.31
5.5.90.0100.04317.24
5.5.80.0030.08317.25
5.5.70.0100.04717.23
5.5.60.0100.07717.22
5.5.50.0130.07317.32
5.5.40.0070.07717.33
5.5.30.0070.06717.20
5.5.20.0070.08017.21
5.5.10.0070.07017.22
5.5.00.0070.06717.17
5.4.450.0030.04319.43
5.4.440.0130.03319.38
5.4.430.0030.04019.43
5.4.420.0000.08719.37
5.4.410.0070.04319.15
5.4.400.0200.06019.13
5.4.390.0130.07019.27
5.4.380.0130.04719.05
5.4.370.0100.05019.29
5.4.360.0070.05018.96
5.4.350.0070.06019.04
5.4.340.0000.05718.96
5.4.320.0070.04019.27
5.4.310.0070.05719.04
5.4.300.0200.07019.05
5.4.290.0130.06318.89
5.4.280.0100.07718.95
5.4.270.0000.05019.04
5.4.260.0130.07019.13
5.4.250.0100.07318.88
5.4.240.0070.05319.12
5.4.230.0170.06718.95
5.4.220.0030.08719.02
5.4.210.0130.07019.12
5.4.200.0100.06719.13
5.4.190.0070.05019.02
5.4.180.0070.07319.13
5.4.170.0130.07019.11
5.4.160.0100.05719.02
5.4.150.0030.08018.98
5.4.140.0170.06016.36
5.4.130.0100.07016.43
5.4.120.0230.05716.44
5.4.110.0130.04316.46
5.4.100.0070.05316.45
5.4.90.0070.04716.56
5.4.80.0100.05716.44
5.4.70.0070.03716.42
5.4.60.0100.07016.41
5.4.50.0070.03716.35
5.4.40.0070.05716.46
5.4.30.0100.06016.32
5.4.20.0130.04316.54
5.4.10.0030.05316.38
5.4.00.0100.07015.80
5.3.290.0030.04014.66
5.3.280.0030.05714.70
5.3.270.0000.08014.64
5.3.260.0030.04314.82
5.3.250.0070.07314.83
5.3.240.0030.07014.64
5.3.230.0100.07714.66
5.3.220.0030.05314.41
5.3.210.0030.05314.53
5.3.200.0070.07714.60
5.3.190.0070.05314.57
5.3.180.0130.06714.61
5.3.170.0030.06314.59
5.3.160.0000.08014.57
5.3.150.0100.07014.59
5.3.140.0070.07714.77
5.3.130.0100.07714.76
5.3.120.0030.04014.54
5.3.110.0070.07714.39
5.3.100.0030.06014.07
5.3.90.0070.03714.09
5.3.80.0030.06314.06
5.3.70.0130.04314.05
5.3.60.0070.06013.98
5.3.50.0030.04014.00
5.3.40.0100.04013.98
5.3.30.0130.06713.90
5.3.20.0130.04013.76
5.3.10.0030.06013.71
5.3.00.0030.07313.66
5.2.170.0030.06011.24
5.2.160.0070.06311.14
5.2.150.0130.04711.36
5.2.140.0100.04011.04
5.2.130.0100.04711.32
5.2.120.0030.04711.14
5.2.110.0030.03011.07
5.2.100.0030.05311.07
5.2.90.0000.04011.08
5.2.80.0030.04311.14
5.2.70.0100.05711.00
5.2.60.0000.05711.05
5.2.50.0130.05010.91
5.2.40.0070.05311.05
5.2.30.0000.03711.01
5.2.20.0000.04711.06
5.2.10.0030.03310.80
5.2.00.0030.02710.57
5.1.60.0030.0579.83
5.1.50.0030.0539.91
5.1.40.0070.0409.82
5.1.30.0030.05710.34
5.1.20.0070.03010.40
5.1.10.0130.04310.06
5.1.00.0070.05310.04
5.0.50.0030.0478.76
5.0.40.0070.0338.50
5.0.30.0000.0438.27
5.0.20.0030.0208.11
5.0.10.0030.0478.14
5.0.00.0000.0678.13
4.4.90.0000.0407.96
4.4.80.0030.0337.96
4.4.70.0030.0377.96
4.4.60.0030.0337.96
4.4.50.0000.0377.96
4.4.40.0030.0377.96
4.4.30.0070.0237.96
4.4.20.0000.0407.96
4.4.10.0070.0307.96
4.4.00.0030.0507.96
4.3.110.0030.0377.96
4.3.100.0000.0237.96
4.3.90.0000.0177.96
4.3.80.0000.0507.96
4.3.70.0030.0337.96
4.3.60.0070.0337.96
4.3.50.0030.0237.96
4.3.40.0030.0537.96
4.3.30.0000.0277.96
4.3.20.0000.0407.96
4.3.10.0030.0277.96
4.3.00.0000.0377.96

preferences:
41.47 ms | 401 KiB | 5 Q