3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(isset($_GET['stats'])) { $stats = json_decode(file_get_contents('stats.json')); echo '<h1>Hits: '.$stats->hits.'</h1>'; echo "STATS WAS SET"; } else { // STATS WAS NOT SET $stats = json_decode(file_get_contents('stats.json')); $stats->hits++; file_put_contents('stats.json', json_encode($stats)); echo "STATS WAS NOT SET"; header("Location: http://www.bjcstcharlescounty.org/"); } ?>

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.0110.00418.56
8.3.50.0090.00922.05
8.3.40.0110.00418.90
8.3.30.0070.00719.17
8.3.20.0080.00020.20
8.3.10.0030.00521.95
8.3.00.0050.00522.29
8.2.180.0080.00816.75
8.2.170.0110.00422.96
8.2.160.0120.00619.09
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0030.00726.16
8.2.120.0040.00419.27
8.2.110.0110.00022.27
8.2.100.0090.00317.91
8.2.90.0000.00817.81
8.2.80.0080.00017.97
8.2.70.0030.00617.75
8.2.60.0000.00717.93
8.2.50.0000.00818.07
8.2.40.0100.00018.28
8.2.30.0040.00418.13
8.2.20.0070.00017.68
8.2.10.0000.00817.84
8.2.00.0050.00217.84
8.1.280.0090.00925.92
8.1.270.0070.00022.19
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00022.61
8.1.230.0110.00020.89
8.1.220.0040.00417.74
8.1.210.0050.00319.04
8.1.200.0060.00317.35
8.1.190.0030.00517.66
8.1.180.0030.00518.80
8.1.170.0080.00018.72
8.1.160.0000.00722.08
8.1.150.0050.00218.57
8.1.140.0040.00417.38
8.1.130.0000.00717.88
8.1.120.0030.00417.56
8.1.110.0070.00017.48
8.1.100.0040.00417.50
8.1.90.0020.00517.37
8.1.80.0080.00017.47
8.1.70.0040.00417.34
8.1.60.0080.00017.49
8.1.50.0030.00517.51
8.1.40.0000.00817.53
8.1.30.0000.00817.55
8.1.20.0030.00517.67
8.1.10.0030.00617.62
8.1.00.0100.00017.54
8.0.300.0070.00019.96
8.0.290.0030.00517.18
8.0.280.0000.00818.45
8.0.270.0000.00717.25
8.0.260.0070.00016.96
8.0.250.0030.00316.99
8.0.240.0000.00717.04
8.0.230.0030.00317.10
8.0.220.0000.00716.92
8.0.210.0030.00316.93
8.0.200.0070.00017.11
8.0.190.0040.00417.11
8.0.180.0040.00417.08
8.0.170.0040.00417.04
8.0.160.0050.00217.02
8.0.150.0040.00417.05
8.0.140.0040.00416.95
8.0.130.0030.00313.42
8.0.120.0090.00016.98
8.0.110.0080.00017.02
8.0.100.0070.00017.15
8.0.90.0030.00516.84
8.0.80.0130.00317.08
8.0.70.0000.00717.04
8.0.60.0000.00716.84
8.0.50.0000.00816.93
8.0.30.0150.00517.06
8.0.20.0080.01017.41
8.0.10.0040.00416.89
8.0.00.0070.01116.91
7.4.330.0000.00515.00
7.4.320.0030.00316.52
7.4.300.0000.00716.44
7.4.290.0030.00316.61
7.4.280.0050.00216.42
7.4.270.0000.00716.61
7.4.260.0050.00216.55
7.4.250.0040.00416.47
7.4.240.0080.00016.56
7.4.230.0030.00316.54
7.4.220.0090.00916.55
7.4.210.0070.01216.58
7.4.200.0000.00716.44
7.4.190.0040.00416.57
7.4.160.0070.01016.77
7.4.150.0150.00317.40
7.4.140.0080.01117.86
7.4.130.0120.00516.58
7.4.120.0080.00916.58
7.4.110.0090.00916.63
7.4.100.0160.00316.63
7.4.90.0120.00916.57
7.4.80.0030.01519.39
7.4.70.0140.00516.33
7.4.60.0130.00316.58
7.4.50.0040.00416.51
7.4.40.0040.01422.77
7.4.30.0120.00616.48
7.4.00.0130.00314.93
7.3.330.0020.00213.07
7.3.320.0000.00513.04
7.3.310.0030.00316.19
7.3.300.0030.00316.19
7.3.290.0030.01016.30
7.3.280.0110.00616.41
7.3.270.0120.00917.40
7.3.260.0170.00016.49
7.3.250.0150.00716.35
7.3.240.0060.01116.45
7.3.230.0110.00616.60
7.3.210.0060.01616.48
7.3.200.0060.01219.39
7.3.190.0070.01016.37
7.3.180.0100.01016.16
7.3.170.0070.01016.29
7.3.160.0090.00916.35
7.3.120.0060.00614.54
7.2.330.0110.00516.29
7.2.320.0090.01516.80
7.2.310.0130.01116.58
7.2.300.0060.01016.40
7.2.290.0060.00916.64
7.1.70.0000.01016.94
7.1.60.0100.01319.82
7.1.50.0140.01016.90
7.1.00.0070.07322.30
7.0.200.0070.00016.41
7.0.140.0030.07022.15
7.0.90.0670.07719.98
7.0.80.0300.05319.89
7.0.70.0570.07319.90
7.0.60.0630.07019.97
7.0.50.0670.07320.25
7.0.40.0030.09020.04
7.0.30.0170.07320.10
7.0.20.0000.06720.17
7.0.10.0100.08020.04
7.0.00.0130.07020.06
5.6.280.0000.07721.12
5.6.240.0070.07720.69
5.6.230.0070.07320.54
5.6.220.0100.07020.67
5.6.210.0070.08720.44
5.6.200.0130.05020.96
5.6.190.0070.07021.03
5.6.180.0030.05321.07
5.6.170.0100.08321.17
5.6.160.0100.08021.10
5.6.150.0130.08020.96
5.6.140.0070.07721.01
5.6.130.0100.05020.93
5.6.120.0130.08321.00
5.6.110.0030.08321.08
5.6.100.0170.06321.08
5.6.90.0070.06321.06
5.6.80.0130.05320.39
5.6.70.0130.08020.55
5.6.60.0200.06720.54
5.6.50.0070.07320.48
5.6.40.0030.08320.37
5.6.30.0070.07720.38
5.6.20.0070.06020.52
5.6.10.0130.07320.37
5.6.00.0070.08020.50
5.5.380.0170.07320.37
5.5.370.0070.04320.39
5.5.360.0030.08720.41
5.5.350.0070.06720.44
5.5.340.0100.05020.91
5.5.330.0130.06320.78
5.5.320.0100.08020.76
5.5.310.0070.08020.91
5.5.300.0000.07720.63
5.5.290.0000.08320.64
5.5.280.0000.04720.80
5.5.270.0030.04320.83
5.5.260.0070.07720.81
5.5.250.0030.08320.72
5.5.240.0100.06020.25
5.5.230.0100.05720.27
5.5.220.0100.05720.23
5.5.210.0070.08020.11
5.5.200.0100.08020.25
5.5.190.0070.07720.23
5.5.180.0070.08020.11
5.5.160.0100.04320.13
5.5.150.0100.07720.13
5.5.140.0030.07320.10
5.5.130.0100.07720.23
5.5.120.0030.06720.25
5.5.110.0100.07320.20
5.5.100.0030.08320.07
5.5.90.0070.04720.11
5.5.80.0100.04320.15
5.5.70.0070.08320.03
5.5.60.0030.07720.14
5.5.50.0000.08019.99
5.5.40.0170.06320.07
5.5.30.0030.08719.99
5.5.20.0170.06720.14
5.5.10.0070.07320.13
5.5.00.0030.07719.95
5.4.450.0070.04019.36
5.4.440.0070.07719.47
5.4.430.0030.04019.46
5.4.420.0070.08019.10
5.4.410.0130.06719.31
5.4.400.0030.08319.13
5.4.390.0100.08019.10
5.4.380.0070.04318.79
5.4.370.0030.08319.03
5.4.360.0100.07319.12
5.4.350.0100.07319.14
5.4.340.0100.07018.96
5.4.320.0100.05019.25
5.4.310.0100.04018.98
5.4.300.0170.06719.11
5.4.290.0070.07719.11
5.4.280.0070.05718.94
5.4.270.0070.07319.22
5.4.260.0030.08718.96
5.4.250.0030.05719.14
5.4.240.0130.07019.03
5.4.230.0070.06719.11
5.4.220.0030.07319.08
5.4.210.0030.07319.22
5.4.200.0170.06019.14
5.4.190.0130.07019.03
5.4.180.0070.07719.13
5.4.170.0070.05719.11
5.4.160.0030.05319.09
5.4.150.0070.06718.94
5.4.140.0070.07016.30
5.4.130.0100.06316.29
5.4.120.0100.04016.21
5.4.110.0070.08316.31
5.4.100.0070.06316.45
5.4.90.0130.06716.34
5.4.80.0100.07016.41
5.4.70.0000.07316.20
5.4.60.0070.07316.40
5.4.50.0070.06716.31
5.4.40.0130.07016.24
5.4.30.0030.07316.41
5.4.20.0100.07716.31
5.4.10.0130.04716.33
5.4.00.0070.04315.45
5.3.290.0130.03014.66
5.3.280.0130.07714.59
5.3.270.0070.07314.60
5.3.260.0070.07014.59
5.3.250.0070.05314.56
5.3.240.0070.04014.59
5.3.230.0000.05014.46
5.3.220.0030.04714.53
5.3.210.0100.06714.52
5.3.200.0030.08314.53
5.3.190.0070.07314.55
5.3.180.0170.06714.40
5.3.170.0100.07014.57
5.3.160.0070.07014.50
5.3.150.0170.05314.52
5.3.140.0030.08314.49
5.3.130.0030.06014.53
5.3.120.0100.05314.40
5.3.110.0100.06714.52
5.3.100.0130.07014.03
5.3.90.0030.07713.95
5.3.80.0000.08013.92
5.3.70.0030.07713.87
5.3.60.0070.07713.99
5.3.50.0100.06713.80
5.3.40.0030.07013.71
5.3.30.0030.05313.68
5.3.20.0100.06013.64
5.3.10.0070.07313.50
5.3.00.0100.07013.43
5.2.170.0130.05010.93
5.2.160.0100.05711.06
5.2.150.0030.06310.98
5.2.140.0030.06310.93
5.2.130.0070.06010.93
5.2.120.0030.06711.09
5.2.110.0070.04711.16
5.2.100.0100.05710.93
5.2.90.0070.06011.09
5.2.80.0100.05710.96
5.2.70.0130.05711.15
5.2.60.0070.05710.84
5.2.50.0100.02710.86
5.2.40.0030.05711.01
5.2.30.0070.04310.89
5.2.20.0070.03010.80
5.2.10.0030.03010.80
5.2.00.0000.03010.77
5.1.60.0030.0539.97
5.1.50.0000.0339.99
5.1.40.0030.0279.81
5.1.30.0000.02710.34
5.1.20.0000.03010.27
5.1.10.0030.04310.11
5.1.00.0000.04010.11
5.0.50.0000.0208.56
5.0.40.0030.0178.46
5.0.30.0000.0338.25
5.0.20.0030.0178.19
5.0.10.0000.0338.20
5.0.00.0030.0378.24
4.4.90.0030.0377.18
4.4.80.0030.0207.18
4.4.70.0070.0107.18
4.4.60.0030.0337.18
4.4.50.0030.0207.18
4.4.40.0000.0237.18
4.4.30.0000.0237.18
4.4.20.0030.0137.18
4.4.10.0000.0177.18
4.4.00.0000.0237.18
4.3.110.0000.0177.18
4.3.100.0000.0177.18
4.3.90.0000.0177.18
4.3.80.0000.0237.18
4.3.70.0030.0337.18
4.3.60.0000.0277.18
4.3.50.0000.0177.18
4.3.40.0030.0237.18
4.3.30.0030.0277.18
4.3.20.0070.0107.18
4.3.10.0000.0307.18
4.3.00.0000.0177.18

preferences:
45.51 ms | 401 KiB | 5 Q