3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { static function bar() { $foo = static function() { return get_called_class(); }; $foo->bindTo(null,'Bar'); print get_parent_class(); print get_class($foo); 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.0150.00616.63
8.3.50.0240.00722.05
8.3.40.0090.00618.84
8.3.30.0170.00319.07
8.3.20.0080.00020.28
8.3.10.0050.00323.71
8.3.00.0060.00319.38
8.2.180.0140.00418.54
8.2.170.0140.00422.96
8.2.160.0040.01118.77
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0060.00326.16
8.2.120.0000.00722.27
8.2.110.0030.00619.31
8.2.100.0120.00017.78
8.2.90.0080.00019.07
8.2.80.0050.00317.97
8.2.70.0080.00017.63
8.2.60.0040.00417.80
8.2.50.0000.01018.07
8.2.40.0080.00018.34
8.2.30.0040.00418.11
8.2.20.0040.00417.68
8.2.10.0080.00018.17
8.2.00.0030.00717.81
8.1.280.0120.00625.92
8.1.270.0050.00323.81
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00321.45
8.1.230.0110.00017.47
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0000.00817.23
8.1.180.0090.00018.10
8.1.170.0040.00418.59
8.1.160.0070.00021.95
8.1.150.0040.00418.63
8.1.140.0000.00817.52
8.1.130.0000.00717.89
8.1.120.0030.00517.51
8.1.110.0050.00217.34
8.1.100.0080.00017.39
8.1.90.0070.00017.45
8.1.80.0000.00717.47
8.1.70.0040.00417.36
8.1.60.0050.00317.59
8.1.50.0050.00317.41
8.1.40.0080.00017.43
8.1.30.0000.00817.59
8.1.20.0030.00517.66
8.1.10.0000.00717.56
8.1.00.0000.00917.48
8.0.300.0080.00018.77
8.0.290.0040.00416.63
8.0.280.0030.00318.32
8.0.270.0000.00717.20
8.0.260.0060.00017.27
8.0.250.0030.00317.00
8.0.240.0060.00316.96
8.0.230.0000.00716.89
8.0.220.0000.00716.80
8.0.210.0030.00716.85
8.0.200.0070.00016.98
8.0.190.0000.00916.89
8.0.180.0050.00216.87
8.0.170.0040.00416.85
8.0.160.0070.00016.76
8.0.150.0000.00716.84
8.0.140.0050.00316.91
8.0.130.0060.00013.30
8.0.120.0030.00516.79
8.0.110.0040.00416.83
8.0.100.0000.00716.77
8.0.90.0000.00716.79
8.0.80.0000.01416.81
8.0.70.0040.00416.71
8.0.60.0040.00416.68
8.0.50.0080.00016.75
8.0.30.0110.00816.84
8.0.20.0090.00917.40
8.0.10.0000.00716.96
8.0.00.0090.00916.87
7.4.330.0000.00515.00
7.4.320.0070.00016.58
7.4.300.0030.00316.64
7.4.290.0000.00616.57
7.4.280.0000.00716.51
7.4.270.0080.00016.63
7.4.260.0000.00816.58
7.4.250.0040.00416.48
7.4.240.0020.00516.44
7.4.230.0060.00016.63
7.4.220.0070.01116.45
7.4.210.0100.00716.60
7.4.200.0000.00816.67
7.4.190.0080.00016.77
7.4.160.0080.00816.56
7.4.150.0090.00917.40
7.4.140.0080.00817.86
7.4.130.0090.00916.52
7.4.120.0110.00616.52
7.4.110.0150.00616.32
7.4.100.0000.01716.50
7.4.90.0090.01216.55
7.4.80.0100.00719.39
7.4.70.0130.00416.54
7.4.60.0080.01016.35
7.4.50.0050.00316.31
7.4.40.0000.01322.77
7.4.30.0140.00316.64
7.4.00.0070.00714.95
7.3.330.0000.00513.20
7.3.320.0000.00613.17
7.3.310.0040.00416.45
7.3.300.0000.00616.36
7.3.290.0060.01516.28
7.3.280.0110.00516.35
7.3.270.0080.00817.40
7.3.260.0060.01616.56
7.3.250.0060.01116.35
7.3.240.0120.01416.64
7.3.230.0140.00316.39
7.3.210.0110.00716.32
7.3.200.0070.01019.39
7.3.190.0130.00416.57
7.3.180.0090.00616.46
7.3.170.0060.01516.28
7.3.160.0000.01616.61
7.3.120.0000.01314.45
7.3.10.0060.00916.72
7.3.00.0080.00416.83
7.2.330.0030.01316.66
7.2.320.0090.00916.71
7.2.310.0070.01016.59
7.2.300.0160.00716.69
7.2.290.0130.00416.75
7.2.130.0110.00316.70
7.2.120.0040.00816.91
7.2.110.0130.00016.89
7.2.100.0060.00616.88
7.2.90.0040.01117.02
7.2.80.0030.00717.06
7.2.70.0090.00616.75
7.2.60.0050.00916.95
7.2.50.0070.00717.01
7.2.40.0030.00716.82
7.2.30.0120.00316.96
7.2.20.0130.00316.82
7.2.10.0000.01316.72
7.2.00.0060.00618.01
7.1.250.0070.00715.60
7.1.200.0190.00315.31
7.1.100.0000.01317.92
7.1.70.0140.01117.09
7.1.60.0170.00719.33
7.1.50.0060.01616.91
7.1.00.0130.06722.54
7.0.200.0670.01214.30
7.0.140.0100.06722.08
7.0.60.0100.06320.03
7.0.50.0070.04317.72
7.0.40.0000.08320.24
7.0.30.0470.05720.26
7.0.20.0230.05320.07
7.0.10.0070.08020.01
7.0.00.0030.04320.05
5.6.280.0030.07320.99
5.6.210.0100.03720.48
5.6.200.0000.05318.19
5.6.190.0100.06020.62
5.6.180.0170.04720.39
5.6.170.0170.04020.45
5.6.160.0100.04720.56
5.6.150.0130.07718.16
5.6.140.0030.04018.18
5.6.130.0030.04318.11
5.6.120.0100.06320.99
5.6.110.0170.07320.97
5.6.100.0170.07320.90
5.6.90.0070.04020.96
5.6.80.0100.05320.52
5.5.350.0230.06720.41
5.5.340.0030.06317.99
5.5.330.0070.06720.30
5.5.320.0100.05320.24
5.5.310.0200.04320.34
5.5.300.0000.04718.08
5.5.290.0070.04017.98
5.5.280.0030.04320.80
5.5.270.0070.09020.84
5.5.260.0030.09320.85
5.5.250.0100.05320.50
5.5.240.2300.03020.27
5.4.450.0130.05319.39
5.4.440.0100.06019.58
5.4.430.0070.05719.21
5.4.420.0200.04719.42
5.4.410.0030.06319.07
5.4.400.0200.04319.38
5.4.390.0000.06319.29
5.4.380.0370.06018.63
5.4.370.0230.05718.73
5.4.360.0330.05318.57
5.4.350.0370.05318.80
5.4.340.0400.07318.57
5.4.320.0070.03612.51
5.4.310.0050.04412.50
5.4.300.0070.03512.50
5.4.290.0070.03612.50
5.4.280.0080.05712.37
5.4.270.0120.05612.37
5.4.260.0160.06012.37
5.4.250.0110.06112.37
5.4.240.0140.06112.37
5.4.230.0130.05112.36
5.4.220.0150.05212.36
5.4.210.0250.06712.36
5.4.200.0150.04812.37
5.4.190.0130.05212.36
5.4.180.0110.05912.36
5.4.170.0140.05612.37
5.4.160.0140.04812.37
5.4.150.0090.05512.37
5.4.140.0100.05612.05
5.4.130.0130.05012.04
5.4.120.0130.05512.00
5.4.110.0130.05311.99
5.4.100.0120.05011.99
5.4.90.0110.05611.99
5.4.80.0100.05811.99
5.4.70.0090.05311.98
5.4.60.0160.04811.98
5.4.50.0090.03811.99
5.4.40.0110.04011.98
5.4.30.0120.03311.97
5.4.20.0090.03611.97
5.4.10.0100.03311.97
5.4.00.0050.04311.46
5.3.290.0130.03712.80
5.3.280.0110.05512.71
5.3.270.0140.06412.72
5.3.260.0140.03812.72
5.3.250.0080.03912.72
5.3.240.0090.04012.72
5.3.230.0080.04412.71
5.3.220.0230.07612.68
5.3.210.0180.08112.68
5.3.200.0120.06312.68
5.3.190.0170.06612.68
5.3.180.0130.07412.67
5.3.170.0140.05112.67
5.3.160.0310.06612.67
5.3.150.0090.05212.67
5.3.140.0350.08512.66
5.3.130.0410.10012.66
5.3.120.0130.05412.66
5.3.110.0110.05112.66
5.3.100.0140.06612.12
5.3.90.0110.05412.08
5.3.80.0100.05412.07
5.3.70.0170.04712.07
5.3.60.0200.06812.06
5.3.50.0090.03912.00
5.3.40.0080.03812.00
5.3.30.0080.05411.95
5.3.20.0110.04711.73
5.3.10.0070.03811.70
5.3.00.0110.03711.69
5.2.170.0020.0369.18
5.2.160.0110.0359.18
5.2.150.0120.0399.18
5.2.140.0150.0759.18
5.2.130.0120.0579.14
5.2.120.0430.0789.14
5.2.110.0110.0399.15
5.2.100.0130.0559.15
5.2.90.0130.0619.14
5.2.80.0250.0779.14
5.2.70.0120.0509.14
5.2.60.0110.0479.10
5.2.50.0180.0649.07
5.2.40.0090.0629.04
5.2.30.0090.0419.02
5.2.20.0180.0609.01
5.2.10.0280.0798.92
5.2.00.0220.0928.79
5.1.60.0030.0428.07
5.1.50.0120.0468.07
5.1.40.0180.0518.04
5.1.30.0200.0468.39
5.1.20.0060.0408.41
5.1.10.0040.0388.14
5.1.00.0090.0338.14
5.0.50.0170.0406.61
5.0.40.0090.0286.48
5.0.30.0050.0486.29
5.0.20.0030.0256.26
5.0.10.0170.0556.23
5.0.00.0050.0376.22
4.4.90.0080.0314.78
4.4.80.0140.0434.76
4.4.70.0090.0344.75
4.4.60.0040.0374.76
4.4.50.0040.0394.77
4.4.40.0020.0594.70
4.4.30.0070.0314.76
4.4.20.0070.0334.84
4.4.10.0100.0294.85
4.4.00.0140.0404.76
4.3.110.0050.0214.67
4.3.100.0020.0234.67
4.3.90.0120.0274.63
4.3.80.0070.0454.58
4.3.70.0040.0204.63
4.3.60.0060.0314.63
4.3.50.0160.0314.63
4.3.40.0050.0304.54
4.3.30.0040.0303.29
4.3.20.0060.0203.27
4.3.10.0020.0173.23
4.3.00.0000.0238.89

preferences:
36.5 ms | 401 KiB | 5 Q