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()); print 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.130.0030.00618.37
8.3.120.0050.00518.86
8.3.110.0060.01020.94
8.3.100.0070.01024.06
8.3.90.0150.00026.77
8.3.80.0030.00616.50
8.3.70.0030.01218.27
8.3.60.0130.00716.63
8.3.50.0130.00422.11
8.3.40.0130.00719.02
8.3.30.0110.00419.22
8.3.20.0040.00420.34
8.3.10.0060.00323.67
8.3.00.0160.00319.39
8.2.250.0060.00316.53
8.2.240.0040.00419.00
8.2.230.0050.00322.58
8.2.220.0040.00437.54
8.2.210.0160.00326.77
8.2.200.0040.00416.63
8.2.190.0080.00816.58
8.2.180.0120.00616.38
8.2.170.0120.00322.96
8.2.160.0130.01020.48
8.2.150.0030.00524.18
8.2.140.0090.00024.66
8.2.130.0130.00626.16
8.2.120.0080.00021.10
8.2.110.0070.00321.18
8.2.100.0090.00319.45
8.2.90.0050.00319.14
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0080.00017.80
8.2.50.0000.00918.07
8.2.40.0000.00818.09
8.2.30.0040.00418.13
8.2.20.0050.00317.57
8.2.10.0040.00418.00
8.2.00.0060.00317.75
8.1.300.0060.00319.57
8.1.290.0070.00318.88
8.1.280.0100.00725.92
8.1.270.0080.00023.96
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0040.00422.64
8.1.230.0040.00822.62
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0000.00817.23
8.1.190.0000.00817.10
8.1.180.0000.00918.10
8.1.170.0060.00318.50
8.1.160.0040.00421.89
8.1.150.0000.00718.92
8.1.140.0080.00017.45
8.1.130.0000.00717.40
8.1.120.0030.00317.47
8.1.110.0080.00017.37
8.1.100.0070.00017.46
8.1.90.0000.00717.30
8.1.80.0040.00417.47
8.1.70.0000.00717.43
8.1.60.0040.00417.59
8.1.50.0060.00317.51
8.1.40.0030.00617.45
8.1.30.0040.00417.65
8.1.20.0040.00417.73
8.1.10.0050.00317.58
8.1.00.0050.00217.55
8.0.300.0030.00618.77
8.0.290.0040.00416.75
8.0.280.0000.00718.41
8.0.270.0030.00317.23
8.0.260.0080.00016.83
8.0.250.0000.00716.99
8.0.240.0000.00616.83
8.0.230.0000.00716.93
8.0.220.0030.00316.86
8.0.210.0000.00716.88
8.0.200.0000.00716.96
8.0.190.0030.00516.88
8.0.180.0040.00716.85
8.0.170.0040.00416.93
8.0.160.0040.00416.87
8.0.150.0040.00416.89
8.0.140.0050.00316.86
8.0.130.0030.00313.28
8.0.120.0060.00316.75
8.0.110.0000.00716.81
8.0.100.0080.00016.73
8.0.90.0000.00716.79
8.0.80.0140.00716.82
8.0.70.0030.00516.86
8.0.60.0040.00416.94
8.0.50.0050.00216.88
8.0.30.0090.00917.01
8.0.20.0140.01017.40
8.0.10.0000.00717.01
8.0.00.0070.01016.72
7.4.330.0020.00215.15
7.4.320.0000.00616.46
7.4.300.0040.00416.43
7.4.290.0030.00316.47
7.4.280.0070.00316.61
7.4.270.0080.00016.54
7.4.260.0070.00416.61
7.4.250.0000.00716.48
7.4.240.0010.00616.58
7.4.230.0070.00016.55
7.4.220.0070.01016.46
7.4.210.0130.00716.55
7.4.200.0030.00316.51
7.4.160.0130.00316.42
7.4.150.0070.01117.40
7.4.140.0120.00517.86
7.4.130.0090.01116.63
7.4.120.0130.00416.47
7.4.110.0070.01216.55
7.4.100.0060.01216.53
7.4.90.0120.00916.60
7.4.80.0130.01019.39
7.4.70.0090.00916.68
7.4.60.0030.01516.34
7.4.50.0000.00716.58
7.4.40.0110.00516.64
7.4.30.0130.00316.63
7.4.00.0090.00814.98
7.3.330.0000.00513.23
7.3.320.0030.00313.24
7.3.310.0050.00216.41
7.3.300.0000.00716.32
7.3.290.0100.00316.38
7.3.280.0090.00916.33
7.3.270.0170.00017.40
7.3.260.0110.00716.53
7.3.250.0090.00916.39
7.3.240.0140.00316.52
7.3.230.0000.02216.39
7.3.210.0130.00416.39
7.3.200.0100.00719.39
7.3.190.0110.01116.52
7.3.180.0090.00616.46
7.3.170.0080.00816.59
7.3.160.0090.00616.13
7.3.120.0040.01214.57
7.3.110.0070.01114.72
7.3.100.0080.00814.50
7.3.90.0040.01414.46
7.3.80.0140.00414.69
7.3.70.0060.01214.75
7.3.60.0060.00914.71
7.3.50.0100.00714.48
7.3.40.0120.00314.50
7.3.30.0000.01314.78
7.3.20.0050.00516.64
7.3.10.0060.00816.60
7.3.00.0110.00316.73
7.2.330.0120.00616.56
7.2.320.0170.00716.59
7.2.310.0160.00616.60
7.2.300.0000.01616.72
7.2.290.0060.01216.74
7.2.250.0090.00915.18
7.2.240.0070.01314.80
7.2.230.0130.00714.99
7.2.220.0080.00815.11
7.2.210.0140.00314.93
7.2.200.0090.00314.92
7.2.190.0090.00914.79
7.2.180.0070.01015.02
7.2.170.0150.00414.80
7.2.130.0030.01316.66
7.2.120.0120.00316.71
7.2.110.0090.00616.80
7.2.100.0060.00916.57
7.2.90.0030.00616.86
7.2.80.0000.01516.88
7.2.70.0100.00716.86
7.2.60.0040.01216.89
7.2.50.0040.01116.94
7.2.40.0030.00616.92
7.2.30.0100.00317.03
7.2.20.0030.01016.91
7.2.10.0070.00317.07
7.2.00.0080.00618.05
7.1.330.0100.00715.89
7.1.320.0030.01415.88
7.1.310.0100.00615.78
7.1.300.0040.01115.82
7.1.290.0060.01215.59
7.1.280.0030.00715.72
7.1.270.0080.00615.46
7.1.260.0030.01015.82
7.1.250.0040.01115.66
7.1.100.0080.00417.67
7.1.70.0020.00517.09
7.1.60.0040.01219.70
7.1.50.0100.00716.98
7.1.00.0100.07022.35
7.0.200.0750.00714.85
7.0.140.0070.07022.07
7.0.100.0030.07719.89
7.0.90.0070.07720.05
7.0.80.0100.07319.96
7.0.70.0170.06719.96
7.0.60.0130.04319.96
7.0.50.0100.08020.26
7.0.40.0100.07720.08
7.0.30.0070.05320.12
7.0.20.0000.09020.07
7.0.10.0170.07720.12
7.0.00.0070.08719.95
5.6.280.0000.07021.14
5.6.250.0030.08320.49
5.6.240.0070.05320.73
5.6.230.0100.07320.71
5.6.220.0070.07720.62
5.6.210.0070.08720.66
5.6.200.0070.08321.04
5.6.190.0100.08321.05
5.6.180.0100.07721.07
5.6.170.0100.08021.12
5.6.160.0070.08321.14
5.6.150.0070.04021.11
5.6.140.0170.03321.04
5.6.130.0130.08321.05
5.6.120.0130.07321.06
5.6.110.0030.09320.99
5.6.100.0100.08321.00
5.6.90.0070.08320.93
5.6.80.0100.03720.44
5.6.70.0100.05020.45
5.6.60.0070.06020.52
5.6.50.0130.07320.41
5.6.40.0030.05720.38
5.6.30.0030.07720.31
5.6.20.0100.08320.38
5.6.10.0030.09020.50
5.6.00.0130.06320.52
5.5.380.0070.04720.51
5.5.370.0130.06320.45
5.5.360.0100.07020.35
5.5.350.0130.07320.44
5.5.340.0070.07020.93
5.5.330.0070.08720.86
5.5.320.0100.07720.77
5.5.310.0000.05020.76
5.5.300.0070.08720.61
5.5.290.0130.05020.89
5.5.280.0230.06020.64
5.5.270.0130.05020.89
5.5.260.0100.07720.86
5.5.250.0130.07720.65
5.5.240.0200.06720.25
5.5.230.0070.08020.27
5.5.220.0070.06320.11
5.5.210.0030.08320.28
5.5.200.0200.05720.16
5.5.190.0030.08320.28
5.5.180.0030.08020.23
5.5.160.0130.08020.23
5.5.150.0070.07720.17
5.5.140.0170.07020.28
5.5.130.0070.08020.14
5.5.120.0100.08020.18
5.5.110.0100.08720.25
5.5.100.0130.07320.08
5.5.90.0100.05020.17
5.5.80.0030.08020.07
5.5.70.0200.06720.06
5.5.60.0100.06720.10
5.5.50.0030.07720.13
5.5.40.0170.06319.93
5.5.30.0170.06320.09
5.5.20.0030.07320.09
5.5.10.0100.08020.13
5.5.00.0170.07019.95
5.4.450.0130.07319.23
5.4.440.0100.07719.54
5.4.430.0100.08319.22
5.4.420.0200.06319.21
5.4.410.0070.06719.23
5.4.400.0170.07019.04
5.4.390.0070.07319.04
5.4.380.0100.07318.95
5.4.370.0070.07719.17
5.4.360.0100.06319.18
5.4.350.0070.08019.13
5.4.340.0170.06018.88
5.4.320.0100.06319.04
5.4.310.0130.07019.23
5.4.300.0070.04319.03
5.4.290.0030.07719.10
5.4.280.0100.07019.03
5.4.270.0030.04719.18
5.4.260.0030.07719.16
5.4.250.0100.07318.82
5.4.240.0100.07018.84
5.4.230.0030.08019.03
5.4.220.0100.08019.18
5.4.210.0170.06319.05
5.4.200.0100.06319.12
5.4.190.0070.04719.20
5.4.180.0100.07319.12
5.4.170.0130.07019.17
5.4.160.0070.08319.16
5.4.150.0200.06319.01
5.4.140.0130.06716.52
5.4.130.0100.06716.47
5.4.120.0000.07716.48
5.4.110.0030.07716.49
5.4.100.0070.07016.53
5.4.90.0130.06016.33
5.4.80.0030.07716.54
5.4.70.0100.07016.44
5.4.60.0070.07016.44
5.4.50.0130.07016.32
5.4.40.0000.08316.30
5.4.30.0100.07016.45
5.4.20.0070.04316.44
5.4.10.0070.05016.25
5.4.00.0070.07315.95
5.3.290.0070.07314.80
5.3.280.0070.04314.58
5.3.270.0100.07014.73
5.3.260.0130.07014.73
5.3.250.0030.07314.59
5.3.240.0170.06714.67
5.3.230.0030.08014.72
5.3.220.0130.06714.60
5.3.210.0100.06714.63
5.3.200.0100.06014.68
5.3.190.0030.07714.68
5.3.180.0100.05714.50
5.3.170.0030.06714.57
5.3.160.0030.07314.60
5.3.150.0070.04314.63
5.3.140.0030.07314.68
5.3.130.0030.07314.48
5.3.120.0030.07714.52
5.3.110.0030.06314.50
5.3.100.0070.07014.11
5.3.90.0130.06714.01
5.3.80.0070.04013.94
5.3.70.0070.07014.04
5.3.60.0170.06314.01
5.3.50.0100.06713.89
5.3.40.0100.05713.89
5.3.30.0030.07013.98
5.3.20.0070.04013.75
5.3.10.0030.04313.71
5.3.00.0170.05713.66
5.2.170.0030.05011.13
5.2.160.0070.06011.05
5.2.150.0070.06011.13
5.2.140.0130.06011.22
5.2.130.0100.05011.00
5.2.120.0030.05011.23
5.2.110.0100.06011.21
5.2.100.0070.05711.16
5.2.90.0070.05011.02
5.2.80.0100.06011.18
5.2.70.0170.02711.03
5.2.60.0030.06010.98
5.2.50.0070.06011.11
5.2.40.0030.06010.86
5.2.30.0070.06010.88
5.2.20.0070.05711.02
5.2.10.0070.05010.73
5.2.00.0000.03010.67
5.1.60.0070.03010.45
5.1.50.0070.05310.45
5.1.40.0070.05010.45
5.1.30.0000.05710.45
5.1.20.0070.03710.45
5.1.10.0030.05710.45
5.1.00.0130.04710.45
5.0.50.0030.04710.45
5.0.40.0030.04310.45
5.0.30.0070.06310.45
5.0.20.0100.03710.45
5.0.10.0030.04310.45
5.0.00.0030.06010.45
4.4.90.0030.03310.45
4.4.80.0000.02310.45
4.4.70.0000.03710.45
4.4.60.0030.03310.45
4.4.50.0000.02710.45
4.4.40.0030.05310.45
4.4.30.0030.03310.45
4.4.20.0000.03710.45
4.4.10.0000.03710.45
4.4.00.0030.05710.45
4.3.110.0000.03710.45
4.3.100.0000.03310.45
4.3.90.0000.03310.45
4.3.80.0030.02710.45
4.3.70.0070.03010.45
4.3.60.0000.03310.45
4.3.50.0070.03010.45
4.3.40.0030.05310.45
4.3.30.0000.03710.45
4.3.20.0070.03310.45
4.3.10.0030.03310.45
4.3.00.0030.03310.45

preferences:
46.93 ms | 403 KiB | 5 Q