3v4l.org

run code in 300+ PHP versions simultaneously
<form enctype="multipart/form-data" action="_URL_" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="30000"> Invia questo file: <input name="userfile" type="file"> <input type="submit" value="Invia File"> </form> <? $uploaddir = '_UPLOADDIR_'; $FILE_MAX_SIZE = '_DIM_'; if ($_FILES['userfile']['size'] < $MAX_FILE_SIZE) { if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploaddir . $_FILES['userfile']['name'])) { print "Il file è valido, e inviato con successo."; } else { print "Possibile attacco tramite file upload!"; } } else { print "Dimensioni del file eccessive, il file non può superare i ".$MAX_FILE_SIZE." bytes."; } ?>

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.00718.55
8.3.50.0110.00621.20
8.3.40.0040.01118.68
8.3.30.0040.01120.36
8.3.20.0050.00320.29
8.3.10.0030.00520.92
8.3.00.0050.00322.52
8.2.180.0090.00618.04
8.2.170.0030.01722.96
8.2.160.0070.00722.12
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0040.00420.66
8.2.110.0030.00619.21
8.2.100.0040.00717.72
8.2.90.0020.00519.06
8.2.80.0040.00417.97
8.2.70.0090.00017.50
8.2.60.0080.00017.90
8.2.50.0030.00618.07
8.2.40.0000.00818.15
8.2.30.0000.00719.31
8.2.20.0080.00017.40
8.2.10.0040.00417.61
8.2.00.0030.00617.55
8.1.280.0000.01425.92
8.1.270.0060.00323.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.75
8.1.230.0080.00317.82
8.1.220.0040.00418.77
8.1.210.0040.00419.16
8.1.200.0040.00417.23
8.1.190.0000.00717.39
8.1.180.0100.00018.10
8.1.170.0040.00418.64
8.1.160.0000.00918.76
8.1.150.0040.00418.50
8.1.140.0000.00717.31
8.1.130.0000.00717.69
8.1.120.0030.00317.20
8.1.110.0030.00617.32
8.1.100.0040.00417.24
8.1.90.0020.00517.31
8.1.80.0070.00017.32
8.1.70.0070.00017.20
8.1.60.0070.00017.35
8.1.50.0000.00917.34
8.1.40.0000.00717.37
8.1.30.0090.00017.39
8.1.20.0030.00617.39
8.1.10.0020.00517.44
8.1.00.0030.00517.39
8.0.300.0040.00419.77
8.0.290.0070.00017.05
8.0.280.0030.00318.29
8.0.270.0080.00017.20
8.0.260.0040.00416.71
8.0.250.0030.00316.73
8.0.240.0080.00016.71
8.0.230.0040.00416.81
8.0.220.0040.00416.80
8.0.210.0030.00316.73
8.0.200.0060.00016.82
8.0.190.0000.00716.84
8.0.180.0040.00416.79
8.0.170.0020.00516.72
8.0.160.0050.00216.64
8.0.150.0000.00716.71
8.0.140.0040.00416.77
8.0.130.0030.00313.35
8.0.120.0000.00816.75
8.0.110.0020.00516.58
8.0.100.0040.00416.80
8.0.90.0050.00216.74
8.0.80.0100.00616.73
8.0.70.0050.00316.78
8.0.60.0050.00316.56
8.0.50.0000.00716.59
8.0.30.0120.00716.90
8.0.20.0110.00817.40
8.0.10.0040.00416.82
8.0.00.0140.00716.66
7.4.330.0060.00014.88
7.4.320.0060.00016.32
7.4.300.0030.00316.45
7.4.290.0040.00416.46
7.4.280.0050.00316.44
7.4.270.0080.00016.41
7.4.260.0030.00313.23
7.4.250.0000.00716.44
7.4.240.0030.00316.44
7.4.230.0000.00716.55
7.4.220.0120.00416.43
7.4.210.0090.00816.35
7.4.200.0040.00416.34
7.4.190.0040.00316.64
7.4.160.0100.01316.18
7.4.150.0180.00017.40
7.4.140.0090.00817.86
7.4.130.0070.01116.24
7.4.120.0090.00816.40
7.4.110.0060.01016.43
7.4.100.0100.00616.32
7.4.90.0110.00616.31
7.4.80.0060.00919.39
7.4.70.0060.00916.36
7.4.60.0100.00616.48
7.4.50.0080.00016.43
7.4.40.0060.00922.77
7.4.30.0060.01016.42
7.4.00.0040.01114.82
7.3.330.0000.00513.14
7.3.320.0030.00313.32
7.3.310.0050.00216.23
7.3.300.0000.00716.09
7.3.290.0070.00716.13
7.3.280.0080.00716.14
7.3.270.0090.00617.40
7.3.260.0070.01118.24
7.3.250.0070.01016.34
7.3.240.0120.00316.16
7.3.230.0090.00916.39
7.3.210.0070.01016.23
7.3.200.0110.00619.39
7.3.190.0090.01216.38
7.3.180.0000.01616.50
7.3.170.0080.00816.30
7.3.160.0060.01016.35
7.3.120.0130.00314.99
7.3.00.0030.01016.79
7.2.330.0130.00316.26
7.2.320.0070.01016.66
7.2.310.0030.01416.26
7.2.300.0060.01216.23
7.2.290.0070.00816.41
7.2.130.0110.00317.04
7.2.120.0100.00717.11
7.2.110.0070.00716.86
7.2.100.0060.00317.08
7.2.90.0140.00016.79
7.2.80.0100.00717.01
7.2.70.0070.00416.71
7.2.60.0070.01017.09
7.2.50.0000.01516.93
7.2.40.0030.01016.94
7.2.30.0030.00916.99
7.2.20.0030.01016.75
7.2.10.0090.00616.84
7.2.00.0040.00918.21
7.1.250.0090.00615.75
7.1.240.0070.01015.55
7.1.230.0070.00315.85
7.1.220.0100.00315.64
7.1.210.0120.00315.74
7.1.200.0050.00915.94
7.1.190.0030.01015.61
7.1.180.0070.01015.89
7.1.170.0030.01015.79
7.1.160.0090.00615.82
7.1.150.0030.01315.90
7.1.140.0090.00615.75
7.1.130.0030.00715.91
7.1.120.0070.00715.66
7.1.110.0070.00315.80
7.1.100.0030.00816.98
7.1.90.0060.00315.57
7.1.80.0000.01115.76
7.1.70.0060.00616.49
7.1.60.0030.01317.29
7.1.50.0090.00716.34
7.1.40.0100.00315.88
7.1.30.0000.00915.89
7.1.20.0050.00315.83
7.1.10.0070.00715.71
7.1.00.0020.04619.05
7.0.330.0050.00515.63
7.0.320.0040.00715.45
7.0.310.0090.00315.05
7.0.300.0120.00315.43
7.0.290.0060.00315.11
7.0.280.0000.01015.42
7.0.270.0090.00615.13
7.0.260.0000.00915.46
7.0.250.0030.00915.55
7.0.240.0110.00015.55
7.0.230.0030.01215.37
7.0.220.0060.00815.38
7.0.210.0070.00715.46
7.0.200.0000.00816.04
7.0.190.0100.01015.29
7.0.180.0110.00415.40
7.0.170.0130.00015.40
7.0.160.0090.00615.30
7.0.150.0050.00515.27
7.0.140.0060.04018.84
7.0.130.0070.00715.48
7.0.120.0060.00315.43
7.0.110.0080.03818.54
7.0.100.0040.04218.47
7.0.90.0070.04118.59
7.0.80.0070.04118.56
7.0.70.0050.04318.51
7.0.60.0050.04018.56
7.0.50.0050.02418.64
7.0.40.0070.02716.63
7.0.30.0050.02516.80
7.0.20.0070.03516.75
7.0.10.0060.04116.63
7.0.00.0050.02716.79
5.6.380.0030.01014.64
5.6.370.0070.00714.16
5.6.360.0030.00914.37
5.6.350.0070.00414.27
5.6.340.0030.00714.36
5.6.330.0060.00614.39
5.6.320.0030.00514.46
5.6.310.0030.00614.44
5.6.300.0040.01114.43
5.6.290.0100.00014.41
5.6.280.0070.03717.62
5.6.270.0100.00314.34
5.6.260.0030.03217.56
5.6.250.0080.03817.53
5.6.240.0020.04617.39
5.6.230.0030.04517.52
5.6.220.0080.04117.38
5.6.210.0040.04117.59
5.6.200.0070.04317.81
5.6.190.0020.04017.78
5.6.180.0020.04017.65
5.6.170.0070.04217.76
5.6.160.0080.04117.47
5.6.150.0030.05017.70
5.6.140.0070.03717.84
5.6.130.0030.04717.70
5.6.120.0040.04517.73
5.6.110.0060.04617.89
5.6.100.0030.04917.86
5.6.90.0050.03917.63
5.6.80.0040.04217.23
5.6.70.0050.03017.16
5.6.60.0050.02517.16
5.6.50.0100.03517.40
5.6.40.0090.04217.36
5.6.30.0050.03817.35
5.6.20.0090.03917.26
5.6.10.0020.04717.42
5.6.00.0020.02617.35
5.5.380.0030.04015.63
5.5.370.0050.04215.77
5.5.360.0070.03515.83
5.5.350.0050.04615.89
5.5.340.0050.04515.84
5.5.330.0050.04115.71
5.5.320.0030.04515.79
5.5.310.0050.04115.86
5.5.300.0050.02715.95
5.5.290.0050.03016.02
5.5.280.0030.04315.93
5.5.270.0040.04716.03
5.5.260.0030.02616.02
5.5.250.0050.02515.87
5.5.240.0020.04115.46
5.5.230.0000.02915.55
5.5.220.0030.03215.51
5.5.210.0020.02415.52
5.5.200.0050.04515.51
5.5.190.0070.02015.65
5.5.180.0040.02215.69
5.5.170.0080.00310.90
5.5.160.0030.03815.53
5.5.150.0040.04315.72
5.5.140.0050.04415.70
5.5.130.0070.04015.50
5.5.120.0060.04115.70
5.5.110.0050.04015.65
5.5.100.0020.04115.41
5.5.90.0040.04115.59
5.5.80.0050.04015.56
5.5.70.0000.04215.47
5.5.60.0060.04015.44
5.5.50.0010.04215.57
5.5.40.0020.04515.53
5.5.30.0030.02715.71
5.5.20.0030.03715.44
5.5.10.0020.02515.36
5.5.00.0050.04015.58
5.4.450.0020.03815.13
5.4.440.0050.03615.23
5.4.430.0050.04515.37
5.4.420.0020.02615.24
5.4.410.0020.04014.97
5.4.400.0100.03215.05
5.4.390.0050.03714.95
5.4.380.0050.03215.20
5.4.370.0050.03515.15
5.4.360.0020.03715.00
5.4.350.0050.04015.09
5.4.340.0040.03914.93
5.4.330.0120.00311.04
5.4.320.0020.04514.98
5.4.310.0080.02714.92
5.4.300.0120.03515.01
5.4.290.0040.03715.00
5.4.280.0030.04514.96
5.4.270.0050.04015.06
5.4.260.0020.04215.10
5.4.250.0020.04615.00
5.4.240.0060.03814.87
5.4.230.0050.04014.95
5.4.220.0050.02615.08
5.4.210.0090.03514.88
5.4.200.0030.04414.80
5.4.190.0020.04114.98
5.4.180.0060.04614.88
5.4.170.0030.03515.01
5.4.160.0070.02915.07
5.4.150.0070.03215.05
5.4.140.0040.03713.48
5.4.130.0040.03913.68
5.4.120.0040.03813.62
5.4.110.0090.03513.65
5.4.100.0030.03613.53
5.4.90.0060.03113.59
5.4.80.0070.03613.68
5.4.70.0060.03813.64
5.4.60.0060.03913.61
5.4.50.0070.02113.80
5.4.40.0050.04213.65
5.4.30.0080.03913.76
5.4.20.0080.04013.59
5.4.10.0090.04013.64
5.4.00.0070.03813.34
5.3.290.0080.03812.51
5.3.280.0030.04012.38
5.3.270.0050.04012.36
5.3.260.0000.03812.42
5.3.250.0040.02112.35
5.3.240.0030.03812.38
5.3.230.0050.04012.37
5.3.220.0040.02612.32
5.3.210.0050.04112.31
5.3.200.0050.03812.41
5.3.190.0030.03112.35
5.3.180.0060.03912.36
5.3.170.0080.03712.31
5.3.160.0070.04012.37
5.3.150.0080.03512.43
5.3.140.0070.03812.32
5.3.130.0050.04212.35
5.3.120.0070.03712.32
5.3.110.0020.04112.34
5.3.100.0080.03712.06
5.3.90.0080.03612.16
5.3.80.0090.03512.16
5.3.70.0070.03712.09
5.3.60.0090.03312.10
5.3.50.0020.04212.09
5.3.40.0060.03612.03
5.3.30.0090.01812.01
5.3.20.0030.04011.92
5.3.10.0050.03411.96
5.3.00.0060.02611.94
5.2.170.0060.03210.58
5.2.160.0070.02810.65
5.2.150.0020.03410.65
5.2.140.0060.03210.67
5.2.130.0030.03210.56
5.2.120.0060.02710.63
5.2.110.0060.03010.74
5.2.100.0050.01510.64
5.2.90.0050.03210.62
5.2.80.0020.03810.62
5.2.70.0060.03110.61
5.2.60.0050.03410.54
5.2.50.0040.03110.65
5.2.40.0070.02810.69
5.2.30.0070.03110.61
5.2.20.0020.03310.54
5.2.10.0030.03310.54
5.2.00.0050.02810.47
5.1.60.0040.02810.35
5.1.50.0030.02610.35
5.1.40.0090.02210.35
5.1.30.0040.02210.35
5.1.20.0020.03210.35
5.1.10.0030.02210.35
5.1.00.0030.01510.35
5.0.50.0000.02810.35
5.0.40.0020.02410.35
5.0.30.0040.02210.35
5.0.20.0020.02210.35
5.0.10.0000.01710.35
5.0.00.0030.03310.35
4.4.90.0020.02010.35
4.4.80.0040.01810.35
4.4.70.0030.02010.35
4.4.60.0030.02010.35
4.4.50.0040.01710.35
4.4.40.0020.02810.35
4.4.30.0020.01810.35
4.4.20.0000.02010.35
4.4.10.0020.01010.35
4.4.00.0000.02010.35
4.3.110.0030.00910.35
4.3.100.0030.01510.35
4.3.90.0020.01710.35
4.3.80.0000.02810.35
4.3.70.0000.02210.35
4.3.60.0030.01510.35
4.3.50.0020.01910.35
4.3.40.0020.02510.35
4.3.30.0020.02010.35
4.3.20.0030.01810.35
4.3.10.0000.02110.35
4.3.00.0020.01210.35

preferences:
48.26 ms | 401 KiB | 5 Q