3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(isset($_POST['log'])){ $nm = $_POST['nm']; $ds = $_POST['dl']; foreach($_FILES ['files']["tmp_name"] as $key => $name_tmp){ $name = $_FILES['files']['name'] [$key]; $tmpnm = $_FILES['files']['tmp_name'] [$key]; $type = $_FILES['files']['type'][$key]; $size = $_FILES['files']['size'][$key]; $dir = "filedata".$name; $move = move_uploaded_file($tmpnmn,$dir); if ($move){ echo "<script>alert('terima kasih')</script>"; } else { echo "<script>alert('gagal upload')</script>"; } } } ?> <form action="" method="post" enctype="multipart/form-data"> <p> <label>File</label> <input type="file" name="file[]" multiple/> </p> <p> <label>Name</label> <input type="text" name="nm"/> </p> <p> <textarea rows="10" cols="25" name="dl"></textarea> </p> <p> <input type="submit" name="log" value="upload"/> </p> </form>

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.01416.61
8.3.50.0120.00921.92
8.3.40.0110.00718.77
8.3.30.0110.00418.86
8.3.20.0070.00020.36
8.3.10.0080.00023.66
8.3.00.0080.00017.68
8.2.180.0000.01518.17
8.2.170.0140.00022.96
8.2.160.0130.00320.50
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0050.00326.16
8.2.120.0030.00617.63
8.2.110.0060.00622.26
8.2.100.0040.00817.92
8.2.90.0030.00519.22
8.2.80.0080.00017.97
8.2.70.0000.00817.50
8.2.60.0000.00818.03
8.2.50.0040.00418.07
8.2.40.0000.00721.13
8.2.30.0050.00220.64
8.2.20.0000.00817.57
8.2.10.0030.00518.12
8.2.00.0040.00417.95
8.1.280.0090.00625.92
8.1.270.0120.00623.97
8.1.260.0030.00526.35
8.1.250.0090.00028.09
8.1.240.0030.00722.52
8.1.230.0040.00719.13
8.1.220.0000.00717.74
8.1.210.0000.00818.77
8.1.200.0030.00617.21
8.1.190.0000.00817.23
8.1.180.0070.00018.10
8.1.170.0030.00518.66
8.1.160.0040.00422.04
8.1.150.0030.00318.79
8.1.140.0030.00519.40
8.1.130.0040.00417.65
8.1.120.0030.00317.35
8.1.110.0040.00417.39
8.1.100.0050.00217.42
8.1.90.0000.00717.36
8.1.80.0000.00717.43
8.1.70.0080.00017.31
8.1.60.0030.00617.52
8.1.50.0080.00017.48
8.1.40.0040.00417.51
8.1.30.0000.00817.60
8.1.20.0050.00317.64
8.1.10.0030.00617.55
8.1.00.0050.00317.34
8.0.300.0090.00018.77
8.0.290.0040.00516.75
8.0.280.0030.00318.30
8.0.270.0030.00317.24
8.0.260.0000.00817.21
8.0.250.0000.00716.78
8.0.240.0040.00416.79
8.0.230.0070.00016.90
8.0.220.0000.00716.82
8.0.210.0000.00816.86
8.0.200.0030.00316.83
8.0.190.0000.00816.91
8.0.180.0000.00716.79
8.0.170.0040.00416.86
8.0.160.0000.00716.75
8.0.150.0000.00716.68
8.0.140.0030.00316.81
8.0.130.0000.00513.23
8.0.120.0030.00516.73
8.0.110.0040.00416.84
8.0.100.0070.00016.87
8.0.90.0040.00416.64
8.0.80.0090.00916.82
8.0.70.0040.00416.79
8.0.60.0040.00416.74
8.0.50.0070.00016.87
8.0.30.0080.00817.13
8.0.20.0100.00717.40
8.0.10.0040.00416.86
8.0.00.0080.01016.79
7.4.330.0000.00515.08
7.4.320.0000.00616.45
7.4.300.0030.00316.46
7.4.290.0070.00016.38
7.4.280.0070.00316.40
7.4.270.0000.00716.46
7.4.260.0000.00816.55
7.4.250.0070.00016.44
7.4.240.0030.00416.43
7.4.230.0030.00316.36
7.4.220.0100.01016.59
7.4.210.0120.00316.54
7.4.200.0020.00516.65
7.4.160.0100.01016.61
7.4.150.0080.01217.40
7.4.140.0100.00917.86
7.4.130.0100.00816.55
7.4.120.0060.01416.37
7.4.110.0110.01116.36
7.4.100.0140.00416.52
7.4.90.0100.00716.54
7.4.80.0080.00819.39
7.4.70.0100.00716.36
7.4.60.0120.00316.63
7.4.50.0080.00016.53
7.4.40.0070.01016.51
7.4.30.0080.01116.63
7.4.00.0090.00915.07
7.3.330.0030.00313.01
7.3.320.0000.00513.05
7.3.310.0070.00016.14
7.3.300.0000.00716.07
7.3.290.0080.01016.24
7.3.280.0110.00816.25
7.3.270.0070.01717.40
7.3.260.0080.00816.18
7.3.250.0110.00716.25
7.3.240.0120.01016.23
7.3.230.0130.00316.39
7.3.210.0120.00916.50
7.3.200.0140.00316.47
7.3.190.0190.00016.34
7.3.180.0060.01016.50
7.3.170.0030.01216.50
7.3.160.0100.00716.23
7.3.10.0060.00316.64
7.3.00.0060.00316.57
7.2.330.0030.01416.66
7.2.320.0120.01216.67
7.2.310.0130.01016.66
7.2.300.0040.01516.54
7.2.290.0000.01716.38
7.2.130.0070.00716.92
7.2.120.0030.00616.97
7.2.110.0050.00916.63
7.2.100.0090.00516.75
7.2.90.0090.00616.59
7.2.80.0110.00316.66
7.2.70.0080.00716.93
7.2.60.0090.00416.76
7.2.50.0080.00716.60
7.2.40.0330.00716.57
7.2.30.0240.00816.85
7.2.20.0110.00416.89
7.2.10.0070.00716.75
7.2.00.0090.00517.75
7.1.250.0000.00815.60
7.1.230.0130.00315.55
7.1.220.0080.00615.64
7.1.210.0150.00615.77
7.1.200.0530.00315.47
7.1.190.0170.00315.77
7.1.180.0000.01515.53
7.1.170.0030.01215.64
7.1.160.0130.00015.57
7.1.150.0090.00615.65
7.1.140.0110.00315.77
7.1.130.0100.00715.79
7.1.120.0250.01115.70
7.1.110.0100.00615.79
7.1.100.0080.00816.93
7.1.90.0140.00415.57
7.1.80.0120.00315.75
7.1.70.0060.00516.42
7.1.60.0060.01417.56
7.1.50.0140.00716.46
7.1.40.0160.00315.55
7.1.30.0160.00315.86
7.1.20.0210.00015.84
7.1.10.0130.00415.27
7.1.00.0070.03718.97
7.0.310.0110.00415.18
7.0.300.0060.00715.07
7.0.290.0080.00415.07
7.0.280.0430.00315.13
7.0.270.0120.00315.40
7.0.260.0130.00415.41
7.0.250.0040.01215.32
7.0.240.0260.00715.43
7.0.230.0350.00915.20
7.0.220.0110.00815.45
7.0.210.0120.00415.34
7.0.200.0410.00415.07
7.0.190.0120.00615.38
7.0.180.0120.00415.41
7.0.170.0070.00715.25
7.0.160.0110.00715.22
7.0.150.0130.00515.41
7.0.140.0120.00315.40
7.0.130.0120.00415.51
7.0.120.0130.04118.78
7.0.110.0080.03718.66
7.0.100.0370.02018.67
7.0.90.0070.03818.74
7.0.80.0040.03918.68
7.0.70.0060.02618.57
7.0.60.0080.04418.46
7.0.50.0140.02018.73
7.0.40.0070.03416.63
7.0.30.0060.02216.66
7.0.20.0020.03116.75
7.0.10.0080.02316.76
7.0.00.0090.03916.73
5.6.380.0190.00014.55
5.6.370.0140.00314.14
5.6.360.0110.00514.36
5.6.350.0110.00214.05
5.6.340.0100.00314.21
5.6.330.0160.00214.31
5.6.320.0070.00814.33
5.6.310.0060.00914.26
5.6.300.0070.00714.39
5.6.290.0060.00914.13
5.6.280.0050.01917.76
5.6.270.0020.02817.55
5.6.260.0100.04017.45
5.6.250.0080.02417.68
5.6.240.0120.04017.58
5.6.230.0050.02817.45
5.6.220.0080.02317.61
5.6.210.0100.04317.53
5.6.200.0060.04617.48
5.6.190.0120.04217.50
5.6.180.0040.04417.52
5.6.170.0120.02017.37
5.6.160.0100.01917.48
5.6.150.0080.02017.52
5.6.140.0080.04617.59
5.6.130.0050.02317.71
5.6.120.0090.04317.48
5.6.110.0150.03717.50
5.6.100.0120.04217.57
5.6.90.0090.04417.56
5.6.80.0040.04017.41
5.6.70.0050.02417.25
5.6.60.0110.01817.18
5.6.50.0050.04217.22
5.6.40.0170.03317.25
5.6.30.0060.02417.27
5.6.20.0120.03217.20
5.6.10.0030.03817.30
5.6.00.0120.02217.20
5.5.380.0080.03714.36
5.5.370.0100.04014.16
5.5.360.0030.02414.31
5.5.350.0080.03714.18
5.5.340.0120.03814.55
5.5.330.0070.03014.60
5.5.320.0050.02114.46
5.5.310.0070.02214.67
5.5.300.0110.02514.40
5.5.290.0080.03814.31
5.5.280.0110.02214.46
5.5.270.0100.02314.66
5.5.260.0020.04514.36
5.5.250.0070.02814.26
5.5.240.0050.03414.21
5.5.230.0090.03014.14
5.5.220.0100.02014.24
5.5.210.0040.02214.23
5.5.200.0030.04114.10
5.5.190.0060.03514.01
5.5.180.0110.04014.23
5.5.170.0030.01014.05
5.5.160.0050.02214.19
5.5.150.0020.02214.07
5.5.140.0070.01713.98
5.5.130.0060.03514.10
5.5.120.0070.04014.27
5.5.110.0100.04014.19
5.5.100.0040.02213.97
5.5.90.0040.03114.10
5.5.80.0070.03713.86
5.5.70.0070.02014.21
5.5.60.0020.02314.19
5.5.50.0060.02013.97
5.5.40.0060.03614.12
5.5.30.0050.03813.91
5.5.20.0090.03914.05
5.5.10.0100.03514.10
5.5.00.0070.01814.14
5.4.450.0030.03514.96
5.4.440.0090.03515.13
5.4.430.0080.04215.13
5.4.420.0040.04415.00
5.4.410.0120.03015.23
5.4.400.0110.02814.96
5.4.390.0100.03014.99
5.4.380.0100.03114.83
5.4.370.0050.04214.83
5.4.360.0060.01914.85
5.4.350.0090.03514.97
5.4.340.0100.03814.82
5.4.330.0110.00010.75
5.4.320.0120.03215.04
5.4.310.0060.03514.85
5.4.300.0070.01815.09
5.4.290.0060.04114.91
5.4.280.0080.01814.78
5.4.270.0020.02715.04
5.4.260.0100.03714.92
5.4.250.0060.04114.96
5.4.240.0070.02514.82
5.4.230.0060.03014.99
5.4.220.0050.02114.86
5.4.210.0040.02114.93
5.4.200.0050.02514.92
5.4.190.0070.01815.05
5.4.180.0090.02214.96
5.4.170.0100.02314.84
5.4.160.0040.02615.04
5.4.150.0100.01514.84
5.4.140.0090.03813.66
5.4.130.0060.02213.58
5.4.120.0130.03213.71
5.4.110.0040.02013.63
5.4.100.0070.04013.42
5.4.90.0050.03713.62
5.4.80.0130.02813.52
5.4.70.0080.03813.71
5.4.60.0120.03313.44
5.4.50.0080.01713.52
5.4.40.0070.04013.57
5.4.30.0050.03513.71
5.4.20.0080.03513.65
5.4.10.0110.03513.43
5.4.00.0050.03313.44
5.3.290.0030.04412.68
5.3.280.0050.01812.55
5.3.270.0070.04012.58
5.3.260.0050.02012.50
5.3.250.0070.03112.65
5.3.240.0080.03312.61
5.3.230.0070.03712.64
5.3.220.0030.04112.56
5.3.210.0060.04012.55
5.3.200.0070.03512.50
5.3.190.0080.03312.54
5.3.180.0070.03612.51
5.3.170.0050.03812.53
5.3.160.0120.03512.62
5.3.150.0120.02712.57
5.3.140.0040.04012.59
5.3.130.0100.03512.52
5.3.120.0050.02512.59
5.3.110.0050.01812.62
5.3.100.0060.03812.37
5.3.90.0080.03512.29
5.3.80.0040.03412.21
5.3.70.0120.03512.26
5.3.60.0080.02212.26
5.3.50.0070.03512.23
5.3.40.0090.03312.25
5.3.30.0030.03112.21
5.3.20.0040.03612.08
5.3.10.0110.03112.08
5.3.00.0080.02012.13
5.2.170.0050.01710.85
5.2.160.0080.03010.83
5.2.150.0100.02010.85
5.2.140.0050.03310.83
5.2.130.0090.02310.82
5.2.120.0070.01510.83
5.2.110.0030.01510.89
5.2.100.0010.01810.86
5.2.90.0020.01810.93
5.2.80.0030.01810.86
5.2.70.0070.03710.93
5.2.60.0050.02510.86
5.2.50.0010.02210.76
5.2.40.0040.01610.76
5.2.30.0030.02010.87
5.2.20.0040.02910.82
5.2.10.0040.04010.68
5.2.00.0020.03510.66
5.1.60.0010.01710.43
5.1.50.0070.01710.43
5.1.40.0050.02810.43
5.1.30.0080.02010.47
5.1.20.0080.02710.52
5.1.10.0030.02810.43
5.1.00.0080.02710.43
5.0.50.0020.02510.43
5.0.40.0040.02310.43
5.0.30.0050.01810.43
5.0.20.0040.01210.43
5.0.10.0050.01210.43
5.0.00.0050.03310.43
4.4.90.0010.01810.43
4.4.80.0040.01010.43
4.4.70.0040.01910.43
4.4.60.0010.02110.43
4.4.50.0030.02110.43
4.4.40.0080.01310.43
4.4.30.0020.01410.43
4.4.20.0060.00710.43
4.4.10.0070.01510.43
4.4.00.0040.03010.43
4.3.110.0010.01810.43
4.3.100.0000.01910.43
4.3.90.0040.01710.43
4.3.80.0060.02610.43
4.3.70.0030.01010.43
4.3.60.0030.01810.43
4.3.50.0000.01710.43
4.3.40.0050.01210.43
4.3.30.0020.02010.43
4.3.20.0040.01710.43
4.3.10.0020.02010.43
4.3.00.0010.01010.43

preferences:
62.06 ms | 401 KiB | 5 Q