3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { static function bar() { $foo = function() { return get_called_class(); }; $foo->bindTo(null,get_called_class); return $foo(); } } class Bar extends Foo { } print Foo::bar(); print 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.45
8.3.50.0100.01022.12
8.3.40.0080.00818.79
8.3.30.0100.00319.27
8.3.20.0070.00020.16
8.3.10.0000.00823.69
8.3.00.0070.00317.50
8.2.180.0110.00418.29
8.2.170.0070.00722.96
8.2.160.0030.01020.44
8.2.150.0070.00024.18
8.2.140.0140.00024.66
8.2.130.0000.00826.16
8.2.120.0120.00419.36
8.2.110.0060.00322.26
8.2.100.0110.00017.91
8.2.90.0050.00318.94
8.2.80.0030.00518.03
8.2.70.0050.00317.63
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0000.00818.04
8.2.30.0040.00418.07
8.2.20.0070.00017.73
8.2.10.0070.00017.94
8.2.00.0080.00017.85
8.1.280.0090.00925.92
8.1.270.0040.00422.08
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00523.83
8.1.230.0030.00719.18
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0000.00817.41
8.1.180.0030.00618.10
8.1.170.0060.00318.73
8.1.160.0050.00322.03
8.1.150.0000.00718.63
8.1.140.0040.00417.48
8.1.130.0000.00717.93
8.1.120.0030.00317.37
8.1.110.0030.00317.48
8.1.100.0040.00417.45
8.1.90.0030.00317.43
8.1.80.0000.00717.36
8.1.70.0030.00617.39
8.1.60.0050.00517.61
8.1.50.0080.00017.43
8.1.40.0030.00517.57
8.1.30.0080.00017.60
8.1.20.0040.00417.66
8.1.10.0050.00317.57
8.1.00.0000.00817.60
8.0.300.0040.00419.10
8.0.290.0040.00417.18
8.0.280.0030.00318.36
8.0.270.0000.00717.18
8.0.260.0000.00617.17
8.0.250.0050.00316.92
8.0.240.0030.00616.97
8.0.230.0030.00316.93
8.0.220.0030.00317.02
8.0.210.0000.00716.98
8.0.200.0100.00017.02
8.0.190.0000.00717.02
8.0.180.0000.00716.94
8.0.170.0030.00616.96
8.0.160.0000.00717.00
8.0.150.0030.00616.80
8.0.140.0000.00816.94
8.0.130.0090.00013.41
8.0.120.0080.00016.88
8.0.110.0050.00216.83
8.0.100.0050.00216.83
8.0.90.0080.00016.96
8.0.80.0040.01116.93
8.0.70.0080.00017.07
8.0.60.0040.00416.94
8.0.50.0050.00216.83
8.0.30.0090.00917.11
8.0.20.0100.01117.40
8.0.10.0020.00517.12
8.0.00.0070.01216.86
7.4.330.0030.00315.00
7.4.320.0060.00016.53
7.4.300.0000.00616.61
7.4.290.0000.00716.61
7.4.280.0070.00016.54
7.4.270.0070.00016.63
7.4.260.0000.00816.48
7.4.250.0050.00216.38
7.4.240.0030.00316.48
7.4.230.0070.00016.30
7.4.220.0100.01016.54
7.4.210.0040.01016.61
7.4.200.0030.00316.34
7.4.190.0030.00516.46
7.4.160.0080.00816.65
7.4.150.0090.00917.40
7.4.140.0100.00717.86
7.4.130.0130.00416.61
7.4.120.0090.01016.40
7.4.110.0000.01816.48
7.4.100.0050.01516.65
7.4.90.0120.00616.61
7.4.80.0150.00619.39
7.4.70.0110.01416.74
7.4.60.0060.00916.54
7.4.50.0040.00416.46
7.4.40.0100.00622.77
7.4.30.0090.00616.43
7.4.00.0060.01114.72
7.3.330.0000.00613.32
7.3.320.0030.00313.34
7.3.310.0030.00316.38
7.3.300.0000.00716.27
7.3.290.0060.00916.34
7.3.280.0080.01116.39
7.3.270.0060.01317.40
7.3.260.0140.00416.33
7.3.250.0130.00816.36
7.3.240.0140.00716.26
7.3.230.0150.00316.55
7.3.210.0160.00416.57
7.3.200.0060.01519.39
7.3.190.0100.01316.50
7.3.180.0120.00316.23
7.3.170.0030.01316.32
7.3.160.0090.00616.52
7.3.120.0030.01414.74
7.3.110.0070.01114.71
7.3.100.0060.01014.89
7.3.90.0060.00814.62
7.3.80.0020.01214.97
7.3.70.0000.01514.67
7.3.60.0080.00814.88
7.3.50.0100.00714.79
7.3.40.0050.00714.84
7.3.30.0090.00614.79
7.3.20.0060.00916.46
7.3.10.0070.00816.68
7.3.00.0110.00516.75
7.2.330.0150.00316.52
7.2.320.0000.01716.72
7.2.310.0070.01116.57
7.2.300.0130.00316.38
7.2.290.0100.00616.56
7.2.250.0100.01014.68
7.2.240.0100.00314.83
7.2.230.0050.00814.77
7.2.220.0030.01015.09
7.2.210.0100.00514.86
7.2.200.0160.00014.94
7.2.190.0080.00615.00
7.2.180.0040.00715.08
7.2.170.0020.01014.96
7.2.160.0060.00914.66
7.2.150.0030.00716.61
7.2.140.0120.00416.87
7.2.130.0060.00916.90
7.2.120.0070.01116.84
7.2.110.0100.00716.62
7.2.100.0070.00716.86
7.2.90.0060.00916.87
7.2.80.0060.00916.77
7.2.70.0130.00316.98
7.2.60.0010.01216.90
7.2.50.0100.00717.01
7.2.40.0000.01517.06
7.2.30.0030.01016.89
7.2.20.0030.01016.75
7.2.10.0130.00016.82
7.2.00.0080.00416.87
7.1.330.0040.01115.64
7.1.320.0050.01015.63
7.1.310.0110.00415.92
7.1.300.0070.00715.74
7.1.290.0090.00615.62
7.1.280.0080.00615.71
7.1.270.0020.01115.69
7.1.260.0030.00915.76
7.1.250.0050.00515.95
7.1.200.0060.00315.48
7.1.70.0070.00316.85
7.1.60.0120.01219.33
7.1.50.0190.00816.63
7.1.00.0070.07322.57
7.0.200.0140.00314.69
7.0.140.0000.07722.16
7.0.60.0070.08319.87
7.0.50.0030.09017.88
7.0.40.0030.09019.96
7.0.30.0530.07320.20
7.0.20.0270.08320.20
7.0.10.0300.04320.07
7.0.00.0070.06320.05
5.6.280.0070.07021.08
5.6.210.0270.06320.51
5.6.200.0030.04318.15
5.6.190.0070.04320.61
5.6.180.0130.04320.50
5.6.170.0170.04720.54
5.6.160.0100.07320.54
5.6.150.0000.08318.15
5.6.140.0130.07318.19
5.6.130.0130.07718.20
5.6.120.0070.04021.05
5.6.110.0030.09021.03
5.6.100.0070.08320.96
5.6.90.0070.04320.98
5.6.80.0030.07320.37
5.6.70.4930.04320.42
5.5.350.0100.06320.41
5.5.340.0130.06018.05
5.5.330.0070.06720.37
5.5.320.0170.07720.36
5.5.310.0200.04020.27
5.5.300.0070.06018.10
5.5.290.0100.06717.96
5.5.280.0000.05020.85
5.5.270.0030.08720.77
5.5.260.0130.04320.90
5.5.250.0170.07720.57
5.5.240.0230.07320.17
5.4.450.2930.04719.63
5.4.440.2900.04019.28
5.4.430.3270.04019.46
5.4.420.2930.04019.27
5.4.410.3000.04019.27
5.4.400.3030.03718.92
5.4.390.2930.03319.01
5.4.380.3270.04019.00
5.4.370.3270.03319.20
5.4.360.3370.03019.22
5.4.350.2900.03319.20
5.4.340.3100.03319.20
5.4.320.2900.04319.18
5.4.310.3030.04319.21
5.4.300.3200.03319.05
5.4.290.3200.04019.07
5.4.280.2770.03019.16
5.4.270.3430.02318.98
5.4.260.3100.03718.97
5.4.250.3070.03719.20
5.4.240.3070.04019.20
5.4.230.2970.03319.23
5.4.220.2170.04018.99
5.4.210.2630.04018.86
5.4.200.3000.04019.21
5.4.190.3130.03319.22
5.4.180.3000.04019.13
5.4.170.2500.02719.12
5.4.160.3070.04019.25
5.4.150.1830.03719.20
5.4.140.2570.02716.39
5.4.130.2700.04016.38
5.4.120.2300.04016.55
5.4.110.2370.04316.50
5.4.100.1770.03316.39
5.4.90.2430.03716.59
5.4.80.2670.03016.54
5.4.70.2930.03016.28
5.4.60.2930.04016.55
5.4.50.2970.03016.42
5.4.40.3330.03016.33
5.4.30.3100.04316.41
5.4.20.2900.03316.48
5.4.10.3070.03316.25
5.4.00.3070.03315.74
5.3.290.3530.03314.68
5.3.280.3130.04314.75
5.3.270.3270.03314.53
5.3.260.3270.04314.83
5.3.250.2870.03314.68
5.3.240.2700.02714.58
5.3.230.3030.04014.52
5.3.220.3100.03714.47
5.3.210.3000.03714.62
5.3.200.3130.03014.49
5.3.190.3070.03314.80
5.3.180.2870.03714.56
5.3.170.3370.04014.64
5.3.160.1800.05314.48
5.3.150.2930.03714.57
5.3.140.2870.03014.55
5.3.130.3000.03314.55
5.3.120.3100.05014.55
5.3.110.3230.04314.46
5.3.100.3170.03714.04
5.3.90.3130.04014.13
5.3.80.2800.03314.00
5.3.70.2400.03714.17
5.3.60.3500.03714.01
5.3.50.2470.03313.93
5.3.40.2700.04313.97
5.3.30.2770.03314.05
5.3.20.3700.03713.78
5.3.10.2930.03713.63
5.3.00.2970.03313.65
5.2.170.2370.02711.05
5.2.160.2600.03011.05
5.2.150.2600.03311.16
5.2.140.2600.02711.36
5.2.130.2300.03011.07
5.2.120.2600.03011.02
5.2.110.2570.03011.01
5.2.100.2670.02311.07
5.2.90.2600.03311.06
5.2.80.2600.02711.01
5.2.70.2600.03311.21
5.2.60.2270.03011.27
5.2.50.2800.03311.16
5.2.40.2470.02311.00
5.2.30.2270.03311.04
5.2.20.2530.03010.92
5.2.10.1770.03011.09
5.2.00.2100.02710.92
5.1.60.2530.02010.92
5.1.50.2270.01710.92
5.1.40.1770.02010.92
5.1.30.2070.02310.92
5.1.20.2600.02310.92
5.1.10.2270.03010.92
5.1.00.2330.02010.92
5.0.50.1430.02310.92
5.0.40.1330.02010.92
5.0.30.1200.03310.92
5.0.20.1030.02010.92
5.0.10.1130.02310.92
5.0.00.1030.03710.92
4.4.90.1200.02010.92
4.4.80.1270.01710.92
4.4.70.1170.02010.92
4.4.60.0970.01710.92
4.4.50.1200.02010.92
4.4.40.0900.02710.92
4.4.30.1130.01710.92
4.4.20.1130.01710.92
4.4.10.0970.01710.92
4.4.00.1270.02710.92
4.3.110.1170.02310.92
4.3.100.1100.00710.92
4.3.90.0930.01310.92
4.3.80.1070.02710.92
4.3.70.0970.01310.92
4.3.60.1070.02010.92
4.3.50.1200.02010.92
4.3.40.1230.02310.92
4.3.30.0570.02010.92
4.3.20.0700.02310.92
4.3.10.0700.01010.92
4.3.00.0630.01710.92

preferences:
44.36 ms | 401 KiB | 5 Q