3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function a() { echo 'a'; } public static function b() { echo 'b'; } } $x = new Test(); $x::a(); $x::b();

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.0070.01418.68
8.3.50.0130.00516.52
8.3.40.0090.00618.62
8.3.30.0070.00718.71
8.3.20.0000.00818.77
8.3.10.0040.00420.66
8.3.00.0080.00017.50
8.2.180.0150.00316.50
8.2.170.0070.00722.96
8.2.160.0130.00322.13
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0040.00419.83
8.2.110.0050.00521.00
8.2.100.0000.01117.72
8.2.90.0050.00319.08
8.2.80.0030.00618.03
8.2.70.0060.00317.50
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0000.00818.22
8.2.30.0040.00417.87
8.2.20.0040.00417.52
8.2.10.0050.00317.67
8.2.00.0040.00417.72
8.1.280.0070.01425.92
8.1.270.0080.00023.99
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0080.00020.75
8.1.230.0040.00720.86
8.1.220.0040.00418.77
8.1.210.0000.00818.91
8.1.200.0030.00617.48
8.1.190.0040.00417.51
8.1.180.0060.00318.10
8.1.170.0060.00318.87
8.1.160.0040.00418.93
8.1.150.0040.00418.62
8.1.140.0040.00417.42
8.1.130.0030.00317.68
8.1.120.0000.00817.44
8.1.110.0000.00817.36
8.1.100.0040.00417.46
8.1.90.0000.00817.32
8.1.80.0000.00817.32
8.1.70.0050.00317.38
8.1.60.0000.00817.56
8.1.50.0000.00717.42
8.1.40.0000.00717.54
8.1.30.0000.00817.48
8.1.20.0030.00617.65
8.1.10.0040.00417.46
8.1.00.0040.00417.48
8.0.300.0040.00419.98
8.0.290.0000.00916.75
8.0.280.0030.00318.30
8.0.270.0070.00017.20
8.0.260.0000.00716.83
8.0.250.0040.00416.92
8.0.240.0040.00816.91
8.0.230.0030.00416.94
8.0.220.0040.00416.89
8.0.210.0070.00016.80
8.0.200.0030.00316.84
8.0.190.0070.00016.83
8.0.180.0000.00816.80
8.0.170.0080.00016.90
8.0.160.0000.00716.78
8.0.150.0040.00416.88
8.0.140.0000.00716.81
8.0.130.0000.00513.34
8.0.120.0000.00716.81
8.0.110.0080.00016.95
8.0.100.0030.00516.76
8.0.90.0080.00016.79
8.0.80.0070.01016.88
8.0.70.0030.00516.76
8.0.60.0000.00716.77
8.0.50.0000.00716.95
8.0.30.0080.01017.22
8.0.20.0090.01017.18
8.0.10.0000.00717.02
8.0.00.0100.01116.79
7.4.330.0000.00514.72
7.4.320.0060.00016.43
7.4.300.0030.00316.61
7.4.290.0000.00816.42
7.4.280.0060.00316.50
7.4.270.0030.00316.57
7.4.260.0000.00513.25
7.4.250.0050.00516.38
7.4.240.0070.00016.43
7.4.230.0000.00816.54
7.4.220.0180.00616.52
7.4.210.0090.00716.57
7.4.200.0000.00816.34
7.4.190.0070.00016.55
7.4.160.0150.00016.41
7.4.150.0130.00317.18
7.4.140.0120.00817.13
7.4.130.0110.00916.53
7.4.120.0080.00916.47
7.4.110.0140.00316.45
7.4.100.0090.00616.52
7.4.90.0090.00916.60
7.4.80.0090.01218.80
7.4.70.0080.00816.53
7.4.60.0100.00616.48
7.4.50.0030.00516.39
7.4.40.0060.00922.27
7.4.30.0100.00616.70
7.4.00.0070.01115.13
7.3.330.0030.00313.14
7.3.320.0000.00513.32
7.3.310.0000.00816.25
7.3.300.0000.00716.22
7.3.290.0070.00716.41
7.3.280.0080.01116.37
7.3.270.0100.01017.18
7.3.260.0110.01118.24
7.3.250.0130.00716.42
7.3.240.0140.00316.32
7.3.230.0060.01116.50
7.3.210.0110.00716.38
7.3.200.0070.01419.39
7.3.190.0110.01116.36
7.3.180.0050.01016.68
7.3.170.0100.00616.43
7.3.160.0060.00916.70
7.3.120.0100.00715.07
7.2.330.0120.00616.39
7.2.320.0070.01016.72
7.2.310.0060.01316.68
7.2.300.0110.01116.27
7.2.290.0100.00616.41
7.2.60.0030.01016.57
7.2.00.0030.01019.33
7.1.200.0040.00815.68
7.1.100.0040.01118.11
7.1.70.0030.00616.87
7.1.60.0100.01419.40
7.1.50.0090.00916.80
7.1.00.0030.07722.32
7.0.200.0040.00416.45
7.0.140.0000.07322.00
7.0.60.0070.07019.79
7.0.50.0100.06717.85
7.0.40.0170.08020.07
7.0.30.0270.08020.20
7.0.20.0400.07020.15
7.0.10.0000.04720.26
7.0.00.0130.04020.11
5.6.280.0000.07721.12
5.6.210.0070.03720.71
5.6.200.0030.05318.16
5.6.190.0030.07020.42
5.6.180.0500.07320.64
5.6.170.0370.07320.51
5.6.160.0100.08720.51
5.6.150.0070.08318.24
5.6.140.0030.05718.28
5.6.130.0000.05318.11
5.6.120.0070.04720.99
5.6.110.0070.08320.99
5.6.100.0030.08720.96
5.6.90.0070.08321.00
5.6.80.0100.05320.54
5.5.350.0330.06720.44
5.5.340.0130.07018.02
5.5.330.0070.07320.29
5.5.320.0300.08720.27
5.5.310.0230.04320.30
5.5.300.0130.04317.95
5.5.290.0030.04318.04
5.5.280.0030.04320.83
5.5.270.0070.07020.86
5.5.260.0170.07320.72
5.5.250.0070.04020.58
5.5.240.0130.07020.24
5.4.450.0030.05319.47
5.4.440.0000.05019.47
5.4.430.0070.04719.40
5.4.420.0070.03719.40
5.4.410.0030.03719.34
5.4.400.0030.03719.25
5.4.390.0070.07319.16
5.4.380.0030.06319.16
5.4.370.0170.07019.23
5.4.360.0000.06319.11
5.4.350.0070.05019.00
5.4.340.0100.05019.24
5.4.320.0000.07719.00
5.4.310.0000.06019.08
5.4.300.0070.03719.08
5.4.290.0070.07018.87
5.4.280.0000.05318.87
5.4.270.0070.07019.14
5.4.260.0000.04019.20
5.4.250.0000.07719.11
5.4.240.0100.07019.11
5.4.230.0200.06018.91
5.4.220.0070.07719.00
5.4.210.0030.04019.23
5.4.200.0100.05719.11
5.4.190.0000.04019.13
5.4.180.0070.03319.19
5.4.170.0030.04318.86
5.4.160.0030.04319.16
5.4.150.0100.04019.13
5.4.140.0030.04016.59
5.4.130.0000.05016.54
5.4.120.0100.03016.37
5.4.110.0070.05016.27
5.4.100.0030.07716.41
5.4.90.0100.06716.48
5.4.80.0070.07316.38
5.4.70.0070.06716.29
5.4.60.0100.07316.45
5.4.50.0070.07016.39
5.4.40.0070.07716.36
5.4.30.0000.05316.34
5.4.20.0000.04016.32
5.4.10.0030.03716.31
5.4.00.0130.02715.79
5.3.290.0130.05714.66
5.3.280.0030.04714.61
5.3.270.0000.04714.63
5.3.260.0070.08014.64
5.3.250.0000.04314.64
5.3.240.0030.03714.61
5.3.230.0100.03714.61
5.3.220.0070.03314.57
5.3.210.0130.07714.62
5.3.200.0070.04314.57
5.3.190.0070.07014.60
5.3.180.0070.05014.52
5.3.170.0070.05314.70
5.3.160.0000.08314.59
5.3.150.0130.06014.61
5.3.140.0100.04314.55
5.3.130.0030.07714.55
5.3.120.0070.03714.58
5.3.110.0030.07014.60
5.3.100.0030.04014.00
5.3.90.0000.04314.07
5.3.80.0030.04014.03
5.3.70.0070.04314.02
5.3.60.0030.07313.93
5.3.50.0030.07713.95
5.3.40.0030.06014.00
5.3.30.0100.04013.97
5.3.20.0100.06713.71
5.3.10.0100.03013.69
5.3.00.0100.05713.70
5.2.170.0030.03311.15
5.2.160.0070.06011.09
5.2.150.0100.05311.14
5.2.140.0070.02711.16
5.2.130.0130.04011.25
5.2.120.0030.03311.18
5.2.110.0030.02711.11
5.2.100.0070.05711.08
5.2.90.0070.03711.06
5.2.80.0070.03010.98
5.2.70.0100.02311.17
5.2.60.0030.06011.01
5.2.50.0000.03310.94
5.2.40.0070.05711.00
5.2.30.0070.03710.94
5.2.20.0030.05310.97
5.2.10.0030.06310.82
5.2.00.0070.03310.71
5.1.60.0030.05710.15
5.1.50.0130.0279.95
5.1.40.0030.05710.14
5.1.30.0030.03710.48
5.1.20.0030.04710.52
5.1.10.0100.0509.98
5.1.00.0030.05310.08
5.0.50.0100.0438.52
5.0.40.0000.0478.32
5.0.30.0030.0478.21
5.0.20.0000.0208.25
5.0.10.0000.0208.33
5.0.00.0000.0308.23
4.4.90.0030.0178.21
4.4.80.0000.0378.21
4.4.70.0030.0208.21
4.4.60.0030.0178.21
4.4.50.0030.0278.21
4.4.40.0030.0378.21
4.4.30.0000.0208.21
4.4.20.0070.0308.21
4.4.10.0070.0208.21
4.4.00.0030.0508.21
4.3.110.0000.0308.21
4.3.100.0000.0178.21
4.3.90.0000.0178.21
4.3.80.0030.0238.21
4.3.70.0000.0138.21
4.3.60.0000.0138.21
4.3.50.0000.0178.21
4.3.40.0000.0238.21
4.3.30.0000.0178.21
4.3.20.0030.0138.21
4.3.10.0000.0178.21
4.3.00.0000.0138.21

preferences:
39.74 ms | 401 KiB | 5 Q