3v4l.org

run code in 300+ PHP versions simultaneously
<form enctype="multipart/form-data" action="upload.php" method="POST"><input name="uploadedfile" type="file"/><input type="submit" value="Upload File"/></form> <?php $target_path=basename($_FILES['uploadedfile']['name']);if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'],$target_path)){echo basename($_FILES['uploadedfile']['name'])." has been uploaded";}else{echo "Error!";}?>

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.0130.00718.68
8.3.50.0090.01021.91
8.3.40.0040.01318.75
8.3.30.0140.00019.22
8.3.20.0050.00320.34
8.3.10.0040.00423.53
8.3.00.0080.00022.32
8.2.180.0000.01516.88
8.2.170.0110.00422.96
8.2.160.0100.00720.43
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0090.00626.16
8.2.120.0070.00022.18
8.2.110.0070.00322.13
8.2.100.0040.00817.91
8.2.90.0030.00619.30
8.2.80.0000.00817.97
8.2.70.0040.00717.75
8.2.60.0030.00618.03
8.2.50.0040.00418.07
8.2.40.0030.00518.28
8.2.30.0110.00017.99
8.2.20.0050.00317.84
8.2.10.0040.00417.89
8.2.00.0000.00717.85
8.1.280.0110.00325.92
8.1.270.0040.01122.10
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0090.00023.84
8.1.230.0080.00419.16
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0080.00017.26
8.1.180.0050.00318.10
8.1.170.0060.00318.50
8.1.160.0040.00421.88
8.1.150.0040.00418.66
8.1.140.0000.00817.45
8.1.130.0030.00317.75
8.1.120.0030.00317.46
8.1.110.0000.00717.37
8.1.100.0030.00317.36
8.1.90.0030.00317.36
8.1.80.0030.00517.35
8.1.70.0030.00317.32
8.1.60.0000.00917.55
8.1.50.0030.00617.55
8.1.40.0030.00517.43
8.1.30.0080.00017.66
8.1.20.0040.00417.54
8.1.10.0000.00817.42
8.1.00.0040.00417.51
8.0.300.0040.00418.77
8.0.290.0040.00417.04
8.0.280.0000.00718.31
8.0.270.0040.00417.28
8.0.260.0000.00618.40
8.0.250.0050.00217.02
8.0.240.0030.00317.04
8.0.230.0030.00316.96
8.0.220.0030.00316.84
8.0.210.0000.00716.93
8.0.200.0030.00316.89
8.0.190.0040.00417.02
8.0.180.0060.00317.00
8.0.170.0000.00816.98
8.0.160.0030.00316.98
8.0.150.0000.00716.86
8.0.140.0050.00316.77
8.0.130.0030.00313.34
8.0.120.0040.00416.79
8.0.110.0040.00316.83
8.0.100.0050.00316.97
8.0.90.0040.00416.79
8.0.80.0080.00816.94
8.0.70.0000.00716.90
8.0.60.0040.00417.00
8.0.50.0000.00716.94
8.0.30.0080.01117.09
8.0.20.0080.01017.40
8.0.10.0050.00217.18
8.0.00.0130.00816.77
7.4.330.0000.00515.00
7.4.320.0000.00616.50
7.4.300.0030.00316.58
7.4.290.0070.00016.52
7.4.280.0000.00816.64
7.4.270.0050.00316.58
7.4.260.0000.00716.62
7.4.250.0000.00716.47
7.4.240.0030.00516.51
7.4.230.0070.00016.58
7.4.220.0070.01716.46
7.4.210.0100.00516.56
7.4.200.0030.00316.62
7.4.190.0070.00016.57
7.4.160.0120.00916.47
7.4.150.0190.01017.40
7.4.140.0130.00617.86
7.4.130.0100.00716.46
7.4.120.0070.01416.57
7.4.110.0120.00916.54
7.4.100.0130.00316.60
7.4.90.0120.00416.45
7.4.80.0160.00319.39
7.4.70.0100.00716.48
7.4.60.0060.01116.47
7.4.50.0030.00516.50
7.4.40.0030.00922.77
7.4.30.0100.01316.69
7.4.00.0050.01114.90
7.3.330.0050.00013.20
7.3.320.0060.00013.11
7.3.310.0000.00716.21
7.3.300.0000.00716.16
7.3.290.0070.00716.23
7.3.280.0110.00916.25
7.3.270.0000.01817.40
7.3.260.0110.00716.59
7.3.250.0080.00916.31
7.3.240.0110.01116.36
7.3.230.0100.00716.39
7.3.210.0120.00316.37
7.3.200.0080.01419.39
7.3.190.0090.01416.39
7.3.180.0130.00316.63
7.3.170.0060.01616.33
7.3.160.0030.01316.45
7.3.120.0070.00914.79
7.3.110.0060.01214.64
7.3.100.0040.01514.66
7.3.90.0070.01114.95
7.3.80.0060.00615.13
7.3.70.0060.00314.79
7.3.60.0100.00314.78
7.3.50.0040.01114.56
7.3.40.0000.00814.74
7.3.30.0110.00414.60
7.3.20.0070.00316.78
7.3.10.0060.00416.64
7.3.00.0060.00916.46
7.2.330.0070.01016.75
7.2.320.0140.00316.38
7.2.310.0070.01016.46
7.2.300.0090.00916.71
7.2.290.0090.00916.39
7.2.250.0070.01314.73
7.2.240.0090.00915.19
7.2.230.0100.00314.93
7.2.220.0040.01215.09
7.2.210.0100.00314.70
7.2.200.0040.00815.13
7.2.190.0110.00314.82
7.2.180.0070.00714.98
7.2.170.0030.01014.68
7.2.130.0040.01216.98
7.2.120.0140.00016.85
7.2.110.0040.01116.57
7.2.100.0030.01316.86
7.2.90.0040.00816.64
7.2.80.0000.01117.00
7.2.70.0040.00716.95
7.2.60.0070.00316.89
7.2.50.0060.00316.73
7.2.40.0040.00816.75
7.2.30.0060.00916.75
7.2.20.0060.00916.77
7.2.10.0080.00417.09
7.2.00.0090.01018.25
7.1.330.0000.01515.63
7.1.320.0000.01315.66
7.1.310.0030.01015.55
7.1.300.0060.00615.53
7.1.290.0040.01115.82
7.1.280.0090.00615.63
7.1.270.0080.00615.66
7.1.260.0030.00915.45
7.1.250.0130.00315.89
7.1.100.0000.01218.05
7.1.70.0000.00817.12
7.1.60.0070.01719.29
7.1.50.0230.01334.86
7.1.00.0070.07322.48
7.0.200.0030.00316.75
7.0.140.0030.07321.98
7.0.70.0070.07021.76
7.0.60.0100.04321.76
7.0.50.0070.08022.20
7.0.40.0070.08720.10
7.0.30.0100.06020.02
7.0.20.0030.04020.05
7.0.10.0000.04720.18
7.0.00.0000.05020.06
5.6.280.0030.07321.07
5.6.220.0070.06720.67
5.6.210.0000.06020.61
5.6.200.0070.06721.03
5.6.190.0100.08021.02
5.6.180.0130.05721.08
5.6.170.0070.04021.10
5.6.160.0000.04321.08
5.6.150.0030.04021.00
5.6.140.0030.04021.10
5.6.130.0030.04320.99
5.6.120.0070.03721.05
5.6.110.0000.04320.98
5.6.100.0100.03320.93
5.6.90.0100.07321.14
5.6.80.0070.03320.49
5.6.70.0000.04020.45
5.6.60.0030.03720.44
5.6.50.0030.03720.49
5.6.40.0000.04020.29
5.6.30.0000.04020.44
5.6.20.0000.06320.31
5.6.10.0000.04320.39
5.6.00.0030.03720.33
5.5.360.0130.07720.38
5.5.350.0070.06720.42
5.5.340.0030.08320.64
5.5.330.0030.05320.90
5.5.320.0130.03720.71
5.5.310.0000.05720.80
5.5.300.0070.03720.91
5.5.290.0100.03720.64
5.5.280.0100.03720.64
5.5.270.0070.04020.79
5.5.260.0000.04320.63
5.5.250.0030.04020.68
5.5.240.0000.04020.27
5.5.230.0000.04320.15
5.5.220.0000.04020.28
5.5.210.0030.04320.25
5.5.200.0000.04020.24
5.5.190.0070.06020.14
5.5.180.0000.08720.26
5.5.160.0000.04020.25
5.5.150.0030.07720.16
5.5.140.0030.03020.07
5.5.130.0100.03320.10
5.5.120.0030.05720.15
5.5.110.0000.03320.26
5.5.100.0030.05020.06
5.5.90.0000.03320.05
5.5.80.0070.02720.05
5.5.70.0100.03020.15
5.5.60.0070.03320.14
5.5.50.0070.07720.00
5.5.40.0030.07020.05
5.5.30.0130.07320.14
5.5.20.0130.07319.92
5.5.10.0030.08320.13
5.5.00.0030.05020.07
5.4.450.0030.04019.39
5.4.440.0030.04019.27
5.4.430.0030.07319.30
5.4.420.0030.04319.13
5.4.410.0100.03019.27
5.4.400.0030.03719.23
5.4.390.0000.04019.12
5.4.380.0000.05019.00
5.4.370.0030.03318.96
5.4.360.0000.04019.09
5.4.350.0030.04018.85
5.4.340.0000.03718.98
5.4.320.0030.03719.11
5.4.310.0030.06718.95
5.4.300.0000.06019.14
5.4.290.0000.04019.24
5.4.280.0000.04018.98
5.4.270.0000.04019.07
5.4.260.0000.03718.96
5.4.250.0030.03019.02
5.4.240.0030.03018.88
5.4.230.0030.03318.78
5.4.220.0000.04019.04
5.4.210.0070.03719.09
5.4.200.0070.05718.94
5.4.190.0030.06719.10
5.4.180.0130.06319.13
5.4.170.0070.05019.09
5.4.160.0130.06719.02
5.4.150.0070.07318.75
5.4.140.0070.06716.39
5.4.130.0030.04316.28
5.4.120.0030.07316.36
5.4.110.0070.06016.28
5.4.100.0030.07316.45
5.4.90.0130.06716.41
5.4.80.0070.07316.39
5.4.70.0030.06016.29
5.4.60.0070.05716.38
5.4.50.0030.07316.18
5.4.40.0030.06016.39
5.4.30.0070.05716.18
5.4.20.0070.07016.23
5.4.10.0030.08016.20
5.4.00.0070.07315.83
5.3.290.0000.03714.65
5.3.280.0000.04714.57
5.3.270.0070.05014.46
5.3.260.0000.08014.43
5.3.250.0000.06314.55
5.3.240.0070.07014.55
5.3.230.0030.07714.59
5.3.220.0000.05014.40
5.3.210.0070.03714.57
5.3.200.0000.08314.43
5.3.190.0070.05014.49
5.3.180.0070.06714.42
5.3.170.0030.07314.54
5.3.160.0030.07714.55
5.3.150.0030.07714.54
5.3.140.0070.07014.56
5.3.130.0070.04014.40
5.3.120.0070.07314.53
5.3.110.0030.07014.41
5.3.100.0000.08314.00
5.3.90.0070.07713.88
5.3.80.0030.07313.79
5.3.70.0070.06313.88
5.3.60.0030.07713.97
5.3.50.0000.08313.80
5.3.40.0000.06013.88
5.3.30.0070.06013.84
5.3.20.0100.06713.67
5.3.10.0030.06013.64
5.3.00.0100.07013.63
5.2.170.0000.06712.20
5.2.160.0000.06012.20
5.2.150.0030.06312.20
5.2.140.0070.05712.20
5.2.130.0030.05312.20
5.2.120.0000.06712.20
5.2.110.0030.06312.20
5.2.100.0070.04012.20
5.2.90.0000.06012.20
5.2.80.0030.03312.20
5.2.70.0130.05312.20
5.2.60.0000.06312.20
5.2.50.0000.06312.20
5.2.40.0000.06712.20
5.2.30.0070.06012.20
5.2.20.0030.04712.20
5.2.10.0030.06012.20
5.2.00.0030.06012.20
5.1.60.0000.04012.20
5.1.50.0000.04712.20
5.1.40.0070.05012.20
5.1.30.0000.06012.20
5.1.20.0070.04712.20
5.1.10.0030.05712.20
5.1.00.0070.03012.20
5.0.50.0000.04012.20
5.0.40.0100.04012.20
5.0.30.0030.06012.20
5.0.20.0000.04712.20
5.0.10.0070.04312.20
5.0.00.0000.06312.20
4.4.90.0030.03012.20
4.4.80.0000.03312.20
4.4.70.0030.03012.20
4.4.60.0000.03012.20
4.4.50.0070.03012.20
4.4.40.0000.05312.20
4.4.30.0000.03012.20
4.4.20.0030.03012.20
4.4.10.0030.03312.20
4.4.00.0000.05312.20
4.3.110.0030.02712.20
4.3.100.0000.03712.20
4.3.90.0000.03712.20
4.3.80.0030.05012.20
4.3.70.0000.03312.20
4.3.60.0030.03312.20
4.3.50.0000.03712.20
4.3.40.0000.05012.20
4.3.30.0000.03312.20
4.3.20.0000.03012.20
4.3.10.0000.03712.20
4.3.00.0070.03312.20

preferences:
31.36 ms | 401 KiB | 5 Q