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(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.0090.01216.88
8.3.50.0140.00517.57
8.3.40.0040.01518.67
8.3.30.0080.00818.60
8.3.20.0120.00618.81
8.3.10.0090.00020.40
8.3.00.0040.00419.51
8.2.180.0070.01416.88
8.2.170.0140.00722.96
8.2.160.0100.00618.72
8.2.150.0030.00524.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0080.00018.76
8.2.110.0060.00319.45
8.2.100.0080.00417.99
8.2.90.0000.01019.33
8.2.80.0070.00019.21
8.2.70.0060.00317.50
8.2.60.0030.00518.04
8.2.50.0040.00418.07
8.2.40.0000.00717.98
8.2.30.0040.00417.96
8.2.20.0080.00019.34
8.2.10.0000.00717.76
8.2.00.0030.00617.63
8.1.280.0070.00725.92
8.1.270.0040.00424.66
8.1.260.0070.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00623.74
8.1.230.0120.00021.00
8.1.220.0050.00317.74
8.1.210.0060.00319.03
8.1.200.0060.00317.25
8.1.190.0000.00717.53
8.1.180.0000.00818.10
8.1.170.0040.00418.76
8.1.160.0000.00818.86
8.1.150.0040.00418.57
8.1.140.0040.00417.48
8.1.130.0000.00717.89
8.1.120.0040.00417.53
8.1.110.0050.00217.36
8.1.100.0050.00317.42
8.1.90.0040.00417.38
8.1.80.0040.00417.46
8.1.70.0030.00317.43
8.1.60.0050.00317.52
8.1.50.0000.00817.46
8.1.40.0000.00717.42
8.1.30.0000.00817.60
8.1.20.0000.00717.69
8.1.10.0030.00617.54
8.1.00.0070.00017.59
8.0.300.0000.00720.02
8.0.290.0040.00416.75
8.0.280.0070.00018.45
8.0.270.0050.00317.11
8.0.260.0030.00316.89
8.0.250.0000.00717.01
8.0.240.0000.00817.04
8.0.230.0000.00617.08
8.0.220.0040.00416.85
8.0.210.0070.00017.03
8.0.200.0040.00416.98
8.0.190.0070.00016.91
8.0.180.0040.00416.88
8.0.170.0050.00316.98
8.0.160.0030.00317.00
8.0.150.0090.00016.92
8.0.140.0040.00416.94
8.0.130.0030.00313.49
8.0.120.0000.00716.82
8.0.110.0050.00216.84
8.0.100.0040.00416.82
8.0.90.0080.00017.03
8.0.80.0080.00816.95
8.0.70.0000.00716.84
8.0.60.0030.00516.81
8.0.50.0040.00416.90
8.0.30.0070.01117.30
8.0.20.0130.00617.04
8.0.10.0000.00717.07
8.0.00.0080.01116.61
7.4.330.0020.00212.94
7.4.320.0030.00316.46
7.4.300.0030.00616.61
7.4.290.0040.00416.60
7.4.280.0070.00016.62
7.4.270.0070.00016.57
7.4.260.0050.00013.30
7.4.250.0050.00316.43
7.4.240.0070.00016.59
7.4.230.0000.00716.27
7.4.220.0160.00316.53
7.4.210.0100.01016.55
7.4.200.0070.00016.38
7.4.190.0000.00816.61
7.4.160.0040.01116.55
7.4.150.0070.01016.58
7.4.140.0130.00416.49
7.4.130.0070.01016.63
7.4.120.0140.00316.50
7.4.110.0110.00716.55
7.4.100.0060.01016.61
7.4.90.0030.01516.45
7.4.80.0110.00619.39
7.4.70.0110.00516.68
7.4.60.0030.01216.64
7.4.50.0030.00616.47
7.4.40.0060.00916.55
7.4.30.0040.01216.56
7.4.10.0000.01814.75
7.4.00.0060.01115.11
7.3.330.0030.00313.23
7.3.320.0060.00013.36
7.3.310.0000.00716.37
7.3.300.0050.00216.21
7.3.290.0030.01316.35
7.3.280.0070.00716.37
7.3.270.0110.00816.27
7.3.260.0070.01116.34
7.3.250.0130.00816.43
7.3.240.0080.00816.54
7.3.230.0040.01316.36
7.3.210.0030.01316.46
7.3.200.0140.00416.39
7.3.190.0060.01516.57
7.3.180.0130.00616.50
7.3.170.0090.00916.46
7.3.160.0120.00816.56
7.3.130.0040.01415.02
7.3.120.0050.01114.88
7.3.110.0070.01014.67
7.3.100.0100.00314.90
7.3.90.0060.01014.91
7.3.80.0100.00314.85
7.3.70.0070.00714.50
7.3.60.0070.00714.81
7.3.50.0030.01014.76
7.3.40.0000.01014.73
7.3.30.0040.00414.76
7.3.20.0030.01016.69
7.3.10.0000.00816.89
7.3.00.0040.00416.42
7.2.330.0150.00416.59
7.2.320.0150.00316.73
7.2.310.0110.00616.73
7.2.300.0120.00716.77
7.2.290.0100.00716.67
7.2.260.0090.00914.95
7.2.250.0030.01514.92
7.2.240.0090.00615.21
7.2.230.0110.00415.14
7.2.220.0000.01015.31
7.2.210.0110.00314.73
7.2.200.0000.01115.06
7.2.190.0140.00415.03
7.2.180.0030.00715.10
7.2.170.0070.00714.93
7.2.160.0040.00715.14
7.2.150.0090.00616.62
7.2.140.0030.01016.53
7.2.130.0070.01017.00
7.2.120.0060.00916.81
7.2.110.0030.00816.96
7.2.100.0090.00916.74
7.2.90.0040.01117.06
7.2.80.0070.01116.92
7.2.70.0000.01716.93
7.2.60.0070.00716.89
7.2.50.0030.01016.95
7.2.40.0060.01616.88
7.2.30.0000.00917.13
7.2.20.0130.00316.89
7.2.10.0100.00316.68
7.2.00.0030.01118.08
7.1.330.0030.00915.81
7.1.320.0070.00415.42
7.1.310.0060.00915.70
7.1.300.0030.00815.74
7.1.290.0030.00815.57
7.1.280.0000.00815.72
7.1.270.0060.00615.63
7.1.260.0050.00515.73
7.1.250.0070.01115.81
7.1.240.0120.00615.93
7.1.230.0040.00715.55
7.1.220.0030.00715.51
7.1.210.0030.01015.70
7.1.200.0030.00715.65
7.1.190.0050.00315.75
7.1.180.0040.01115.60
7.1.170.0000.01615.59
7.1.160.0070.01115.59
7.1.150.0000.01315.82
7.1.140.0040.00815.70
7.1.130.0070.00315.61
7.1.120.0000.01115.57
7.1.110.0100.00315.69
7.1.100.0070.00516.90
7.1.90.0070.00715.63
7.1.80.0030.00715.73
7.1.70.0060.00416.47
7.1.60.0070.00917.52
7.1.50.0060.01116.22
7.1.40.0000.01215.44
7.1.30.0030.01215.71
7.1.20.0000.01015.57
7.1.10.0000.01215.41
7.1.00.0050.04219.04
7.0.330.0000.01415.36
7.0.320.0030.01015.34
7.0.310.0000.00815.31
7.0.300.0060.01315.40
7.0.290.0130.00015.38
7.0.280.0030.01015.38
7.0.270.0070.00715.50
7.0.260.0060.00615.36
7.0.250.0060.00615.45
7.0.240.0030.00915.54
7.0.230.0070.00715.49
7.0.220.0000.01215.45
7.0.210.0030.01015.22
7.0.200.0420.01015.08
7.0.190.0030.00715.43
7.0.180.0070.00715.39
7.0.170.0030.00615.16
7.0.160.0050.00515.21
7.0.150.0040.01115.21
7.0.140.0060.03818.66
7.0.130.0070.00715.27
7.0.120.0090.03718.72
7.0.110.0000.01115.47
7.0.100.0030.00515.32
7.0.90.0000.01615.14
7.0.80.0120.00315.38
7.0.70.0040.00715.20
7.0.60.0080.03817.59
7.0.50.0070.02716.64
7.0.40.0080.04215.53
7.0.30.0020.03015.47
7.0.20.0070.04515.58
7.0.10.0050.04615.67
7.0.00.0050.02315.61
5.6.400.0030.00914.48
5.6.390.0090.00914.06
5.6.380.0000.00814.53
5.6.370.0080.00614.34
5.6.360.0030.01814.53
5.6.350.0070.00714.23
5.6.340.0040.00414.30
5.6.330.0030.01014.36
5.6.320.0030.00714.30
5.6.310.0060.00614.23
5.6.300.0030.01014.48
5.6.290.0000.00814.60
5.6.280.0000.04517.64
5.6.270.0000.01314.51
5.6.260.0060.00314.44
5.6.250.0000.01414.38
5.6.240.0120.00314.38
5.6.230.0060.00614.06
5.6.220.0000.00914.07
5.6.210.0110.04317.43
5.6.200.0050.02516.10
5.6.190.0050.04816.32
5.6.180.0100.02816.23
5.6.170.0050.02716.33
5.6.160.0100.02216.12
5.6.150.0070.02816.28
5.6.140.0080.02016.30
5.6.130.0050.02416.24
5.6.120.0030.02416.29
5.6.110.0040.02216.35
5.6.100.0070.02116.15
5.6.90.0100.02716.15
5.6.80.0070.01816.05
5.6.70.0040.02415.85
5.6.60.0050.02615.86
5.6.50.0050.02015.96
5.6.40.0020.02415.87
5.6.30.0080.01815.85
5.6.20.0060.02316.05
5.6.10.0020.02515.97
5.6.00.0060.02115.88
5.5.380.0090.00614.22
5.5.370.0030.00914.45
5.5.360.0030.01014.14
5.5.350.0150.02517.38
5.5.340.0100.04016.07
5.5.330.0000.04216.10
5.5.320.0080.02516.11
5.5.310.0000.02915.97
5.5.300.0020.02916.01
5.5.290.0020.02416.31
5.5.280.0060.02316.24
5.5.270.0030.02516.19
5.5.260.0050.02516.12
5.5.250.0020.02416.02
5.5.240.0030.02315.80
5.5.230.0060.02615.64
5.5.220.0030.02415.79
5.5.210.0030.02315.80
5.5.200.0090.02015.87
5.5.190.0050.02115.77
5.5.180.0030.02315.85
5.5.170.0070.01114.06
5.5.160.0010.02615.77
5.5.150.0030.02115.70
5.5.140.0050.02015.67
5.5.130.0050.02115.73
5.5.120.0030.02215.70
5.5.110.0040.02215.85
5.5.100.0040.02015.74
5.5.90.0050.04015.70
5.5.80.0050.04415.72
5.5.70.0130.02715.81
5.5.60.0020.04215.67
5.5.50.0040.04115.82
5.5.40.0130.03815.64
5.5.30.0110.03115.73
5.5.20.0020.03115.66
5.5.10.0080.02815.80
5.5.00.0100.03115.54
5.4.450.0040.02315.85
5.4.440.0050.02015.87
5.4.430.0000.02315.92
5.4.420.0040.02115.82
5.4.410.0040.02015.80
5.4.400.0050.01815.72
5.4.390.0090.01515.67
5.4.380.0050.02015.71
5.4.370.0020.02215.72
5.4.360.0040.02015.72
5.4.350.0060.02015.67
5.4.340.0030.02115.71
5.4.330.0090.00612.38
5.4.320.0030.02515.66
5.4.310.0030.02115.75
5.4.300.0020.02215.71
5.4.290.0050.02115.75
5.4.280.0020.02315.70
5.4.270.0040.02315.71
5.4.260.0070.03515.82
5.4.250.0030.02615.66
5.4.240.0050.03915.71
5.4.230.0050.03315.73
5.4.220.0070.04215.71
5.4.210.0090.02715.70
5.4.200.0080.03815.71
5.4.190.0070.02515.70
5.4.180.0050.04015.82
5.4.170.0070.04015.70
5.4.160.0080.04015.74
5.4.150.0050.04315.67
5.4.140.0050.03314.48
5.4.130.0080.03514.43
5.4.120.0050.02714.40
5.4.110.0080.02314.40
5.4.100.0060.03114.33
5.4.90.0090.03414.41
5.4.80.0100.04014.43
5.4.70.0080.03714.42
5.4.60.0080.03614.47
5.4.50.0080.03714.34
5.4.40.0040.04014.42
5.4.30.0050.04014.39
5.4.20.0030.04214.37
5.4.10.0080.03214.38
5.4.00.0100.03714.20
5.3.290.0050.01813.56
5.3.280.0020.03413.51
5.3.270.0060.02813.51
5.3.260.0030.03513.49
5.3.250.0020.04413.50
5.3.240.0020.03413.52
5.3.230.0070.03913.46
5.3.220.0100.03513.47
5.3.210.0030.02313.46
5.3.200.0070.04013.52
5.3.190.0050.03913.58
5.3.180.0030.03013.46
5.3.170.0070.03713.50
5.3.160.0050.03013.46
5.3.150.0100.03613.45
5.3.140.0030.03813.50
5.3.130.0030.02713.49
5.3.120.0030.02713.46
5.3.110.0070.04213.49
5.3.100.0050.02213.18
5.3.90.0020.02713.21
5.3.80.0080.03713.19
5.3.70.0030.02513.19
5.3.60.0050.02313.11
5.3.50.0050.02413.16
5.3.40.0100.02513.11
5.3.30.0010.02413.18
5.3.20.0030.02313.05
5.3.10.0030.02213.02
5.3.00.0030.03713.01
5.2.170.0070.03711.18
5.2.160.0100.03711.25
5.2.150.0030.05711.11
5.2.140.0030.03711.17
5.2.130.0030.03311.16
5.2.120.0070.03311.16
5.2.110.0070.06311.18
5.2.100.0100.03011.06
5.2.90.0070.05711.13
5.2.80.0070.03310.99
5.2.70.0100.06011.16
5.2.60.0070.06011.12
5.2.50.0100.03710.91
5.2.40.0070.06010.98
5.2.30.0100.03011.07
5.2.20.0070.03310.98
5.2.10.0070.03010.90
5.2.00.0200.03710.62
5.1.60.0070.0509.92
5.1.50.0100.0339.98
5.1.40.0070.04010.08
5.1.30.0100.04010.25
5.1.20.0100.02710.22
5.1.10.0000.06010.13
5.1.00.0030.05310.01
5.0.50.0030.0508.39
5.0.40.0100.0378.45
5.0.30.0070.0438.21
5.0.20.0030.0378.19
5.0.10.0070.0208.16
5.0.00.0030.0308.25
4.4.90.0000.0207.88
4.4.80.0000.0377.88
4.4.70.0000.0337.88
4.4.60.0030.0377.88
4.4.50.0000.0307.88
4.4.40.0030.0437.88
4.4.30.0000.0337.88
4.4.20.0070.0337.88
4.4.10.0000.0407.88
4.4.00.0000.0607.88
4.3.110.0030.0337.88
4.3.100.0030.0337.88
4.3.90.0030.0207.88
4.3.80.0030.0377.88
4.3.70.0030.0137.88
4.3.60.0000.0177.88
4.3.50.0070.0137.88
4.3.40.0070.0377.88
4.3.30.0000.0277.88
4.3.20.0000.0377.88
4.3.10.0030.0237.88
4.3.00.0000.0337.88

preferences:
49.8 ms | 401 KiB | 5 Q