3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file1 = new \SplFileObject('ftp://ftp.nasdaqtrader.com/SymbolDirectory/nasdaqlisted.txt'); while( !$file1->eof() ) { $data = $file1->fgets(); if( !$file1->eof() ){ echo $data; } // second last } // last

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.0090.00916.88
8.3.50.0120.00821.26
8.3.40.0090.00619.04
8.3.30.0110.00719.04
8.3.20.0040.00420.60
8.3.10.0080.00024.08
8.3.00.0040.00423.82
8.2.180.0110.00816.75
8.2.170.0140.00022.96
8.2.160.0120.00320.47
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0100.00319.77
8.2.120.0040.00426.35
8.2.110.0060.00322.38
8.2.100.0120.00018.18
8.2.90.0000.00819.13
8.2.80.0080.00017.97
8.2.70.0090.00017.88
8.2.60.0080.00018.02
8.2.50.0050.00318.07
8.2.40.0040.00422.45
8.2.30.0070.00019.59
8.2.20.0040.00417.78
8.2.10.0110.00018.02
8.2.00.0000.00718.14
8.1.280.0130.01325.92
8.1.270.0070.00324.13
8.1.260.0050.00328.09
8.1.250.0070.00728.09
8.1.240.0090.00022.59
8.1.230.0040.00719.41
8.1.220.0000.00917.77
8.1.210.0040.00418.77
8.1.200.0030.00617.47
8.1.190.0000.00817.38
8.1.180.0050.00318.10
8.1.170.0030.00618.45
8.1.160.0060.00320.77
8.1.150.0030.00618.96
8.1.140.0030.00519.70
8.1.130.0030.00317.71
8.1.120.0070.00017.62
8.1.110.0080.00017.45
8.1.100.0000.00717.56
8.1.90.0000.00817.59
8.1.80.0000.00717.58
8.1.70.0000.00717.49
8.1.60.0040.00417.57
8.1.50.0000.00817.61
8.1.40.0040.00417.49
8.1.30.0040.00417.72
8.1.20.0000.00817.77
8.1.10.0060.00317.61
8.1.00.0040.00417.61
8.0.300.0050.00218.77
8.0.290.0070.00016.88
8.0.280.0070.00018.55
8.0.270.0000.00717.42
8.0.260.0030.00317.43
8.0.250.0000.00717.08
8.0.240.0000.00717.12
8.0.230.0080.00017.07
8.0.220.0030.00317.01
8.0.210.0020.00517.16
8.0.200.0000.00817.12
8.0.190.0000.00817.09
8.0.180.0040.00416.95
8.0.170.0030.00617.02
8.0.160.0040.00417.04
8.0.150.0040.00417.02
8.0.140.0000.00716.96
8.0.130.0030.00613.55
8.0.120.0030.00617.16
8.0.110.0050.00317.08
8.0.100.0080.00017.04
8.0.90.0000.00717.09
8.0.80.0150.00617.15
8.0.70.0000.00717.07
8.0.60.0040.00417.07
8.0.50.0040.00417.10
8.0.30.0090.00917.46
8.0.20.0110.01017.44
8.0.10.0000.00817.23
8.0.00.0100.00916.87
7.4.330.0000.00517.11
7.4.320.0060.00016.66
7.4.300.0030.00316.67
7.4.290.0030.00616.57
7.4.280.0090.00016.59
7.4.270.0030.00316.63
7.4.260.0040.00416.69
7.4.250.0060.00316.83
7.4.240.0060.00216.71
7.4.230.0070.00016.58
7.4.220.0060.01916.74
7.4.210.0040.01116.77
7.4.200.0070.00016.75
7.4.160.0060.01116.53
7.4.150.0090.01917.40
7.4.140.0160.00317.86
7.4.130.0130.00616.78
7.4.120.0090.01116.79
7.4.110.0110.00716.65
7.4.100.0100.01016.59
7.4.90.0030.01416.68
7.4.80.0200.00719.39
7.4.70.0030.01516.55
7.4.60.0070.01016.75
7.4.50.0040.01116.69
7.4.40.0110.00716.79
7.4.30.0100.01016.54
7.4.00.0130.00515.27
7.3.330.0060.00013.30
7.3.320.0070.00313.37
7.3.310.0040.00416.49
7.3.300.0070.00016.55
7.3.290.0150.00316.53
7.3.280.0080.01016.56
7.3.270.0110.00817.40
7.3.260.0100.01816.57
7.3.250.0110.00916.51
7.3.240.0070.01016.63
7.3.230.0030.01316.46
7.3.210.0090.00916.43
7.3.200.0080.00919.39
7.3.190.0070.01016.62
7.3.180.0130.00316.59
7.3.170.0120.00916.48
7.3.160.0110.00616.45
7.3.120.0030.01015.17
7.3.110.0090.00914.89
7.3.100.0060.00314.95
7.3.90.0040.00715.24
7.3.80.0000.01315.21
7.3.70.0000.00914.85
7.3.60.0060.00314.53
7.3.50.0000.01115.12
7.3.40.0060.01214.82
7.3.30.0060.00914.84
7.3.20.0030.01016.62
7.3.10.0130.00016.82
7.3.00.0100.00616.70
7.2.330.0160.00316.93
7.2.320.0160.00316.91
7.2.310.0070.01216.73
7.2.300.0160.00916.73
7.2.290.0120.01116.67
7.2.250.0100.01015.23
7.2.240.0090.01215.29
7.2.230.0070.01015.21
7.2.220.0080.00815.13
7.2.210.0060.01014.78
7.2.200.0080.00615.14
7.2.190.0090.00614.98
7.2.180.0030.01015.13
7.2.170.0070.00715.20
7.2.60.0070.00716.77
7.2.00.0070.00319.61
7.1.330.0100.00615.81
7.1.320.0060.00615.84
7.1.310.0060.00615.76
7.1.300.0000.01815.89
7.1.290.0130.00015.50
7.1.280.0030.00915.83
7.1.270.0100.00315.91
7.1.260.0120.00015.54
7.1.200.0060.01015.76
7.1.100.0090.00918.45
7.1.70.0050.00517.10
7.1.60.0070.01819.30
7.1.50.0100.01317.33
7.1.00.0070.07322.96
7.0.200.0030.00616.89
7.0.60.0130.09322.26
7.0.50.0100.07718.32
7.0.40.0130.08020.56
7.0.30.0230.03720.48
7.0.20.0230.08720.51
7.0.10.0100.08720.60
7.0.00.0170.07320.45
5.6.280.0000.05721.20
5.6.210.0000.04320.79
5.6.200.0100.07718.57
5.6.190.0100.08321.12
5.6.180.0500.08021.04
5.6.170.0230.04720.95
5.6.160.0070.06720.88
5.6.150.0130.07318.46
5.6.140.0000.04718.39
5.6.130.0070.08018.41
5.6.120.0170.07321.49
5.6.110.0170.09721.34
5.6.100.0100.08321.41
5.6.90.0070.04321.40
5.6.80.0230.06720.64
5.5.350.0130.03720.71
5.5.340.0000.04318.34
5.5.330.0070.04020.81
5.5.320.0600.06720.63
5.5.310.0130.04320.62
5.5.300.0030.04018.19
5.5.290.0070.08718.29
5.5.280.0070.04021.09
5.5.270.0100.08021.28
5.5.260.0070.05721.08
5.5.250.0200.06320.90
5.5.240.0100.06320.44

preferences:
47.72 ms | 401 KiB | 5 Q