3v4l.org

run code in 300+ PHP versions simultaneously
<html> <title>Status</title> <body> <form action="altaltstatus.php" method="post"> <input type="radio" name="status" value="Here"> Here<br> <input type="radio" name="status" value="Away"> Away<br> <input type="submit" name="submit" value="Update Status" /> </form> <?php if(isset($_POST['submit'])) { $status = $_POST['status']; if (in_array($status, ['Here','Away'])) { file_put_contents(__DIR__.'/status.txt',$status); } else { exit(1); } } ?> </body> </html>

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.00718.55
8.3.50.0140.00716.29
8.3.40.0160.00318.57
8.3.30.0070.00718.70
8.3.20.0080.00019.01
8.3.10.0000.00721.71
8.3.00.0040.00423.61
8.2.180.0140.00018.15
8.2.170.0090.01218.96
8.2.160.0090.00622.96
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0080.00022.13
8.2.120.0040.00426.35
8.2.110.0130.00722.31
8.2.100.0080.00417.72
8.2.90.0000.00819.05
8.2.80.0060.00317.97
8.2.70.0040.00418.04
8.2.60.0030.00518.05
8.2.50.0080.00018.10
8.2.40.0000.00819.47
8.2.30.0050.00319.25
8.2.20.0040.00418.17
8.2.10.0000.00819.84
8.2.00.0000.00819.35
8.1.280.0100.00725.92
8.1.270.0040.00422.07
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0070.01022.45
8.1.230.0000.01117.64
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0080.00017.23
8.1.190.0040.00417.36
8.1.180.0000.00818.10
8.1.170.0040.00418.93
8.1.160.0040.00418.82
8.1.150.0040.00418.74
8.1.140.0050.00317.68
8.1.130.0040.00417.38
8.1.120.0070.00017.42
8.1.110.0000.00717.45
8.1.100.0030.00517.23
8.1.90.0000.00717.39
8.1.80.0080.00017.39
8.1.70.0040.00417.36
8.1.60.0080.00017.55
8.1.50.0000.00817.47
8.1.40.0000.00817.36
8.1.30.0050.00317.57
8.1.20.0040.00417.58
8.1.10.0000.00817.41
8.1.00.0070.00017.46
8.0.300.0040.00420.16
8.0.290.0080.00016.73
8.0.280.0030.00318.31
8.0.270.0040.00417.11
8.0.260.0080.00016.84
8.0.250.0030.00316.87
8.0.240.0050.00316.76
8.0.230.0000.00716.92
8.0.220.0000.00716.79
8.0.210.0000.00716.87
8.0.200.0050.00316.87
8.0.190.0000.00816.79
8.0.180.0040.00416.89
8.0.170.0060.00316.79
8.0.160.0000.00816.73
8.0.150.0030.00616.75
8.0.140.0040.00316.81
8.0.130.0000.00513.30
8.0.120.0040.00416.84
8.0.110.0060.00316.83
8.0.100.0020.00516.68
8.0.90.0000.00716.63
8.0.80.0100.00516.82
8.0.70.0000.00716.73
8.0.60.0000.00816.78
8.0.50.0040.00416.71
8.0.30.0090.00917.08
8.0.20.0150.00317.40
8.0.10.0030.00616.82
8.0.00.0120.00516.54
7.4.330.0000.00515.55
7.4.320.0000.00616.34
7.4.300.0040.00416.59
7.4.290.0000.00716.45
7.4.280.0000.00716.53
7.4.270.0030.00316.46
7.4.260.0040.00416.42
7.4.250.0000.00716.48
7.4.240.0050.00216.45
7.4.230.0000.00816.36
7.4.220.0000.00816.54
7.4.210.0130.00216.53
7.4.200.0040.00416.34
7.4.160.0060.01216.35
7.4.140.0090.00817.86
7.4.130.0120.00616.64
7.4.120.0080.01016.45
7.4.110.0030.01316.30
7.4.100.0120.00616.31
7.4.90.0120.00916.36
7.4.80.0140.01419.39
7.4.70.0110.00616.35
7.4.60.0130.00716.42
7.4.50.0070.01016.61
7.4.40.0060.01616.21
7.4.00.0070.01014.99
7.3.330.0050.00012.94
7.3.320.0050.00013.13
7.3.310.0030.00316.05
7.3.300.0000.00716.22
7.3.290.0000.00716.17
7.3.280.0090.00616.20
7.3.260.0070.01116.30
7.3.240.0110.00816.33
7.3.230.0090.01216.21
7.3.210.0130.00416.29
7.3.200.0060.01016.29
7.3.190.0090.00616.23
7.3.180.0130.00316.20
7.3.170.0130.00716.21
7.3.160.0060.01016.32
7.2.330.0110.00716.58
7.2.320.0030.01616.68
7.2.310.0030.00216.30
7.2.300.0070.01416.67
7.2.290.0120.00916.42
7.2.70.0150.00915.24
7.2.60.0170.01014.81
7.2.50.0200.00714.89
7.2.40.0150.00714.92
7.2.30.0130.01014.93
7.2.20.1140.00615.03
7.2.10.0100.01015.18
7.2.00.0190.00615.12
7.1.200.0130.00515.11
7.1.170.0150.01213.91
7.1.160.0140.00613.75
7.1.150.0160.01013.96
7.1.140.0110.01413.98
7.1.130.0170.00713.74
7.1.120.0170.00613.61
7.1.110.0110.01113.94
7.1.100.0070.01513.54
7.1.90.0170.00314.00
7.1.80.0170.00713.41
7.1.70.0110.00713.37
7.1.60.0250.01231.48
7.1.50.0310.01631.78
7.1.40.0590.00331.61
7.1.30.0340.01331.74
7.1.20.0340.01431.63
7.1.10.0130.01013.53
7.1.00.0090.01213.16

preferences:
61.79 ms | 400 KiB | 5 Q