3v4l.org

run code in 300+ PHP versions simultaneously
<?php $csv = <<<CSV "Price","Bogus","Symbol","Description","Qty (Quantity)","Price Chng % (Price Change %)","Price Chng $ (Price Change $)","Day Chng % (Day Change %)","Day Chng $ (Day Change $)","Cost Basis","Gain % (Gain/Loss %)","Gain $ (Gain/Loss $)","Reinvest?","Reinvest Capital Gains?","Last Div (Last Dividend)","Volume","Security Type" "$19.39","foo1","Test1","ETF","820","-2.42%","-$0.48","-2.42%","-$393.6","$601.73","-18.89%","-$3701.93","No","--","$0.72025","14,626,464","ETFs & Closed End Funds" "$49.43","foo2","Test2"," ETF","110","-2.39%","-$1.21","-2.39%","-$133.1","$995.2","-9.31%","-$557.9","Yes","--","N/A","59,351,095","ETFs & Closed End Funds" "$21.77","foo3","Test3"," ETF","760","-3.72%","-$0.84","-3.72%","-$638.4","$687.73","-20.02%","-$142.53","No","--","$2.0216","6,402,084","ETFs & Closed End Funds" CSV; $handle = tmpfile(); fwrite($handle, $csv); rewind($handle); $whitelist = array( "Symbol", "Description", "Qty (Quantity)", "Price", "Price Chng % (Price Change %)", "Price Chng $ (Price Change $)", "Day Chng % (Day Change %)", "Day Chng $ (Day Change $)", "Cost Basis", "Gain % (Gain/Loss %)", "Gain $ (Gain/Loss $)", "Reinvest?", "Reinvest Capital Gains?", "Last Div (Last Dividend)", "Volume", "Security Type" ); $headers = fgetcsv($handle); if ($headers) { $map = array_flip($headers); } $result = array(); while (($values = fgetcsv($handle)) !== false) { $row = array(); foreach ($whitelist as $col) { $row[$col] = isset($map[$col],$values[$map[$col]]) ? $values[$map[$col]] : null; } $result[] = $row; } fclose($handle); var_export($result);

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.4.120.0070.00523.91
8.4.110.0090.00318.96
8.4.100.0070.00218.99
8.4.90.0110.01020.83
8.4.80.0090.00718.88
8.4.70.0090.01018.95
8.4.60.0070.01319.19
8.4.50.0070.00918.63
8.4.40.0420.00817.73
8.4.30.0420.00817.68
8.4.20.0380.00917.93
8.4.10.0420.00817.49
8.3.250.0040.00516.45
8.3.240.0120.00717.50
8.3.230.0090.00216.62
8.3.220.0110.00719.22
8.3.210.0060.00816.48
8.3.200.0100.00916.66
8.3.190.0140.00717.13
8.3.180.0100.01016.75
8.3.170.0350.01016.23
8.3.160.0420.00716.38
8.3.150.0350.00916.61
8.3.140.0380.00816.58
8.3.130.0290.00916.72
8.3.120.0290.00816.65
8.3.110.0280.00516.91
8.3.100.0310.01016.52
8.3.90.0320.00716.60
8.3.80.0360.00918.31
8.3.70.0320.01116.54
8.3.60.0410.00716.76
8.3.50.0370.00716.69
8.3.40.0410.00617.77
8.3.30.0300.00717.53
8.3.20.0300.00717.45
8.3.10.0280.00817.71
8.3.00.0140.00919.23
8.2.290.0090.00819.16
8.2.280.0110.00718.45
8.2.270.0280.00816.24
8.2.260.0280.01116.39
8.2.250.0340.00816.59
8.2.240.0310.00816.38
8.2.230.0310.00716.65
8.2.220.0340.00816.46
8.2.210.0330.00616.53
8.2.200.0330.00416.79
8.2.190.0330.00616.45
8.2.180.0290.00916.28
8.2.170.0330.01017.50
8.2.160.0310.00917.50
8.2.150.0350.00616.98
8.2.140.0340.00717.53
8.2.130.0320.00517.55
8.2.120.0360.00617.47
8.2.110.0390.00517.45
8.2.100.0310.00717.53
8.2.90.0390.00417.40
8.2.80.0300.00917.46
8.2.70.0330.00717.34
8.2.60.0310.00817.41
8.2.50.0240.01017.39
8.2.40.0260.01017.39
8.2.30.0280.00917.45
8.2.20.0330.01117.35
8.2.10.0300.00917.63
8.2.00.0270.01117.47
8.1.330.0080.01116.93
8.1.320.0110.00816.45
8.1.310.0240.01515.89
8.1.300.0300.00816.08
8.1.290.0300.00916.06
8.1.280.0290.01215.86
8.1.270.0260.01317.27
8.1.260.0290.00817.27
8.1.250.0310.00817.25
8.1.240.0290.00917.27
8.1.230.0270.00917.25
8.1.220.0310.00617.36
8.1.210.0330.00617.23
8.1.200.0320.00917.27
8.1.190.0260.00717.27
8.1.180.0290.00517.05
8.1.170.0330.00617.27
8.1.160.0290.01217.31
8.1.150.0320.01117.38
8.1.140.0320.00817.23
8.1.130.0280.01117.38
8.1.120.0290.01017.09
8.1.110.0310.00917.41
8.1.100.0280.00817.31
8.1.90.0260.01017.24
8.1.80.0270.00917.00
8.1.70.0250.01017.34
8.1.60.0250.01017.60
8.1.50.0280.00817.38
8.1.40.0330.00217.42
8.1.30.0310.00817.41
8.1.20.0290.00717.45
8.1.10.0280.00717.44
8.1.00.0270.00917.04
8.0.300.0290.01116.59
8.0.290.0330.00716.56
8.0.280.0320.00616.48
8.0.270.0290.00916.78
8.0.260.0310.00716.58
8.0.250.0270.01016.73
8.0.240.0310.00616.90
8.0.230.0300.00516.79
8.0.220.0330.00616.78
8.0.210.0300.00716.53
8.0.200.0280.00916.84
8.0.190.0290.00916.61
8.0.180.0300.00716.93
8.0.170.0280.00816.71
8.0.160.0300.00816.70
8.0.150.0310.00516.64
8.0.140.0290.01016.67
8.0.130.0310.00616.44
8.0.120.0250.01216.54
8.0.110.0230.00416.41
8.0.100.0260.00716.51
8.0.90.0240.00816.78
8.0.80.0270.00616.60
8.0.70.0300.00716.68
8.0.60.0330.00416.88
8.0.50.0310.00716.46
8.0.30.0320.00716.72
8.0.20.0250.00916.86
8.0.10.0300.00516.66
8.0.00.0310.00816.65
7.4.330.0260.00816.18
7.4.320.0260.00916.39
7.4.300.0270.00816.16
7.4.290.0250.00716.10
7.4.280.0310.00316.25
7.4.270.0240.00916.23
7.4.260.0280.00616.16
7.4.250.0280.01216.20
7.4.240.0240.00716.31
7.4.230.0280.00316.12
7.4.220.0270.00816.49
7.4.210.0300.00516.32
7.4.200.0230.00416.17
7.4.190.0300.00616.50
7.4.180.0270.00816.07
7.4.160.0270.00716.61
7.4.150.0260.00916.17
7.4.140.0300.00416.41
7.4.130.0240.00916.09
7.4.120.0260.00816.13
7.4.110.0270.00516.07
7.4.100.0290.00316.10
7.4.90.0240.00816.25
7.4.80.0290.00416.10
7.4.70.0240.00616.27
7.4.60.0240.01016.18
7.4.50.0240.00915.97
7.4.40.0190.00316.14
7.4.30.0230.01016.13
7.4.20.0280.00716.16
7.4.10.0230.00616.13
7.4.00.0290.00616.17
7.3.330.0270.00616.13
7.3.320.0250.00716.03
7.3.310.0270.00615.98
7.3.300.0240.00916.11
7.3.290.0280.00715.91
7.3.280.0270.00615.92
7.3.270.0240.00916.15
7.3.260.0280.00516.26
7.3.250.0170.00916.29
7.3.240.0250.00916.14
7.3.230.0230.01016.12
7.3.220.0270.00616.29
7.3.210.0230.00416.15
7.3.200.0300.00415.90
7.3.190.0310.00816.13
7.3.180.0260.00815.86
7.3.170.0270.00716.01
7.3.160.0320.00716.06
7.3.150.0270.00716.27
7.3.140.0270.00716.09
7.3.130.0270.00816.06
7.3.120.0220.01116.07
7.3.110.0260.00915.95
7.3.100.0270.00716.08
7.3.90.0240.00916.15
7.3.80.0260.00616.16
7.3.70.0240.00516.32
7.3.60.0260.00716.03
7.3.50.0350.00416.21
7.3.40.0220.01016.49
7.3.30.0260.01016.25
7.3.20.0270.00718.18
7.3.10.0260.00718.07
7.3.00.0270.00717.84
7.2.340.0220.01016.21
7.2.330.0210.00616.32
7.2.320.0240.00516.05
7.2.310.0280.00916.06
7.2.300.0300.00416.14
7.2.290.0230.01016.06
7.2.280.0270.00716.27
7.2.270.0270.00616.42
7.2.260.0240.01016.23
7.2.250.0250.00815.90
7.2.240.0250.00815.92
7.2.230.0270.00616.29
7.2.220.0310.00216.23
7.2.210.0260.00715.99
7.2.200.0230.01016.41
7.2.190.0260.00716.19
7.2.180.0250.01016.35
7.2.170.0270.00616.30
7.2.160.0280.00516.29
7.2.150.0350.00518.03
7.2.140.0230.00717.90
7.2.130.0220.00618.36
7.2.120.0240.00918.25
7.2.110.0270.00518.32
7.2.100.0240.00818.24
7.2.90.0250.00818.15
7.2.80.0260.00618.31
7.2.70.0290.00418.18
7.2.60.0310.00818.25
7.2.50.0240.00617.98
7.2.40.0250.00318.36
7.2.30.0190.00318.28
7.2.20.0210.01218.39
7.2.10.0250.00718.10
7.2.00.0270.00618.31
7.1.330.0250.00517.11
7.1.320.0220.00816.94
7.1.310.0240.00916.70
7.1.300.0260.00417.32
7.1.290.0250.00717.22
7.1.280.0210.00817.13
7.1.270.0230.00317.11
7.1.260.0140.00517.07
7.1.250.0240.00617.23
7.1.240.0210.00916.90
7.1.230.0230.00617.15
7.1.220.0260.00317.02
7.1.210.0210.00917.06
7.1.200.0190.01017.23
7.1.190.0260.00416.97
7.1.180.0240.00617.11
7.1.170.0220.00816.98
7.1.160.0290.00916.82
7.1.150.0250.00817.12
7.1.140.0140.00417.04
7.1.130.0220.01017.16
7.1.120.0250.00517.11
7.1.110.0190.00417.19
7.1.100.0180.00716.80
7.1.90.0230.00717.00
7.1.80.0220.00816.79
7.1.70.0230.00716.97
7.1.60.0240.00717.19
7.1.50.0210.01116.91
7.1.40.0320.00217.11
7.1.30.0210.00816.78
7.1.20.0270.00617.04
7.1.10.0220.00816.79
7.1.00.0200.01016.88
7.0.330.0240.00516.79
7.0.320.0240.00216.88
7.0.310.0230.00616.57
7.0.300.0250.00416.86
7.0.290.0240.00516.50
7.0.280.0260.00616.91
7.0.270.0210.00616.57
7.0.260.0200.00916.92
7.0.250.0200.00317.14
7.0.240.0200.00916.80
7.0.230.0210.00816.92
7.0.220.0260.00316.83
7.0.210.0230.00716.68
7.0.200.0210.00816.61
7.0.190.0210.00716.66
7.0.180.0290.00316.48
7.0.170.0160.00817.00
7.0.160.0240.00616.55
7.0.150.0220.00516.66
7.0.140.0230.00616.89
7.0.130.0270.00316.83
7.0.120.0220.00816.84
7.0.110.0220.00616.91
7.0.100.0240.00516.75
7.0.90.0220.00616.87
7.0.80.0260.00516.68
7.0.70.0200.00816.75
7.0.60.0220.00816.70
7.0.50.0220.00816.54
7.0.40.0230.00716.59
7.0.30.0220.00716.52
7.0.20.0200.00816.68
7.0.10.0230.00616.57
7.0.00.0210.00717.02
5.6.400.0240.00515.56
5.6.390.0330.00315.66
5.6.380.0220.00815.65
5.6.370.0280.01015.68
5.6.360.0320.00415.69
5.6.350.0220.00815.61
5.6.340.0220.00915.78
5.6.330.0240.00515.87
5.6.320.0170.01115.91
5.6.310.0260.00415.68
5.6.300.0260.00515.50
5.6.290.0230.00815.79
5.6.280.0240.01015.66
5.6.270.0260.00615.80
5.6.260.0230.00715.34
5.6.250.0230.00815.70
5.6.240.0230.00715.72
5.6.230.0250.00615.82
5.6.220.0250.00415.87
5.6.210.0270.00415.90
5.6.200.0250.00415.97
5.6.190.0250.00515.81
5.6.180.0240.00615.92
5.6.170.0270.00315.80
5.6.160.0270.00415.73
5.6.150.0220.00915.77
5.6.140.0200.01015.67
5.6.130.0190.01115.89
5.6.120.0230.00315.67
5.6.110.0200.00615.64
5.6.100.0140.00415.68
5.6.90.0130.00415.77
5.6.80.0240.00515.43
5.6.70.0230.00815.73
5.6.60.0200.00915.67
5.6.50.0210.00815.65
5.6.40.0240.00515.95
5.6.30.0320.00715.73
5.6.20.0180.01115.84
5.6.10.0200.00815.95
5.6.00.0210.00815.57
5.5.380.0230.00815.91
5.5.370.0220.00815.56
5.5.360.0310.00415.63
5.5.350.0230.00715.93
5.5.340.0230.00715.58
5.5.330.0210.00815.58
5.5.320.0260.00715.47
5.5.310.0200.00415.71
5.5.300.0170.00915.78
5.5.290.0240.00615.78
5.5.280.0190.00715.80
5.5.270.0160.00315.84
5.5.260.0100.00815.63
5.5.250.0270.00715.66
5.5.240.0190.00715.89
5.5.230.0230.00715.69
5.5.220.0270.00415.79
5.5.210.0280.00215.59
5.5.200.0250.00415.62
5.5.190.0230.00715.65
5.5.180.0230.00615.66
5.5.170.0220.00715.25
5.5.160.0240.00415.58
5.5.150.0230.00515.31
5.5.140.0240.00615.50
5.5.130.0200.01015.57
5.5.120.0190.00715.43
5.5.110.0240.00515.60
5.5.100.0220.00615.92
5.5.90.0230.00715.66
5.5.80.0250.00115.76
5.5.70.0160.00615.72
5.5.60.0200.00515.93
5.5.50.0190.01015.55
5.5.40.0210.00815.67
5.5.30.0250.00315.59
5.5.20.0220.00715.44
5.5.10.0250.00415.48
5.5.00.0230.00515.66
5.4.450.0160.00714.05
5.4.440.0180.00514.05
5.4.430.0150.00914.05
5.4.420.0180.00514.05
5.4.410.0180.00514.05
5.4.400.0170.00614.05
5.4.390.0160.00614.05
5.4.380.0110.00814.05
5.4.370.0130.00314.05
5.4.360.0170.00614.05
5.4.350.0220.00314.05
5.4.340.0180.00414.05
5.4.330.0170.00614.05
5.4.320.0170.00614.05
5.4.310.0170.00614.05
5.4.300.0160.00514.05
5.4.290.0130.00514.05
5.4.280.0150.00414.05
5.4.270.0150.00214.05
5.4.260.0090.00414.05
5.4.250.0090.00314.05
5.4.240.0200.00514.05
5.4.230.0160.00514.05
5.4.220.0180.00614.05
5.4.210.0210.00414.05
5.4.200.0130.00514.05
5.4.190.0210.00214.05
5.4.180.0190.00414.05
5.4.170.0200.00414.05
5.4.160.0180.00514.05
5.4.150.0210.00314.05
5.4.140.0170.00614.05
5.4.130.0180.00614.05
5.4.120.0180.00514.05
5.4.110.0190.00414.05
5.4.100.0170.00714.05
5.4.90.0170.00514.05
5.4.80.0160.00614.05
5.4.70.0190.00414.05
5.4.60.0170.00414.05
5.4.50.0190.00514.05
5.4.40.0170.00514.05
5.4.30.0180.00514.05
5.4.20.0190.00414.05
5.4.10.0170.00514.05
5.4.00.0180.00514.05
5.3.290.0190.00414.05
5.3.280.0190.00514.05
5.3.270.0270.00514.05
5.3.260.0220.00414.05
5.3.250.0170.00914.05
5.3.240.0150.00914.05
5.3.230.0190.00514.05
5.3.220.0200.00314.05
5.3.210.0180.00414.05
5.3.200.0200.00314.05
5.3.190.0140.00814.05
5.3.180.0150.00414.05
5.3.170.0110.00614.05
5.3.160.0070.00314.05
5.3.150.0090.00214.05
5.3.140.0150.00314.05
5.3.130.0090.00514.05
5.3.120.0110.00614.05
5.3.110.0090.00614.05
5.3.100.0150.00914.05
5.3.90.0170.00514.05
5.3.80.0160.00614.05
5.3.70.0180.00514.05
5.3.60.0170.00514.05
5.3.50.0210.00514.05
5.3.40.0190.00514.05
5.3.30.0180.00514.05
5.3.20.0160.00714.05
5.3.10.0160.00714.05
5.3.00.0190.00514.05
5.2.170.0100.00914.05
5.2.160.0130.00614.05
5.2.150.0140.00514.05
5.2.140.0150.00414.05
5.2.130.0180.00514.05
5.2.120.0180.00814.05
5.2.110.0140.00314.05
5.2.100.0160.00514.05
5.2.90.0160.00414.05
5.2.80.0130.00714.05
5.2.70.0120.00814.05
5.2.60.0120.00814.05
5.2.50.0140.00614.05
5.2.40.0140.00514.05
5.2.30.0140.00614.05
5.2.20.0160.00514.05
5.2.10.0110.00814.05
5.2.00.0140.00514.05
5.1.60.0090.00914.05
5.1.50.0120.00614.05
5.1.40.0120.00614.05
5.1.30.0140.00414.05
5.1.20.0180.00114.05
5.1.10.0100.00714.05
5.1.00.0100.00714.05
5.0.50.0100.00514.05
5.0.40.0130.00314.05
5.0.30.0110.00414.05
5.0.20.0130.00314.05
5.0.10.0110.00414.05
5.0.00.0120.00414.05
4.4.90.0140.00814.05
4.4.80.0120.00314.05
4.4.70.0170.00214.05
4.4.60.0090.01014.05
4.4.50.0100.00514.05
4.4.40.0080.00614.05
4.4.30.0080.01114.05
4.4.20.0160.00414.05
4.4.10.0080.01414.05
4.4.00.0120.01114.05
4.3.110.0110.00914.05
4.3.100.0070.00214.05
4.3.90.0060.00414.05
4.3.80.0110.00614.05
4.3.70.0040.00314.05
4.3.60.0040.00414.05
4.3.50.0090.01114.05
4.3.40.0040.00814.05
4.3.30.0040.00314.05
4.3.20.0040.00514.05
4.3.10.0040.00314.05
4.3.00.0030.00514.05

preferences:
68.8 ms | 403 KiB | 5 Q