3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function blah() { $foo = function(){ var_dump(get_called_class()); }; $foo(); } } class Bar extends Foo { }

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.00318.18
8.3.50.0090.00921.95
8.3.40.0070.00718.65
8.3.30.0030.01019.02
8.3.20.0080.00020.30
8.3.10.0000.00722.04
8.3.00.0070.00022.52
8.2.180.0110.00416.63
8.2.170.0110.00422.96
8.2.160.0080.00620.64
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.23
8.2.110.0070.01122.12
8.2.100.0080.00419.32
8.2.90.0080.00019.14
8.2.80.0030.00717.97
8.2.70.0000.00817.38
8.2.60.0000.01117.91
8.2.50.0000.00818.07
8.2.40.0040.00418.03
8.2.30.0000.00717.80
8.2.20.0040.00417.52
8.2.10.0040.00417.57
8.2.00.0090.00017.42
8.1.280.0110.01125.92
8.1.270.0040.00421.91
8.1.260.0080.00026.35
8.1.250.0120.00328.09
8.1.240.0040.00423.76
8.1.230.0040.00819.01
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0030.00617.10
8.1.190.0000.00817.38
8.1.180.0000.00818.10
8.1.170.0030.00518.50
8.1.160.0040.00421.99
8.1.150.0000.00718.42
8.1.140.0070.00017.32
8.1.130.0030.00317.69
8.1.120.0000.00717.32
8.1.110.0080.00017.38
8.1.100.0040.00417.37
8.1.90.0000.00717.16
8.1.80.0000.00817.15
8.1.70.0000.00617.28
8.1.60.0000.00817.43
8.1.50.0040.00417.42
8.1.40.0080.00017.43
8.1.30.0040.00417.32
8.1.20.0040.00417.48
8.1.10.0030.00617.29
8.1.00.0060.00317.22
8.0.300.0050.00218.77
8.0.290.0030.00317.05
8.0.280.0030.00318.15
8.0.270.0030.00317.07
8.0.260.0000.00616.68
8.0.250.0000.00616.73
8.0.240.0050.00216.88
8.0.230.0020.00516.84
8.0.220.0030.00516.75
8.0.210.0000.00716.71
8.0.200.0000.00616.70
8.0.190.0000.00716.70
8.0.180.0000.00816.65
8.0.170.0040.00416.63
8.0.160.0000.00716.67
8.0.150.0040.00416.79
8.0.140.0030.00516.74
8.0.130.0030.00313.19
8.0.120.0090.00016.60
8.0.110.0000.00816.73
8.0.100.0030.00516.62
8.0.90.0050.00316.65
8.0.80.0090.00616.71
8.0.70.0040.00416.71
8.0.60.0050.00216.61
8.0.50.0030.00516.86
8.0.30.0030.01616.91
8.0.20.0050.01417.40
8.0.10.0000.00716.89
8.0.00.0100.01016.59
7.4.330.0000.00615.00
7.4.320.0030.00316.47
7.4.300.0000.00616.36
7.4.290.0030.00316.26
7.4.280.0030.00316.40
7.4.270.0000.00616.42
7.4.260.0080.00016.21
7.4.250.0040.00416.32
7.4.240.0030.00316.37
7.4.230.0070.00016.49
7.4.220.0000.01716.45
7.4.210.0070.00716.39
7.4.200.0000.00716.37
7.4.190.0000.00716.33
7.4.160.0120.00316.29
7.4.150.0100.00717.40
7.4.140.0080.01317.86
7.4.130.0100.00916.31
7.4.120.0140.00616.42
7.4.110.0110.00616.55
7.4.100.0070.01416.37
7.4.90.0040.01416.45
7.4.80.0100.01119.39
7.4.70.0030.01716.50
7.4.60.0070.01016.38
7.4.50.0040.00016.35
7.4.40.0060.01022.77
7.4.30.0110.00416.54
7.4.00.0000.01614.98
7.3.330.0000.00613.15
7.3.320.0050.00012.98
7.3.310.0000.00916.20
7.3.300.0000.00616.13
7.3.290.0030.01016.11
7.3.280.0070.01116.20
7.3.270.0140.00517.40
7.3.260.0090.01316.39
7.3.250.0100.00616.12
7.3.240.0070.00916.01
7.3.230.0130.00316.39
7.3.210.0140.00316.28
7.3.200.0090.00919.39
7.3.190.0160.00016.34
7.3.180.0030.01416.12
7.3.170.0140.00416.27
7.3.160.0060.01016.40
7.3.120.0070.00714.60
7.2.330.0100.00716.54
7.2.320.0110.00716.38
7.2.310.0100.00716.45
7.2.300.0120.00616.57
7.2.290.0000.02116.32
7.2.60.0070.00716.66
7.2.00.0060.00919.01
7.1.200.0050.00815.34
7.1.100.0000.01018.09
7.1.70.0000.00816.88
7.1.60.0100.01319.82
7.1.50.0030.01716.50
7.1.00.0000.08022.34
7.0.200.0000.00916.46
7.0.140.0100.06722.12
7.0.60.0130.06319.89
7.0.50.0100.07717.95
7.0.40.0070.09020.23
7.0.30.0530.03720.08
7.0.20.0270.04320.08
7.0.10.0330.07720.09
7.0.00.0100.04720.23
5.6.280.0070.06720.79
5.6.210.0030.04320.47
5.6.200.0030.04018.24
5.6.190.0100.04020.58
5.6.180.3670.03320.59
5.6.170.0270.08020.55
5.6.160.0000.06320.61
5.6.150.0070.08018.27
5.6.140.0100.08018.20
5.6.130.0030.07718.17
5.6.120.0200.07021.14
5.6.110.0170.06720.98
5.6.100.0070.06021.01
5.6.90.0070.08321.01
5.6.80.0130.05320.52
5.6.70.0300.06020.29
5.5.350.0070.08320.39
5.5.340.0030.04318.07
5.5.330.0270.04720.25
5.5.320.0200.07720.59
5.5.310.0270.07720.29
5.5.300.0030.08717.94
5.5.290.0100.04717.97
5.5.280.0030.06320.97
5.5.270.0100.06320.68
5.5.260.0130.08020.61
5.5.250.0100.08320.47
5.5.240.0070.07720.28
5.4.450.0100.07019.38
5.4.440.0070.07319.55
5.4.430.0000.04719.63
5.4.420.0070.06319.47
5.4.410.0000.05319.36
5.4.400.0030.07319.32
5.4.390.0070.05719.26
5.4.380.0000.04319.15
5.4.370.0000.08018.95
5.4.360.0030.06719.16
5.4.350.0030.07719.31
5.4.340.0030.04718.87
5.4.320.0030.08018.95
5.4.310.0000.05319.16
5.4.300.0030.07019.16
5.4.290.0070.06319.13
5.4.280.0030.04019.21
5.4.270.0100.04019.18
5.4.260.0070.03718.99
5.4.250.0030.04019.15
5.4.240.0070.08019.19
5.4.230.0030.06319.23
5.4.220.0030.07719.21
5.4.210.0070.05019.05
5.4.200.0030.08018.96
5.4.190.0070.06319.21
5.4.180.0070.05018.97
5.4.170.0030.06319.19
5.4.160.0000.07319.05
5.4.150.0000.06018.83
5.4.140.0100.05316.51
5.4.130.0030.07316.36
5.4.120.0070.05316.46
5.4.110.0030.04316.43
5.4.100.0030.07016.59
5.4.90.0030.06016.24
5.4.80.0070.06716.50
5.4.70.0170.04716.59
5.4.60.0030.05016.52
5.4.50.0000.07716.51
5.4.40.0030.06716.32
5.4.30.0030.07716.37
5.4.20.0000.06316.52
5.4.10.0070.07316.48
5.4.00.0030.05716.11
5.3.290.0030.06314.64
5.3.280.0070.05014.68
5.3.270.0030.06714.52
5.3.260.0030.06314.65
5.3.250.0030.07314.62
5.3.240.0070.06014.82
5.3.230.0000.07714.52
5.3.220.0030.07014.47
5.3.210.0000.05014.54
5.3.200.0030.05314.64
5.3.190.0030.07714.53
5.3.180.0030.05014.57
5.3.170.0030.07714.56
5.3.160.0000.04714.68
5.3.150.0000.05314.64
5.3.140.0100.06014.63
5.3.130.0030.06014.64
5.3.120.0070.07014.54
5.3.110.0070.07314.61
5.3.100.0100.06714.04
5.3.90.0000.06313.92
5.3.80.0030.07713.93
5.3.70.0000.06014.00
5.3.60.0030.07313.90
5.3.50.0070.05714.18
5.3.40.0000.06713.98
5.3.30.0070.06713.93
5.3.20.0070.06313.62
5.3.10.0030.03313.58
5.3.00.0130.05013.55
5.2.170.0070.04312.48
5.2.160.0000.03712.48
5.2.150.0100.04712.48
5.2.140.0000.06312.48
5.2.130.0030.06312.48
5.2.120.0030.03712.48
5.2.110.0000.06712.48
5.2.100.0100.03012.48
5.2.90.0030.03712.48
5.2.80.0070.06312.48
5.2.70.0030.03712.48
5.2.60.0030.04312.48
5.2.50.0000.06312.48
5.2.40.0030.06012.48
5.2.30.0000.06712.48
5.2.20.0030.05712.48
5.2.10.0100.05312.48
5.2.00.0070.04312.48
5.1.60.0030.03312.48
5.1.50.0070.04712.48
5.1.40.0070.04012.48
5.1.30.0030.05312.48
5.1.20.0070.05312.48
5.1.10.0070.05312.48
5.1.00.0100.04712.48
5.0.50.0030.04712.48
5.0.40.0030.04712.48
5.0.30.0030.06012.48
5.0.20.0000.04012.48
5.0.10.0000.04712.48
5.0.00.0030.06312.48
4.4.90.0000.03712.48
4.4.80.0030.03312.48
4.4.70.0000.03312.48
4.4.60.0070.03012.48
4.4.50.0000.03012.48
4.4.40.0070.02712.48
4.4.30.0000.02712.48
4.4.20.0070.02712.48
4.4.10.0030.03312.48
4.4.00.0000.04312.48
4.3.110.0030.03312.48
4.3.100.0000.03012.48
4.3.90.0000.04012.48
4.3.80.0070.04712.48
4.3.70.0030.03312.48
4.3.60.0000.02712.48
4.3.50.0000.02712.48
4.3.40.0000.05312.48
4.3.30.0030.02712.48
4.3.20.0030.03712.48
4.3.10.0000.03012.48
4.3.00.0000.02712.48

preferences:
56.37 ms | 401 KiB | 5 Q