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); } } 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.0040.01116.63
8.3.50.0100.00821.99
8.3.40.0140.00718.82
8.3.30.0070.00719.04
8.3.20.0040.00420.41
8.3.10.0000.00823.51
8.3.00.0080.00019.25
8.2.180.0140.00718.29
8.2.170.0120.00322.96
8.2.160.0080.00620.58
8.2.150.0040.01224.18
8.2.140.0120.00624.66
8.2.130.0070.00026.16
8.2.120.0040.00420.70
8.2.110.0060.00322.00
8.2.100.0030.01017.91
8.2.90.0080.00019.17
8.2.80.0040.00417.97
8.2.70.0080.00417.50
8.2.60.0050.00318.04
8.2.50.0040.00418.07
8.2.40.0060.00318.03
8.2.30.0070.00018.30
8.2.20.0000.00817.71
8.2.10.0040.00417.95
8.2.00.0000.00817.75
8.1.280.0070.00725.92
8.1.270.0120.00624.02
8.1.260.0190.00326.35
8.1.250.0080.00028.09
8.1.240.0040.00423.96
8.1.230.0040.00819.09
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0000.00817.35
8.1.190.0000.00817.23
8.1.180.0030.00719.13
8.1.170.0080.00018.64
8.1.160.0080.00021.94
8.1.150.0070.00018.66
8.1.140.0040.00417.38
8.1.130.0000.00717.76
8.1.120.0000.00717.36
8.1.110.0000.00817.39
8.1.100.0000.00717.53
8.1.90.0040.00417.37
8.1.80.0040.00417.47
8.1.70.0000.00717.28
8.1.60.0040.00417.61
8.1.50.0040.00417.50
8.1.40.0070.00017.43
8.1.30.0040.00717.61
8.1.20.0040.00417.50
8.1.10.0030.00717.57
8.1.00.0020.00517.50
8.0.300.0060.00318.77
8.0.290.0070.00017.05
8.0.280.0030.00318.45
8.0.270.0030.00317.26
8.0.260.0030.00317.25
8.0.250.0050.00216.89
8.0.240.0030.00616.85
8.0.230.0050.00216.96
8.0.220.0030.00316.89
8.0.210.0030.00616.92
8.0.200.0000.00617.07
8.0.190.0070.00017.01
8.0.180.0000.00916.95
8.0.170.0040.00416.89
8.0.160.0050.00316.91
8.0.150.0000.01016.91
8.0.140.0060.00316.94
8.0.130.0030.00313.40
8.0.120.0000.00816.88
8.0.110.0040.00416.99
8.0.100.0050.00316.81
8.0.90.0000.00716.98
8.0.80.0040.01116.93
8.0.70.0000.00716.98
8.0.60.0040.00416.96
8.0.50.0040.00416.82
8.0.30.0150.00317.03
8.0.20.0100.00817.40
8.0.10.0050.00217.13
8.0.00.0070.01216.84
7.4.330.0000.00515.02
7.4.320.0030.00316.66
7.4.300.0030.00316.53
7.4.290.0030.00316.58
7.4.280.0030.00316.49
7.4.270.0030.00316.65
7.4.260.0000.00716.61
7.4.250.0060.00316.50
7.4.240.0020.00516.51
7.4.230.0030.00316.59
7.4.220.0110.00716.55
7.4.210.0110.00416.61
7.4.200.0000.00716.34
7.4.190.0030.00316.69
7.4.160.0190.00316.42
7.4.150.0130.00417.40
7.4.140.0090.00817.86
7.4.130.0110.00816.53
7.4.120.0110.00816.54
7.4.110.0130.01016.73
7.4.100.0000.01716.52
7.4.90.0070.01016.52
7.4.80.0140.00919.39
7.4.70.0190.01316.59
7.4.60.0140.00316.46
7.4.50.0030.00316.66
7.4.40.0090.00616.42
7.4.30.0070.00716.42
7.4.00.0070.01015.13
7.3.330.0000.00513.36
7.3.320.0050.00013.30
7.3.310.0030.00416.27
7.3.300.0000.00716.23
7.3.290.0030.01216.25
7.3.280.0120.00516.37
7.3.270.0040.01217.40
7.3.260.0090.00916.66
7.3.250.0160.00816.39
7.3.240.0150.00216.53
7.3.230.0090.00816.59
7.3.210.0130.01016.27
7.3.200.0040.01319.39
7.3.190.0060.01216.49
7.3.180.0120.00916.52
7.3.170.0070.01616.48
7.3.160.0090.01516.33
7.3.120.0070.01114.77
7.3.110.0100.00714.85
7.3.100.0040.01414.75
7.3.90.0060.01314.90
7.3.80.0000.01514.61
7.3.70.0090.00614.86
7.3.60.0030.01014.75
7.3.50.0090.00614.85
7.3.40.0100.00014.69
7.3.30.0000.01114.63
7.3.20.0040.00416.32
7.3.10.0080.00316.41
7.3.00.0050.01116.50
7.2.330.0080.00916.38
7.2.320.0100.01016.65
7.2.310.0060.01016.54
7.2.300.0070.01016.73
7.2.290.0030.01516.46
7.2.250.0070.01414.83
7.2.240.0100.01015.33
7.2.230.0030.01314.89
7.2.220.0060.00614.96
7.2.210.0030.01714.89
7.2.200.0040.00714.85
7.2.190.0040.01114.97
7.2.180.0080.00314.81
7.2.170.0070.00714.98
7.2.130.0100.00616.80
7.2.120.0050.00816.70
7.2.110.0030.01016.93
7.2.100.0000.01316.91
7.2.90.0000.01416.67
7.2.80.0030.01016.72
7.2.70.0030.00617.03
7.2.60.0060.00616.67
7.2.50.0030.00716.75
7.2.40.0040.01116.93
7.2.30.0030.00817.06
7.2.20.0030.01016.93
7.2.10.0030.01217.01
7.2.00.0050.00918.17
7.1.330.0040.01115.60
7.1.320.0060.00315.45
7.1.310.0100.00315.71
7.1.300.0120.00315.38
7.1.290.0100.00715.62
7.1.280.0090.00315.57
7.1.270.0060.00315.52
7.1.260.0000.01315.62
7.1.250.0080.00415.74
7.1.200.0000.01315.68
7.1.100.0070.01018.17
7.1.70.0040.01816.95
7.1.60.0060.01919.46
7.1.50.0070.01516.76
7.1.00.0070.07322.40
7.0.200.0000.00716.57
7.0.140.0000.07322.15
7.0.60.0100.08019.85
7.0.50.0100.03717.90
7.0.40.0070.05320.02
7.0.30.0300.07320.21
7.0.20.0330.07720.33
7.0.10.0030.07320.30
7.0.00.0030.05320.19
5.6.280.0000.07721.17
5.6.210.0000.07320.52
5.6.200.0070.08018.18
5.6.190.0070.08320.41
5.6.180.0170.04320.63
5.6.170.0400.07020.57
5.6.160.0070.03720.43
5.6.150.0070.06718.14
5.6.140.0030.04018.14
5.6.130.0030.05718.15
5.6.120.0030.06021.11
5.6.110.0070.04021.11
5.6.100.0030.07721.01
5.6.90.0070.08320.98
5.6.80.0200.06320.43
5.5.350.4330.03720.39
5.5.340.0130.07318.05
5.5.330.0070.08320.57
5.5.320.0230.05320.35
5.5.310.0230.08020.29
5.5.300.0070.08017.93
5.5.290.0000.08717.98
5.5.280.0070.08020.99
5.5.270.0100.08320.99
5.5.260.0030.08320.89
5.5.250.0130.06320.63
5.5.240.0030.07320.20
5.4.450.0200.05719.57
5.4.440.0230.07019.48
5.4.430.0230.04319.38
5.4.420.0130.04319.19
5.4.410.0230.05719.18
5.4.400.0230.03319.07
5.4.390.0330.06319.09
5.4.380.0170.05319.24
5.4.370.0300.04319.06
5.4.360.0230.07319.00
5.4.350.0270.06718.87
5.4.340.0300.06319.12
5.4.320.0270.03319.24
5.4.310.0200.04018.95
5.4.300.0300.06719.14
5.4.290.0370.06718.84
5.4.280.0300.07019.04
5.4.270.0270.05019.08
5.4.260.0230.06718.95
5.4.250.0270.04719.23
5.4.240.0330.06318.95
5.4.230.0270.04718.99
5.4.220.0470.03019.08
5.4.210.0300.06019.14
5.4.200.0300.04719.24
5.4.190.0270.04718.98
5.4.180.0300.07719.08
5.4.170.0230.07319.07
5.4.160.0300.04318.93
5.4.150.0330.06318.98
5.4.140.0370.06016.43
5.4.130.0300.05316.52
5.4.120.0330.07016.36
5.4.110.0270.05316.61
5.4.100.0270.03316.59
5.4.90.0330.03716.61
5.4.80.0230.07716.23
5.4.70.0370.05716.48
5.4.60.0270.03716.34
5.4.50.0200.03716.54
5.4.40.0330.06316.17
5.4.30.0270.03716.51
5.4.20.0230.03316.33
5.4.10.0300.04316.17
5.4.00.0270.07015.92
5.3.290.0270.06715.04
5.3.280.0270.06715.04
5.3.270.0400.06015.04
5.3.260.0300.06015.04
5.3.250.0230.04315.04
5.3.240.0230.06015.04
5.3.230.0230.06015.04
5.3.220.0330.07015.04
5.3.210.0230.05315.04
5.3.200.0230.06315.04
5.3.190.0200.05015.04
5.3.180.0200.05315.04
5.3.170.0170.04315.04
5.3.160.0270.06715.04
5.3.150.0270.06315.04
5.3.140.0200.05715.04
5.3.130.0170.04315.04
5.3.120.0230.07015.04
5.3.110.0130.04315.04
5.3.100.0200.08015.04
5.3.90.0230.07315.04
5.3.80.0200.06715.04
5.3.70.0230.06315.04
5.3.60.0230.07315.04
5.3.50.0230.07315.04
5.3.40.0270.06715.04
5.3.30.0170.03715.04
5.3.20.0200.05015.04
5.3.10.0130.05015.04
5.3.00.0300.06315.04
5.2.170.0130.03015.04
5.2.160.0170.03715.04
5.2.150.0200.04715.04
5.2.140.0200.03015.04
5.2.130.0170.03015.04
5.2.120.0230.02015.04
5.2.110.0200.02715.04
5.2.100.0170.02715.04
5.2.90.0270.05015.04
5.2.80.0130.03715.04
5.2.70.0170.04015.04
5.2.60.0170.02715.04
5.2.50.0170.04015.04
5.2.40.0170.05315.04
5.2.30.0200.06015.04
5.2.20.0130.04715.04
5.2.10.0130.05015.04
5.2.00.0130.04315.04
5.1.60.0170.02315.04
5.1.50.0170.02015.04
5.1.40.0270.01715.04
5.1.30.0130.02315.04
5.1.20.0130.02315.04
5.1.10.0070.03015.04
5.1.00.0100.02715.04
5.0.50.0030.02315.04
5.0.40.0030.02715.04
5.0.30.0100.03315.04
5.0.20.0030.02015.04
5.0.10.0100.02015.04
5.0.00.0030.03315.04
4.4.90.0100.01015.04
4.4.80.0070.01315.04
4.4.70.0070.01715.04
4.4.60.0070.01315.04
4.4.50.0130.01315.04
4.4.40.0030.02715.04
4.4.30.0070.01715.04
4.4.20.0070.01315.04
4.4.10.0070.01315.04
4.4.00.0030.02715.04
4.3.110.0100.01015.04
4.3.100.0070.01315.04
4.3.90.0030.01715.04
4.3.80.0030.02715.04
4.3.70.0070.01715.04
4.3.60.0070.01715.04
4.3.50.0070.01315.04
4.3.40.0100.02015.04
4.3.30.0030.01315.04
4.3.20.0030.01315.04
4.3.10.0030.01315.04
4.3.00.0000.02015.04

preferences:
43.52 ms | 401 KiB | 5 Q