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(); } function rebind() { $foo = static function() { return get_called_class(); }; $oFoo=new Foo; return $foo; } } 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.0100.01018.30
8.3.50.0080.01321.97
8.3.40.0070.00718.97
8.3.30.0040.01119.02
8.3.20.0070.00020.38
8.3.10.0000.00723.65
8.3.00.0050.00320.82
8.2.180.0140.00716.63
8.2.170.0070.01022.96
8.2.160.0070.00720.35
8.2.150.0070.00024.18
8.2.140.0030.00624.66
8.2.130.0000.00726.16
8.2.120.0030.00620.89
8.2.110.0060.00322.08
8.2.100.0080.00417.72
8.2.90.0000.00819.05
8.2.80.0000.00817.97
8.2.70.0080.00017.63
8.2.60.0110.00017.93
8.2.50.0030.00518.07
8.2.40.0080.00017.90
8.2.30.0040.00418.10
8.2.20.0040.00417.64
8.2.10.0040.00417.98
8.2.00.0000.00817.60
8.1.280.0120.00925.92
8.1.270.0080.00023.89
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0050.00323.69
8.1.230.0030.00818.99
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.10
8.1.190.0040.00417.11
8.1.180.0000.00818.10
8.1.170.0060.00318.52
8.1.160.0000.00721.94
8.1.150.0070.00018.39
8.1.140.0000.00717.32
8.1.130.0000.00817.68
8.1.120.0040.00317.27
8.1.110.0040.00417.39
8.1.100.0030.00317.30
8.1.90.0000.00717.25
8.1.80.0030.00717.38
8.1.70.0030.00317.29
8.1.60.0030.00517.41
8.1.50.0080.00017.34
8.1.40.0040.00417.46
8.1.30.0080.00017.43
8.1.20.0040.00417.60
8.1.10.0080.00017.55
8.1.00.0050.00317.42
8.0.300.0040.00418.77
8.0.290.0040.00416.60
8.0.280.0040.00418.40
8.0.270.0030.00317.25
8.0.260.0030.00317.12
8.0.250.0040.00416.88
8.0.240.0000.00816.96
8.0.230.0040.00416.81
8.0.220.0060.00016.90
8.0.210.0040.00416.92
8.0.200.0070.00016.86
8.0.190.0040.00416.86
8.0.180.0060.00316.90
8.0.170.0000.00816.80
8.0.160.0050.00316.84
8.0.150.0050.00216.88
8.0.140.0070.00016.70
8.0.130.0000.00613.29
8.0.120.0040.00416.74
8.0.110.0000.00716.79
8.0.100.0040.00416.88
8.0.90.0000.00716.79
8.0.80.0000.01516.82
8.0.70.0020.00516.93
8.0.60.0000.00716.91
8.0.50.0080.00016.96
8.0.30.0130.00817.05
8.0.20.0070.01217.40
8.0.10.0050.00316.76
8.0.00.0070.01316.74
7.4.330.0050.00015.00
7.4.320.0000.00716.48
7.4.300.0060.00016.36
7.4.290.0000.00716.53
7.4.280.0030.00316.59
7.4.270.0070.00016.64
7.4.260.0080.00016.48
7.4.250.0040.00416.52
7.4.240.0000.00716.46
7.4.230.0070.00016.64
7.4.220.0060.01916.62
7.4.210.0090.00616.66
7.4.200.0070.00016.63
7.4.160.0060.00916.23
7.4.150.0090.00917.40
7.4.140.0070.01317.86
7.4.130.0080.00816.41
7.4.120.0080.00916.43
7.4.110.0130.00416.42
7.4.100.0060.00816.49
7.4.90.0110.01116.29
7.4.80.0100.00719.39
7.4.70.0100.00616.65
7.4.60.0040.01716.52
7.4.50.0030.00616.26
7.4.40.0090.00616.61
7.4.30.0040.01116.44
7.4.10.0060.01314.75
7.4.00.0090.00814.96
7.3.330.0000.00513.36
7.3.320.0060.00013.21
7.3.310.0070.00016.25
7.3.300.0000.00716.27
7.3.290.0090.00916.37
7.3.280.0060.00616.38
7.3.270.0130.01017.40
7.3.260.0140.00316.49
7.3.250.0080.01216.43
7.3.240.0070.01016.29
7.3.230.0120.00616.50
7.3.210.0050.01116.45
7.3.200.0030.01319.39
7.3.190.0110.00816.60
7.3.180.0090.01016.54
7.3.170.0070.01016.41
7.3.160.0160.00016.52
7.3.130.0100.00614.82
7.3.120.0060.01214.77
7.3.110.0030.01614.69
7.3.100.0100.00714.93
7.3.90.0000.01714.66
7.3.80.0080.00414.55
7.3.70.0100.00614.86
7.3.60.0070.01014.86
7.3.50.0070.00714.50
7.3.40.0070.00714.66
7.3.30.0050.00514.76
7.3.20.0060.00316.70
7.3.10.0030.01016.58
7.3.00.0060.00316.59
7.2.330.0090.00916.42
7.2.320.0080.00816.68
7.2.310.0120.01216.69
7.2.300.0140.00316.86
7.2.290.0090.00916.80
7.2.260.0070.01314.89
7.2.250.0110.00814.94
7.2.240.0130.00315.24
7.2.230.0130.00015.20
7.2.220.0060.00615.11
7.2.210.0060.00615.30
7.2.200.0140.00014.98
7.2.190.0070.01014.94
7.2.180.0070.00714.94
7.2.170.0040.01115.03
7.2.160.0110.00415.17
7.2.150.0080.00816.96
7.2.140.0090.00416.71
7.2.130.0070.01016.96
7.2.120.0100.00616.95
7.2.110.0060.00917.00
7.2.100.0030.00916.84
7.2.90.0070.01017.16
7.2.80.0000.01116.96
7.2.70.0030.00617.11
7.2.60.0070.00716.90
7.2.50.0130.00317.09
7.2.40.0120.00016.83
7.2.30.0030.01217.01
7.2.20.0000.01716.98
7.2.10.0060.00616.87
7.2.00.0060.00718.19
7.1.330.0040.01215.79
7.1.320.0090.00315.76
7.1.310.0090.00015.88
7.1.300.0080.00315.49
7.1.290.0100.00015.59
7.1.280.0030.00515.45
7.1.270.0070.00715.60
7.1.260.0040.00715.51
7.1.250.0120.00315.77
7.1.240.0070.00715.63
7.1.230.0070.00715.51
7.1.220.0040.00715.51
7.1.210.0060.00915.86
7.1.200.0060.00915.66
7.1.190.0030.00615.67
7.1.180.0060.00615.73
7.1.170.0120.00315.36
7.1.160.0060.00315.63
7.1.150.0110.00415.61
7.1.140.0060.00915.57
7.1.130.0030.01015.70
7.1.120.0080.00415.54
7.1.110.0070.00715.74
7.1.100.0060.00316.90
7.1.90.0000.01515.70
7.1.80.0040.01115.61
7.1.70.0030.00716.37
7.1.60.0090.01017.67
7.1.50.0070.01216.19
7.1.40.0030.01015.72
7.1.30.0090.00615.73
7.1.20.0100.00315.64
7.1.10.0100.00315.83
7.1.00.0070.04118.88
7.0.330.0040.01115.07
7.0.320.0060.00615.09
7.0.310.0070.00715.07
7.0.300.0040.01415.11
7.0.290.0090.00315.19
7.0.280.0070.00415.21
7.0.270.0100.00315.23
7.0.260.0060.01015.12
7.0.250.0030.01015.54
7.0.240.0080.00815.42
7.0.230.0060.00615.43
7.0.220.0110.00015.23
7.0.210.0040.01115.44
7.0.200.0000.01015.84
7.0.190.0000.00914.98
7.0.180.0060.00915.42
7.0.170.0070.00715.28
7.0.160.0030.01215.45
7.0.150.0030.01015.20
7.0.140.0040.04018.73
7.0.130.0080.00415.25
7.0.120.0040.00715.34
7.0.110.0030.00515.38
7.0.100.0030.02717.62
7.0.90.0080.03917.59
7.0.80.0040.03417.68
7.0.70.0020.02517.75
7.0.60.0050.03417.71
7.0.50.0020.02917.78
7.0.40.0030.03616.78
7.0.30.0120.04016.73
7.0.20.0050.02316.56
7.0.10.0060.02316.74
7.0.00.0020.02716.77
5.6.400.0000.01314.45
5.6.390.0060.00614.26
5.6.380.0040.01114.51
5.6.370.0000.01414.57
5.6.360.0060.00314.08
5.6.350.0030.00614.33
5.6.340.0000.01214.05
5.6.330.0090.00914.30
5.6.320.0030.01014.52
5.6.310.0050.00814.04
5.6.300.0000.01214.28
5.6.290.0090.00614.40
5.6.280.0060.03617.69
5.6.270.0040.00814.36
5.6.260.0070.00314.03
5.6.250.0080.03317.53
5.6.240.0020.03217.43
5.6.230.0050.03817.49
5.6.220.0030.03317.42
5.6.210.0050.02617.42
5.6.200.0070.02317.50
5.6.190.0030.03517.77
5.6.180.0050.04217.81
5.6.170.0080.02317.57
5.6.160.0080.03017.63
5.6.150.0030.02317.61
5.6.140.0030.02817.60
5.6.130.0020.02717.72
5.6.120.0050.04017.71
5.6.110.0080.04317.51
5.6.100.0080.04317.60
5.6.90.0080.04017.61
5.6.80.0020.04717.29
5.6.70.0100.03717.33
5.6.60.0070.04017.28
5.6.50.0070.02117.17
5.6.40.0080.02917.19
5.6.30.0080.04017.37
5.6.20.0020.03217.22
5.6.10.0070.04017.27
5.6.00.0080.04117.28
5.5.380.0070.04217.25
5.5.370.0100.03517.33
5.5.360.0080.03017.38
5.5.350.0050.04117.29
5.5.340.0050.02617.49
5.5.330.0100.03817.47
5.5.320.0050.03517.35
5.5.310.0060.02717.50
5.5.300.0050.02617.46
5.5.290.0100.02817.46
5.5.280.0020.02617.53
5.5.270.0030.05017.70
5.5.260.0100.04317.63
5.5.250.0100.04517.47
5.5.240.0030.04517.21
5.5.230.0070.03717.16
5.5.220.0030.02817.11
5.5.210.0050.04017.27
5.5.200.0070.04217.25
5.5.190.0140.02817.17
5.5.180.0030.02817.24
5.5.170.0000.01014.07
5.5.160.0050.04217.13
5.5.150.0030.03016.98
5.5.140.0060.04517.08
5.5.130.0030.03417.10
5.5.120.0060.03817.22
5.5.110.0090.03117.19
5.5.100.0020.04817.11
5.5.90.0070.03517.22
5.5.80.0080.03717.13
5.5.70.0080.03917.22
5.5.60.0120.03816.84
5.5.50.0080.03717.00
5.5.40.0120.03917.05
5.5.30.0070.04216.80
5.5.20.0080.04017.12
5.5.10.0040.04216.82
5.5.00.0080.03017.17
5.4.450.0070.03015.33
5.4.440.0060.02515.25
5.4.430.0070.03015.34
5.4.420.0030.04415.29
5.4.410.0060.02815.19
5.4.400.0080.03815.03
5.4.390.0110.03415.17
5.4.380.0050.03515.06
5.4.370.0030.03314.96
5.4.360.0000.02514.96
5.4.350.0090.03815.08
5.4.340.0050.04014.92
5.4.330.0060.00611.04
5.4.320.0070.04014.95
5.4.310.0050.02615.05
5.4.300.0080.03615.00
5.4.290.0090.03514.98
5.4.280.0050.04314.87
5.4.270.0090.03814.96
5.4.260.0070.03714.99
5.4.250.0110.03814.85
5.4.240.0070.04115.03
5.4.230.0050.02514.88
5.4.220.0030.04514.90
5.4.210.0070.03514.95
5.4.200.0000.05015.14
5.4.190.0050.04414.85
5.4.180.0130.03315.15
5.4.170.0020.02914.70
5.4.160.0050.03814.95
5.4.150.0050.03715.06
5.4.140.0060.02113.68
5.4.130.0090.03713.74
5.4.120.0100.03113.71
5.4.110.0030.04113.67
5.4.100.0030.03413.43
5.4.90.0010.02313.77
5.4.80.0060.03513.72
5.4.70.0030.04213.68
5.4.60.0070.03013.60
5.4.50.0040.03513.56
5.4.40.0030.02613.57
5.4.30.0030.02313.69
5.4.20.0030.03713.49
5.4.10.0030.04013.53
5.4.00.0070.03313.42
5.3.290.0050.04012.56
5.3.280.0120.02212.46
5.3.270.0030.04112.49
5.3.260.0050.03512.44
5.3.250.0050.03512.47
5.3.240.0050.03912.46
5.3.230.0030.03612.44
5.3.220.0050.04012.41
5.3.210.0050.03312.44
5.3.200.0010.03112.46
5.3.190.0100.03512.41
5.3.180.0100.02012.46
5.3.170.0070.02612.46
5.3.160.0050.03912.43
5.3.150.0060.03512.55
5.3.140.0060.03612.46
5.3.130.0070.04012.48
5.3.120.0030.04212.44
5.3.110.0070.03812.49
5.3.100.0030.03112.32
5.3.90.0060.04012.17
5.3.80.0030.04212.16
5.3.70.0050.04112.11
5.3.60.0030.04012.12
5.3.50.0040.04112.18
5.3.40.0070.03712.12
5.3.30.0070.03812.10
5.3.20.0060.03811.94
5.3.10.0060.03312.03
5.3.00.0020.04011.98
5.2.170.0070.05012.56
5.2.160.0070.05312.56
5.2.150.0030.06012.56
5.2.140.0030.04312.56
5.2.130.0070.05712.56
5.2.120.0100.03712.56
5.2.110.0070.05312.56
5.2.100.0070.05312.56
5.2.90.0100.05312.56
5.2.80.0030.06312.56
5.2.70.0030.06012.56
5.2.60.0030.06312.56
5.2.50.0070.05712.56
5.2.40.0030.06312.56
5.2.30.0030.06012.56
5.2.20.0100.06012.56
5.2.10.0070.06312.56
5.2.00.0030.04712.56
5.1.60.0000.04312.56
5.1.50.0070.03312.56
5.1.40.0070.04712.56
5.1.30.0130.02712.56
5.1.20.0070.05012.56
5.1.10.0000.03712.56
5.1.00.0000.05312.56
5.0.50.0030.04712.56
5.0.40.0000.04312.56
5.0.30.0030.04712.56
5.0.20.0070.04012.56
5.0.10.0030.04312.56
5.0.00.0070.06012.56
4.4.90.0070.03012.56
4.4.80.0070.03012.56
4.4.70.0070.03012.56
4.4.60.0070.02712.56
4.4.50.0000.03712.56
4.4.40.0070.05012.56
4.4.30.0000.03312.56
4.4.20.0030.03712.56
4.4.10.0030.02012.56
4.4.00.0070.05012.56
4.3.110.0070.03012.56
4.3.100.0070.03312.56
4.3.90.0000.03712.56
4.3.80.0000.04712.56
4.3.70.0030.03312.56
4.3.60.0000.03312.56
4.3.50.0000.03712.56
4.3.40.0000.04712.56
4.3.30.0000.02012.56
4.3.20.0000.04012.56
4.3.10.0000.03712.56
4.3.00.0030.03012.56

preferences:
44.59 ms | 401 KiB | 5 Q