3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function instance() { return new static(); } public function do() { echo "foo"; } } $foo = Foo::instance(); $foo->do();

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.40.0040.01118.71
8.3.30.0040.01118.79
8.3.20.0040.00420.24
8.3.10.0060.00320.36
8.3.00.0000.00919.25
8.2.170.0070.00722.96
8.2.160.0090.00620.57
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0000.00722.16
8.2.110.0060.00320.95
8.2.100.0120.00017.84
8.2.90.0040.00419.28
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0000.00817.92
8.2.50.0040.00418.07
8.2.40.0040.00418.22
8.2.30.0070.00018.06
8.2.20.0040.00417.68
8.2.10.0000.00718.05
8.2.00.0000.00817.54
8.1.270.0050.00322.05
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00717.71
8.1.230.0030.00719.13
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0110.00017.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0050.00318.58
8.1.160.0070.00021.89
8.1.150.0040.00418.77
8.1.140.0040.00417.29
8.1.130.0000.00717.78
8.1.120.0000.00817.38
8.1.110.0060.00317.42
8.1.100.0000.00717.38
8.1.90.0040.00417.29
8.1.80.0000.00717.29
8.1.70.0070.00017.27
8.1.60.0040.00417.46
8.1.50.0000.00817.56
8.1.40.0040.00417.50
8.1.30.0040.00417.50
8.1.20.0020.00517.66
8.1.10.0040.00417.58
8.1.00.0000.00817.38
8.0.300.0070.00018.77
8.0.290.0050.00316.75
8.0.280.0000.00718.37
8.0.270.0000.00717.16
8.0.260.0000.00617.25
8.0.250.0000.00616.85
8.0.240.0000.00616.76
8.0.230.0070.00016.79
8.0.220.0050.00216.82
8.0.210.0030.00316.76
8.0.200.0030.00316.86
8.0.190.0070.00016.93
8.0.180.0000.00816.86
8.0.170.0030.00516.89
8.0.160.0040.00416.76
8.0.150.0070.00016.76
8.0.140.0040.00416.77
8.0.130.0060.00013.29
8.0.120.0050.00316.79
8.0.110.0000.00716.85
8.0.100.0050.00216.87
8.0.90.0030.00316.70
8.0.80.0150.00016.82
8.0.70.0020.00516.70
8.0.60.0040.00416.94
8.0.50.0070.00016.69
8.0.30.0100.01117.18
8.0.20.0120.00817.40
8.0.10.0060.00316.95
8.0.00.0110.00616.76
7.4.330.0050.00015.03
7.4.320.0000.00716.54
7.4.300.0000.00716.50
7.4.290.0000.00716.47
7.4.280.0000.00916.59
7.4.270.0030.00316.50
7.4.260.0030.00316.63
7.4.250.0030.00516.56
7.4.240.0020.00516.58
7.4.230.0040.00416.57
7.4.220.0060.01316.38
7.4.210.0120.00316.42
7.4.200.0030.00316.43
7.4.160.0080.00816.48
7.4.150.0080.01117.40
7.4.140.0070.01317.86
7.4.130.0130.00716.41
7.4.120.0080.01016.52
7.4.110.0140.00316.33
7.4.100.0060.01316.56
7.4.90.0100.00716.47
7.4.80.0160.00619.39
7.4.70.0140.00416.49
7.4.60.0090.00916.45
7.4.50.0000.00616.60
7.4.40.0040.01116.43
7.4.30.0080.00816.24
7.4.00.0100.00314.75
7.3.330.0030.00313.30
7.3.320.0020.00213.04
7.3.310.0000.00716.14
7.3.300.0000.00616.23
7.3.290.0040.01116.24
7.3.280.0060.01116.22
7.3.270.0110.00717.40
7.3.260.0070.01016.29
7.3.250.0130.00516.42
7.3.240.0080.01316.22
7.3.230.0030.01516.39
7.3.210.0110.00816.47
7.3.200.0130.00619.39
7.3.190.0150.00616.48
7.3.180.0110.00416.36
7.3.170.0130.00316.51
7.3.160.0100.01016.46
7.2.330.0030.01516.72
7.2.320.0030.01316.80
7.2.310.0070.01016.42
7.2.300.0120.00916.37
7.2.290.0170.00316.62
7.2.60.0060.01016.77
7.2.00.0030.01419.46
7.1.200.0060.00615.47
7.1.100.0000.01617.73
7.1.70.0030.00516.99
7.1.60.0130.01019.32
7.1.50.0190.01034.41
7.1.00.0030.07722.40
7.0.200.0030.00616.64
7.0.140.0000.07721.97
7.0.60.0030.04321.63
7.0.50.0030.04017.90
7.0.40.0130.04720.21
7.0.30.0230.04720.06
7.0.20.0430.07320.05
7.0.10.0070.08720.23
7.0.00.0070.06020.19
5.6.280.0000.07721.07
5.6.210.0000.04720.55
5.6.200.0000.09018.25
5.6.190.0030.05720.39
5.6.180.0330.05020.63
5.6.170.0370.05020.71
5.6.160.0070.07320.50
5.6.150.0030.04318.16
5.6.140.0100.08018.21
5.6.130.0030.07718.22
5.6.120.0130.07721.09
5.6.110.0100.07021.11
5.6.100.0030.05720.98
5.6.90.0200.05720.98
5.6.80.0130.06720.44
5.5.350.0170.07020.49
5.5.340.0000.04018.09
5.5.330.0130.03320.21
5.5.320.3900.04020.42
5.5.310.0170.04020.41
5.5.300.0070.08017.94
5.5.290.0000.04317.97
5.5.280.0100.08020.77
5.5.270.0100.04720.89
5.5.260.0030.07720.87
5.5.250.0000.07020.62
5.5.240.0230.05020.15
5.4.450.0200.03719.20
5.4.440.0270.04319.41
5.4.430.0330.03319.20
5.4.420.0270.05319.54
5.4.410.0200.04719.51
5.4.400.0130.04019.00
5.4.390.0230.05719.22
5.4.380.0170.04019.14
5.4.370.0070.04719.09
5.4.360.0130.04719.22
5.4.350.0170.04718.84
5.4.340.0270.03019.24
5.4.320.0130.04319.06
5.4.310.0170.03719.06
5.4.300.0130.04018.95
5.4.290.0270.04318.87
5.4.280.0230.04718.98
5.4.270.0130.04318.84
5.4.260.0200.04019.00
5.4.250.0230.06719.00
5.4.240.0200.03319.30
5.4.230.0330.04319.21
5.4.220.0170.04018.94
5.4.210.0270.04018.97
5.4.200.0330.03318.96
5.4.190.0230.04019.09
5.4.180.0300.06318.83
5.4.170.0300.03319.07
5.4.160.0130.05019.18
5.4.150.0130.07718.85
5.4.140.0130.05016.49
5.4.130.0130.06316.37
5.4.120.0330.05716.29
5.4.110.0170.05016.19
5.4.100.0170.03716.40
5.4.90.0270.06316.19
5.4.80.0300.06316.52
5.4.70.0130.06716.18
5.4.60.0230.04316.34
5.4.50.0170.07316.38
5.4.40.0200.07316.43
5.4.30.0270.04716.37
5.4.20.0200.03716.45
5.4.10.0230.07316.55
5.4.00.0130.05715.95
5.3.290.0270.04014.64
5.3.280.0200.08314.60
5.3.270.0200.05314.52
5.3.260.0270.06014.62
5.3.250.0300.07314.66
5.3.240.0300.03714.69
5.3.230.0270.06014.57
5.3.220.0400.07314.53
5.3.210.0230.04314.71
5.3.200.0230.03714.57
5.3.190.0200.04714.57
5.3.180.0200.04014.58
5.3.170.0230.06714.46
5.3.160.0330.07314.62
5.3.150.0270.05314.57
5.3.140.0300.06014.53
5.3.130.0330.07014.52
5.3.120.0200.04314.70
5.3.110.0230.07014.44
5.3.100.0270.04714.26
5.3.90.0270.06314.04
5.3.80.0200.04014.03
5.3.70.0370.03314.13
5.3.60.0300.07314.09
5.3.50.0200.04713.86
5.3.40.0230.04714.03
5.3.30.0270.03013.88
5.3.20.0270.07013.69
5.3.10.0300.04313.58
5.3.00.0270.04013.65
5.2.170.0230.06011.10
5.2.160.0230.03711.10
5.2.150.0170.03311.37
5.2.140.0270.05311.06
5.2.130.0230.04711.18
5.2.120.0170.03711.01
5.2.110.0270.06311.18
5.2.100.0200.03711.02
5.2.90.0270.05311.25
5.2.80.0230.04311.01
5.2.70.0230.05311.15
5.2.60.0200.03710.95
5.2.50.0200.03010.92
5.2.40.0170.02710.90
5.2.30.0230.04710.88
5.2.20.0170.03710.88
5.2.10.0200.05310.76
5.2.00.0270.04710.81
5.1.60.0170.0479.93
5.1.50.0200.03010.22
5.1.40.0170.05310.03
5.1.30.0230.04010.26
5.1.20.0170.03310.36
5.1.10.0200.04310.29
5.1.00.0300.0309.96
5.0.50.0100.0278.54
5.0.40.0070.0278.64
5.0.30.0130.0338.29
5.0.20.0070.0278.18
5.0.10.0130.0378.16
5.0.00.0100.0638.31
4.4.90.0270.0337.71
4.4.80.0130.0337.71
4.4.70.0070.0337.71
4.4.60.0100.0207.71
4.4.50.0100.0237.71
4.4.40.0100.0537.71
4.4.30.0130.0307.71
4.4.20.0100.0307.71
4.4.10.0130.0307.71
4.4.00.0100.0377.71
4.3.110.0070.0237.71
4.3.100.0130.0137.71
4.3.90.0130.0307.71
4.3.80.0100.0377.71
4.3.70.0130.0137.71
4.3.60.0100.0277.71
4.3.50.0100.0207.71
4.3.40.0100.0377.71
4.3.30.0070.0177.71
4.3.20.0070.0207.71
4.3.10.0000.0207.71
4.3.00.0030.0207.71

preferences:
54.46 ms | 400 KiB | 5 Q