3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ftp_server = "fraser.sfu.ca"; // set up basic connection $conn_id = ftp_connect($ftp_server ); // login with username and password $login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); // get contents of the current directory $contents = ftp_nlist($conn_id, "."); // output $contents var_dump($contents); ftp_close($conn_id);

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.00716.38
8.3.50.0070.00716.35
8.3.40.0110.00718.97
8.3.30.0040.01118.66
8.3.20.0030.01020.34
8.3.10.0080.00023.54
8.3.00.0050.00317.92
8.2.180.0040.01118.29
8.2.170.0110.00422.96
8.2.160.0090.00620.44
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00417.50
8.2.110.0100.00022.24
8.2.100.0040.00817.80
8.2.90.0000.00919.09
8.2.80.0050.00317.97
8.2.70.0030.00617.47
8.2.60.0060.00317.75
8.2.50.0040.00418.07
8.2.40.0050.00321.07
8.2.30.0000.00720.64
8.2.20.0080.00017.73
8.2.10.0040.00417.94
8.2.00.0000.00718.14
8.1.280.0100.01025.92
8.1.270.0040.01423.79
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00322.65
8.1.230.0090.00617.66
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0060.00317.25
8.1.180.0050.00318.10
8.1.170.0040.00420.37
8.1.160.0000.00721.95
8.1.150.0000.00718.84
8.1.140.0060.00319.52
8.1.130.0000.00717.39
8.1.120.0040.00417.48
8.1.110.0040.00417.32
8.1.100.0000.00717.43
8.1.90.0000.00717.48
8.1.80.0030.00617.29
8.1.70.0020.00517.32
8.1.60.0070.00017.45
8.1.50.0040.00417.42
8.1.40.0000.00917.50
8.1.30.0060.00317.64
8.1.20.0000.00817.65
8.1.10.0080.00017.59
8.1.00.0040.00417.50
8.0.300.0050.00218.77
8.0.290.0030.00616.63
8.0.280.0030.00318.45
8.0.270.0030.00517.18
8.0.260.0000.00616.74
8.0.250.0040.00316.95
8.0.240.0000.00716.88
8.0.230.0000.00716.98
8.0.220.0050.00216.91
8.0.210.0030.00516.88
8.0.200.0060.00016.85
8.0.190.0070.00416.92
8.0.180.0000.00816.81
8.0.170.0030.00316.96
8.0.160.0000.00716.95
8.0.150.0070.00016.82
8.0.140.0040.00416.91
8.0.130.0050.00013.32
8.0.120.0000.00816.85
8.0.110.0050.00316.89
8.0.100.0000.00716.88
8.0.90.0000.00716.82
8.0.80.0060.00916.94
8.0.70.0040.00416.74
8.0.60.0000.00716.85
8.0.50.0040.00416.78
8.0.30.0130.00716.98
8.0.20.0140.00717.40
8.0.10.0040.00416.92
8.0.00.0080.01216.57
7.4.330.0020.00215.08
7.4.320.0070.00016.43
7.4.300.0030.00316.52
7.4.290.0070.00016.61
7.4.280.0040.00416.52
7.4.270.0000.00716.59
7.4.260.0060.00316.48
7.4.250.0070.00016.37
7.4.240.0020.00516.56
7.4.230.0070.00016.44
7.4.220.0120.00916.64
7.4.210.0040.01116.65
7.4.200.0000.00716.45
7.4.160.0030.01216.59
7.4.150.0140.00417.40
7.4.140.0110.01117.86
7.4.130.0080.01516.53
7.4.120.0090.00916.56
7.4.110.0180.02216.56
7.4.100.0160.00616.73
7.4.90.0100.01316.45
7.4.80.0130.00319.39
7.4.70.0100.00716.64
7.4.60.0120.00316.42
7.4.50.0040.00416.57
7.4.40.0110.00516.60
7.4.30.0040.01416.65
7.4.00.0000.01414.96
7.3.330.0030.00313.14
7.3.320.0050.00013.10
7.3.310.0060.00016.32
7.3.300.0030.00316.30
7.3.290.0080.00816.20
7.3.280.0090.00716.31
7.3.270.0160.00317.40
7.3.260.0040.01616.29
7.3.250.0130.00616.36
7.3.240.0150.00516.22
7.3.230.0080.00916.39
7.3.210.0090.00816.33
7.3.200.0080.00816.50
7.3.190.0060.00916.26
7.3.180.0140.00316.38
7.3.170.0100.00716.30
7.3.160.0130.00316.29
7.2.330.0110.01316.59
7.2.320.0110.00716.48
7.2.310.0050.01116.32
7.2.300.0080.00816.22
7.2.290.0000.01816.61
7.2.60.0060.01016.87
7.2.00.0090.01319.33
7.1.200.0000.01215.57
7.1.100.0030.01217.69
7.1.70.0000.01617.16
7.1.60.0070.01719.50
7.1.50.0030.00916.66
7.1.00.0030.07722.52
7.0.200.0270.01014.34
7.0.60.0070.03719.92
7.0.50.0070.07317.86
7.0.40.0030.04720.27
7.0.30.0200.08320.33
7.0.20.0230.05020.19
7.0.10.0070.06720.04
7.0.00.0130.07720.20
5.6.280.0000.03321.12
5.6.210.0200.06320.76
5.6.200.0170.06318.12
5.6.190.0000.05020.56
5.6.180.0270.07320.59
5.6.170.0370.06020.49
5.6.160.0100.08020.42
5.6.150.0030.04018.20
5.6.140.0000.04318.21
5.6.130.0030.08718.20
5.6.120.0130.07321.00
5.6.110.0130.08021.10
5.6.100.0000.04720.95
5.6.90.0030.06721.07
5.6.80.0130.07720.43
5.5.350.0230.08020.42
5.5.340.0070.04717.89
5.5.330.0070.04720.42
5.5.320.0300.08020.20
5.5.310.0170.05020.28
5.5.300.0070.07017.96
5.5.290.0100.03717.91
5.5.280.0070.05720.79
5.5.270.0170.07320.93
5.5.260.0030.06320.66
5.5.250.0000.07720.54
5.5.240.0100.06720.36
5.4.450.0770.05719.16
5.4.440.0870.06719.50
5.4.430.0830.04319.15
5.4.420.0700.06019.51
5.4.410.0930.04019.40
5.4.400.0800.05019.21
5.4.390.0700.05719.00
5.4.380.0830.05019.14
5.4.370.0800.05719.21
5.4.360.0870.06019.21
5.4.350.0700.06319.25
5.4.340.0700.06019.26
5.4.320.0700.05718.75
5.4.310.0830.06318.89
5.4.300.0900.04019.20
5.4.290.0670.06019.08
5.4.280.0870.04718.96
5.4.270.0900.05019.22
5.4.260.0970.05019.25
5.4.250.0700.07018.84
5.4.240.0870.05319.20
5.4.230.0830.04718.72
5.4.220.0730.06019.16
5.4.210.0830.05719.20
5.4.200.0830.04318.76
5.4.190.0930.04319.25
5.4.180.0730.05718.76
5.4.170.0830.04318.93
5.4.160.0900.04319.15
5.4.150.0800.04718.80
5.4.140.0730.05316.32
5.4.130.0770.04316.40
5.4.120.0900.05316.30
5.4.110.0730.05016.40
5.4.100.0770.04716.07
5.4.90.0700.05016.30
5.4.80.0730.04716.20
5.4.70.0030.03716.07
5.4.60.0230.03716.48
5.4.50.0000.07716.41
5.4.40.0230.06716.36
5.4.30.0030.05716.39
5.4.20.0000.06016.38
5.4.10.0330.05716.38

preferences:
53.25 ms | 400 KiB | 5 Q