3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo (string $a) { var_dump($a); } $a = "a"; foo($a);

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.0.0beta10.0100.00716.71
8.0.0alpha30.0070.01516.63
8.0.0alpha20.0130.00716.56
8.0.0alpha10.0070.01016.54
7.4.80.0130.00316.31
7.4.70.0150.00616.44
7.4.60.0090.00916.39
7.4.50.0060.00316.63
7.4.40.0000.01822.77
7.4.30.0120.00816.37
7.4.00.0080.00714.83
7.3.200.0100.00719.39
7.3.190.0000.01616.51
7.3.180.0060.00916.46
7.3.170.0080.01416.27
7.3.160.0100.00716.45
7.3.120.0100.00615.00
7.2.320.0080.00816.54
7.2.310.0070.01016.25
7.2.300.0100.00716.57
7.2.290.0060.00916.48
7.2.60.0100.00316.41
7.2.00.0100.00719.48
7.1.200.0090.00315.79
7.1.100.0110.00418.15
7.1.70.0090.00916.84
7.1.60.0100.01019.32
7.1.50.0030.01717.01
7.1.00.0030.07722.36
7.0.200.0080.00316.57
7.0.140.0030.07022.04
7.0.100.0100.06719.95
7.0.90.0070.05719.97
7.0.80.0130.08719.95
7.0.70.0100.07319.86
7.0.60.0170.07019.76
7.0.50.0100.06720.18
7.0.40.0100.05720.09
7.0.30.0070.08020.07
7.0.20.0030.07320.13
7.0.10.0130.08020.17
7.0.00.0200.04320.09
5.6.280.0030.07320.87
5.6.250.0170.08020.63
5.6.240.0130.03720.59
5.6.230.0070.09020.66
5.6.220.0030.05320.68
5.6.210.0070.05020.59
5.6.200.0070.08021.04
5.6.190.0070.05021.05
5.6.180.0230.06321.16
5.6.170.0100.06720.99
5.6.160.0070.08320.92
5.6.150.0070.06021.02
5.6.140.0100.04721.10
5.6.130.0170.04021.17
5.6.120.0000.06321.00
5.6.110.0000.05321.00
5.6.100.0070.05021.07
5.6.90.0130.07021.06
5.6.80.0070.07720.34
5.6.70.0070.04720.40
5.6.60.0030.08020.39
5.6.50.0100.05720.35
5.6.40.0030.07320.31
5.6.30.0030.06320.39
5.6.20.0070.07320.40
5.6.10.0070.08720.29
5.6.00.0030.07720.45
5.5.380.0000.06020.33
5.5.370.0030.05320.27
5.5.360.0070.05320.34
5.5.350.0070.08020.41
5.5.340.0070.07720.86
5.5.330.0130.07020.75
5.5.320.0130.07720.69
5.5.310.0070.09320.75
5.5.300.0070.04020.77
5.5.290.0030.04720.94
5.5.280.0030.08320.76
5.5.270.0070.05020.72
5.5.260.0130.05320.85
5.5.250.0100.06020.67
5.5.240.0070.04320.11
5.5.230.0100.07720.30
5.5.220.0100.06320.25
5.5.210.0100.06320.30
5.5.200.0030.03720.27
5.5.190.0130.05720.11
5.5.180.0070.08320.12
5.5.160.0030.07020.16
5.5.150.0070.07020.06
5.5.140.0130.03020.26
5.5.130.0100.05719.99
5.5.120.0100.04320.11
5.5.110.0170.07320.23
5.5.100.0000.09020.10
5.5.90.0130.07720.15
5.5.80.0030.08320.15
5.5.70.0030.08020.00
5.5.60.0070.07720.06
5.5.50.0070.07720.15
5.5.40.0170.07320.16
5.5.30.0130.06320.13
5.5.20.0070.06320.00
5.5.10.0100.08020.07
5.5.00.0070.04719.95
5.4.450.0030.04319.37
5.4.440.0070.04019.51
5.4.430.0030.07319.37
5.4.420.0070.06019.49
5.4.410.0100.03719.33
5.4.400.0070.06019.13
5.4.390.0070.06319.14
5.4.380.0130.04019.25
5.4.370.0030.04019.21
5.4.360.0030.08019.03
5.4.350.0070.04019.14
5.4.340.0170.05719.14
5.4.320.0070.04318.91
5.4.310.0070.05719.13
5.4.300.0000.08019.12
5.4.290.0170.04319.20
5.4.280.0030.08319.23
5.4.270.0000.04019.21
5.4.260.0070.07319.03
5.4.250.0100.05019.20
5.4.240.0130.05719.13
5.4.230.0070.08019.08
5.4.220.0130.05019.19
5.4.210.0030.07319.08
5.4.200.0100.05319.02
5.4.190.0170.03719.02
5.4.180.0100.07319.08
5.4.170.0200.06019.12
5.4.160.0130.07018.83
5.4.150.0130.05018.88
5.4.140.0130.05716.40
5.4.130.0130.06016.36
5.4.120.0030.06716.39
5.4.110.0030.05316.36
5.4.100.0070.07016.48
5.4.90.0130.06316.43
5.4.80.0100.03316.40
5.4.70.0070.04316.48
5.4.60.0000.06716.29
5.4.50.0000.04016.44
5.4.40.0030.04716.36
5.4.30.0030.07016.44
5.4.20.0030.07716.24
5.4.10.0030.05016.37
5.4.00.0170.03015.65
5.3.290.0030.06314.71
5.3.280.0030.04314.52
5.3.270.0100.07714.67
5.3.260.0100.06714.72
5.3.250.0070.07314.69
5.3.240.0100.07014.71
5.3.230.0000.05014.63
5.3.220.0030.05314.59
5.3.210.0170.06014.68
5.3.200.0170.06014.54
5.3.190.0070.07714.54
5.3.180.0000.05314.68
5.3.170.0070.04014.68
5.3.160.0070.03714.54
5.3.150.0030.04014.70
5.3.140.0130.05714.47
5.3.130.0030.06314.55
5.3.120.0100.06014.48
5.3.110.0030.04314.56
5.3.100.0130.06314.02
5.3.90.0070.08014.03
5.3.80.0070.06714.12
5.3.70.0070.07714.15
5.3.60.0070.05014.13
5.3.50.0100.03313.96
5.3.40.0100.07313.95
5.3.30.0070.05013.88
5.3.20.0070.06313.57
5.3.10.0130.02313.71
5.3.00.0000.08013.77
5.2.170.0030.05011.20
5.2.160.0070.03710.99
5.2.150.0000.04311.05
5.2.140.0000.05711.25
5.2.130.0030.03711.14
5.2.120.0070.02711.20
5.2.110.0030.05711.09
5.2.100.0070.05711.21
5.2.90.0070.06011.20
5.2.80.0130.06010.95
5.2.70.0000.04711.07
5.2.60.0070.06011.19
5.2.50.0070.04711.11
5.2.40.0030.03010.89
5.2.30.0100.05711.07
5.2.20.0000.04710.96
5.2.10.0030.05310.76
5.2.00.0130.02710.82
5.1.60.0000.04710.07
5.1.50.0030.0339.87
5.1.40.0100.03710.00
5.1.30.0030.03310.45
5.1.20.0100.02010.28
5.1.10.0030.02310.05
5.1.00.0070.03310.18
5.0.50.0030.0309.17
5.0.40.0070.0439.17
5.0.30.0030.0439.17
5.0.20.0030.0209.17
5.0.10.0030.0309.17
5.0.00.0000.0339.17
4.4.90.0030.0209.17
4.4.80.0070.0279.17
4.4.70.0000.0279.17
4.4.60.0000.0379.17
4.4.50.0030.0139.17
4.4.40.0000.0409.17
4.4.30.0070.0239.17
4.4.20.0000.0179.17
4.4.10.0000.0239.17
4.4.00.0000.0339.17
4.3.110.0030.0279.17
4.3.100.0030.0139.17
4.3.90.0030.0309.17
4.3.80.0030.0439.17
4.3.70.0030.0279.17
4.3.60.0070.0209.17
4.3.50.0030.0209.17
4.3.40.0100.0439.17
4.3.30.0000.0179.17
4.3.20.0030.0179.17
4.3.10.0030.0279.17
4.3.00.0000.0379.17