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.40.0060.00919.02
8.3.30.0040.01118.71
8.3.20.0080.00018.74
8.3.10.0030.00521.02
8.3.00.0040.00421.77
8.2.170.0100.00722.96
8.2.160.0070.01320.53
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00320.98
8.2.110.0070.00320.43
8.2.100.0040.00817.84
8.2.90.0000.00819.17
8.2.80.0040.00418.03
8.2.70.0060.00317.50
8.2.60.0060.00317.80
8.2.50.0050.00318.07
8.2.40.0040.00418.16
8.2.30.0070.00021.21
8.2.20.0000.00817.71
8.2.10.0000.00817.63
8.2.00.0000.00717.68
8.1.270.0080.00023.99
8.1.260.0110.00726.35
8.1.250.0080.00028.09
8.1.240.0060.00322.55
8.1.230.0070.00420.89
8.1.220.0030.00518.77
8.1.210.0040.00419.03
8.1.200.0000.01017.35
8.1.190.0040.00417.66
8.1.180.0040.00418.10
8.1.170.0040.00418.64
8.1.160.0070.00018.89
8.1.150.0030.00518.52
8.1.140.0060.00317.53
8.1.130.0000.00717.82
8.1.120.0040.00417.51
8.1.110.0040.00417.39
8.1.100.0040.00417.46
8.1.90.0040.00417.37
8.1.80.0000.00717.48
8.1.70.0000.00717.34
8.1.60.0030.00817.51
8.1.50.0040.00417.51
8.1.40.0080.00317.46
8.1.30.0050.00317.62
8.1.20.0040.00417.58
8.1.10.0050.00217.60
8.1.00.0040.00417.44
8.0.300.0000.00719.89
8.0.290.0040.00416.93
8.0.280.0040.00418.46
8.0.270.0000.00717.13
8.0.260.0000.00718.36
8.0.250.0040.00417.05
8.0.240.0020.01016.95
8.0.230.0050.00316.95
8.0.220.0070.00016.88
8.0.210.0000.00716.84
8.0.200.0030.00317.00
8.0.190.0070.00017.03
8.0.180.0000.00716.91
8.0.170.0000.00716.87
8.0.160.0070.00016.82
8.0.150.0030.00616.85
8.0.140.0040.00416.93
8.0.130.0060.00013.39
8.0.120.0060.00316.81
8.0.110.0050.00216.77
8.0.100.0000.00717.07
8.0.90.0050.00216.80
8.0.80.0120.00316.94
8.0.70.0000.00816.89
8.0.60.0030.00516.93
8.0.50.0000.00817.01
8.0.30.0070.01517.00
8.0.20.0110.00917.43
8.0.10.0080.00017.02
8.0.00.0150.00616.82
7.4.330.0050.00016.65
7.4.320.0000.00616.63
7.4.300.0030.00316.57
7.4.290.0000.00716.55
7.4.280.0040.00416.39
7.4.270.0070.00016.51
7.4.260.0030.00313.30
7.4.250.0040.00416.57
7.4.240.0000.00816.61
7.4.230.0040.00416.48
7.4.220.0100.01016.64
7.4.210.0110.00616.64
7.4.200.0000.00716.67
7.4.190.0030.00316.57
7.4.160.0030.01316.58
7.4.150.0070.01017.40
7.4.140.0090.00917.86
7.4.130.0100.01016.63
7.4.120.0080.00816.60
7.4.110.0110.00716.54
7.4.100.0090.00916.57
7.4.90.0090.00916.37
7.4.80.0120.00619.39
7.4.70.0090.01216.70
7.4.60.0040.01116.54
7.4.50.0030.00616.63
7.4.40.0030.01322.77
7.4.30.0080.00816.43
7.4.10.0090.00914.67
7.4.00.0050.01215.00
7.3.330.0000.00513.34
7.3.320.0000.00513.31
7.3.310.0070.00016.20
7.3.300.0030.00316.25
7.3.290.0040.01516.37
7.3.280.0100.00916.34
7.3.270.0060.01217.40
7.3.260.0160.00418.24
7.3.250.0140.00716.56
7.3.240.0060.01116.56
7.3.230.0100.00716.39
7.3.210.0100.00716.59
7.3.200.0080.00819.39
7.3.190.0100.01316.55
7.3.180.0000.01616.50
7.3.170.0030.01416.66
7.3.160.0060.00916.40
7.3.130.0090.00914.87
7.3.120.0100.00314.78
7.3.110.0080.01015.06
7.3.100.0060.00714.92
7.3.90.0080.00414.88
7.3.80.0080.00614.76
7.3.70.0080.00414.69
7.3.60.0100.00114.76
7.3.50.0090.00714.65
7.3.40.0040.00714.92
7.3.30.0050.00714.89
7.3.20.0090.00616.64
7.3.10.0130.00416.63
7.3.00.0030.00916.57
7.2.330.0150.00316.34
7.2.320.0030.01516.60
7.2.310.0110.00716.50
7.2.300.0090.00916.55
7.2.290.0110.00716.38
7.2.260.0040.01315.15
7.2.250.0070.00915.10
7.2.240.0070.00915.17
7.2.230.0060.00614.93
7.2.220.0080.00714.87
7.2.210.0050.00715.04
7.2.200.0050.01114.94
7.2.190.0020.01515.00
7.2.180.0080.00615.12
7.2.170.0060.00715.04
7.2.160.0050.00814.91
7.2.150.0030.00916.80
7.2.140.0050.00816.87
7.2.130.0040.01116.98
7.2.120.0070.00516.84
7.2.110.0020.00917.00
7.2.100.0070.00816.88
7.2.90.0060.00716.95
7.2.80.0080.00517.02
7.2.70.0070.00316.91
7.2.60.0050.01116.82
7.2.50.0050.00916.96
7.2.40.0050.00916.87
7.2.30.0090.00816.85
7.2.20.0060.00816.81
7.2.10.0060.00816.84
7.2.00.0030.01017.72
7.1.330.0070.00915.70
7.1.320.0050.00715.73
7.1.310.0040.00815.75
7.1.300.0040.01215.85
7.1.290.0050.00915.68
7.1.280.0040.01215.75
7.1.270.0060.00315.75
7.1.260.0050.01015.82
7.1.250.0070.00615.77
7.1.240.0080.00315.65
7.1.230.0070.00815.71
7.1.220.0050.00715.79
7.1.210.0030.00915.60
7.1.200.0080.00215.69
7.1.190.0050.00515.71
7.1.180.0030.00815.83
7.1.170.0040.01115.73
7.1.160.0050.00915.69
7.1.150.0050.00715.61
7.1.140.0030.00815.69
7.1.130.0080.00515.75
7.1.120.0080.00615.86
7.1.110.0070.00515.68
7.1.100.0070.00716.57
7.1.90.0110.00315.79
7.1.80.0050.00515.76
7.1.70.0030.01016.15
7.1.60.0050.00916.90
7.1.50.0060.01115.97
7.1.40.0070.00815.56
7.1.30.0050.00515.52
7.1.20.0080.00615.53
7.1.10.0070.00815.80
7.1.00.0080.01318.04
7.0.330.0030.00815.26
7.0.320.0050.00615.29
7.0.310.0030.01015.36
7.0.300.0030.00915.21
7.0.290.0050.00815.26
7.0.280.0030.00815.15
7.0.270.0020.01015.22
7.0.260.0050.00715.33
7.0.250.0030.00815.38
7.0.240.0040.00915.47
7.0.230.0090.00415.31
7.0.220.0070.00715.31
7.0.210.0030.00715.13
7.0.200.0040.00715.81
7.0.190.0080.00315.28
7.0.180.0070.00815.41
7.0.170.0010.01115.48
7.0.160.0050.00715.37
7.0.150.0040.00915.23
7.0.140.0070.02717.67
7.0.130.0050.00715.29
7.0.120.0040.01015.35
7.0.110.0030.00915.35
7.0.100.0060.00815.30
7.0.90.0080.00515.53
7.0.80.0050.00715.41
7.0.70.0060.00615.58
7.0.60.0080.02916.81
7.0.50.0080.02816.34
7.0.40.0030.03415.61
7.0.30.0160.01415.65
7.0.20.0110.02015.54
7.0.10.0100.03615.68
7.0.00.0010.02315.58
5.6.400.0020.00714.24
5.6.390.0080.00514.40
5.6.380.0050.00614.32
5.6.370.0080.00614.40
5.6.360.0070.00714.32
5.6.350.0040.00814.61
5.6.340.0030.00914.44
5.6.330.0080.00814.36
5.6.320.0120.00314.30
5.6.310.0070.00714.25
5.6.300.0070.00814.17
5.6.290.0100.00714.36
5.6.280.0040.03216.74
5.6.270.0040.00614.19
5.6.260.0080.00714.24
5.6.250.0050.01014.36
5.6.240.0050.01114.37
5.6.230.0050.00714.35
5.6.220.0040.01114.34
5.6.210.0070.02116.29
5.6.200.0020.02115.63
5.6.190.0050.02116.33
5.6.180.0150.02716.41
5.6.170.0180.02816.36
5.6.160.0110.02516.30
5.6.150.0060.03415.62
5.6.140.0040.01915.64
5.6.130.0080.02615.49
5.6.120.0080.03116.64
5.6.110.0080.03216.44
5.6.100.0090.02916.62
5.6.90.0060.02316.53
5.6.80.0050.03316.31
5.6.70.0090.03216.21
5.6.60.0010.01014.04
5.6.50.0100.00314.20
5.6.40.0070.00514.24
5.6.30.0070.00614.34
5.6.20.0090.00514.25
5.6.10.0090.00314.26
5.6.00.0080.00714.13
5.5.380.0070.00914.25
5.5.370.0060.00714.25
5.5.360.0020.01314.40
5.5.350.0140.02316.28
5.5.340.0030.01915.53
5.5.330.0050.03316.33
5.5.320.0110.02216.40
5.5.310.0130.03116.36
5.5.300.0070.01615.46
5.5.290.0070.02415.51
5.5.280.0030.03716.54
5.5.270.0060.03416.40
5.5.260.0080.02016.41
5.5.250.0040.03216.29
5.5.240.0040.01616.32
5.5.230.0060.00614.05
5.5.220.0030.00914.19
5.5.210.0060.00613.97
5.5.200.0040.01014.19
5.5.190.0080.00614.39
5.5.180.0090.00514.15
5.5.170.0080.00514.31
5.5.160.0060.00614.13
5.5.150.0070.00914.34
5.5.140.0020.01114.16
5.5.130.0040.00614.15
5.5.120.0070.00414.27
5.5.110.0060.00714.27
5.5.100.0030.00914.28
5.5.90.0020.01314.29
5.5.80.0020.01114.35
5.5.70.0080.00514.09
5.5.60.0050.00814.02
5.5.50.0000.01214.32
5.5.40.0080.00314.25
5.5.30.0080.00514.13
5.5.20.0050.00714.01
5.5.10.0030.00914.19
5.5.00.0030.01114.05
5.4.450.0520.01914.28
5.4.440.0520.01714.43
5.4.430.0580.01814.28
5.4.420.0520.01914.28
5.4.410.0500.01414.19
5.4.400.0570.01914.18
5.4.390.0470.01714.17
5.4.380.0490.01714.06
5.4.370.0580.01914.15
5.4.360.0460.01814.24
5.4.350.0530.01914.15
5.4.340.0450.01714.18
5.4.330.0040.00611.74
5.4.320.0580.01714.18
5.4.310.0600.01814.08
5.4.300.0540.02014.29
5.4.290.0510.01614.16
5.4.280.0570.01714.08
5.4.270.0550.01914.09
5.4.260.0560.01714.15
5.4.250.0560.01814.20
5.4.240.0480.01814.06
5.4.230.0560.01714.18
5.4.220.0610.01814.18
5.4.210.0560.01914.14
5.4.200.0570.02314.26
5.4.190.0480.01614.06
5.4.180.0640.01914.21
5.4.170.0510.02114.10
5.4.160.0560.01814.16
5.4.150.0510.01714.19
5.4.140.0480.01813.31
5.4.130.0490.01413.36
5.4.120.0500.01513.20
5.4.110.0530.01613.39
5.4.100.0560.01913.20
5.4.90.0490.01413.30
5.4.80.0520.01313.36
5.4.70.0480.01613.31
5.4.60.0490.01813.24
5.4.50.0500.01813.26
5.4.40.0600.01713.35
5.4.30.0570.01913.34
5.4.20.0550.02113.32
5.4.10.0580.01813.25
5.4.00.0580.01413.08
5.3.290.0510.01712.54
5.3.280.0510.01612.47
5.3.270.0400.01912.49
5.3.260.0560.01612.50
5.3.250.0600.01812.55
5.3.240.0560.01712.49
5.3.230.0570.01612.50
5.3.220.0490.01412.52
5.3.210.0530.01712.46
5.3.200.0520.01612.48
5.3.190.0530.01312.49
5.3.180.0570.01612.52
5.3.170.0530.01712.52
5.3.160.0530.02012.50
5.3.150.0570.01512.51
5.3.140.0540.02112.48
5.3.130.0560.01512.48
5.3.120.0550.01612.49
5.3.110.0490.01612.52
5.3.100.0570.01312.35
5.3.90.0550.01412.32
5.3.80.0630.01812.35
5.3.70.0610.01612.28
5.3.60.0510.01512.38
5.3.50.0560.01312.26
5.3.40.0520.01612.31
5.3.30.0570.02212.30
5.3.20.0500.01712.20
5.3.10.0610.01812.19
5.3.00.0570.01312.22
5.2.170.1270.03011.09
5.2.160.1270.03011.07
5.2.150.1130.02711.15
5.2.140.1170.03311.23
5.2.130.1200.03311.02
5.2.120.1100.03011.03
5.2.110.1270.04011.05
5.2.100.1230.03011.02
5.2.90.1400.03311.15
5.2.80.1200.03011.00
5.2.70.1130.03311.02
5.2.60.1130.03011.20
5.2.50.1370.03711.09
5.2.40.0970.02310.95
5.2.30.1100.04010.86
5.2.20.1070.02310.91
5.2.10.1130.03710.76
5.2.00.1100.03710.86
5.1.60.1100.03310.07
5.1.50.1030.03310.00
5.1.40.1130.03010.10
5.1.30.0970.03010.31
5.1.20.1070.03010.43
5.1.10.1100.02710.22
5.1.00.1030.0379.97
5.0.50.0430.0208.55
5.0.40.0630.0308.30
5.0.30.0600.0508.11
5.0.20.0530.0338.19
5.0.10.0500.0238.15
5.0.00.0500.0378.14
4.4.90.0430.0208.02
4.4.80.0670.0278.02
4.4.70.0600.0138.02
4.4.60.0600.0208.02
4.4.50.0530.0138.02
4.4.40.0570.0208.02
4.4.30.0600.0178.02
4.4.20.0530.0138.02
4.4.10.0570.0108.02
4.4.00.0570.0338.02
4.3.110.0600.0178.02
4.3.100.0570.0238.02
4.3.90.0570.0108.02
4.3.80.0500.0278.02
4.3.70.0500.0178.02
4.3.60.0600.0208.02
4.3.50.0500.0138.02
4.3.40.0530.0208.02
4.3.30.0270.0138.02
4.3.20.0330.0178.02
4.3.10.0230.0138.02
4.3.00.0270.0138.02

preferences:
43.27 ms | 400 KiB | 5 Q