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 = [ "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) ?: []; $map = array_flip($headers); $result = []; while (($values = fgetcsv($handle)) !== false) { $row = []; foreach ($whitelist as $col) { $row[$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.0120.00920.70
8.4.110.0120.00922.58
8.4.100.0150.00618.14
8.4.90.0040.00420.89
8.4.80.0110.00818.90
8.4.70.0140.00619.10
8.4.60.0130.00918.74
8.4.50.0110.01020.41
8.4.40.0390.01117.69
8.4.30.0400.00917.53
8.4.20.0400.00917.74
8.4.10.0360.01217.69
8.3.250.0080.00219.09
8.3.240.0060.00516.87
8.3.230.0100.00816.66
8.3.220.0050.00419.11
8.3.210.0060.00218.67
8.3.200.0010.00816.66
8.3.190.0130.00617.27
8.3.180.0130.00616.82
8.3.170.0400.00816.46
8.3.160.0410.00716.59
8.3.150.0380.00916.58
8.3.140.0330.00916.68
8.3.130.0250.00516.75
8.3.120.0330.01016.47
8.3.110.0320.01016.44
8.3.100.0320.00816.63
8.3.90.0330.00916.62
8.3.80.0320.01216.63
8.3.70.0360.00816.38
8.3.60.0340.01016.55
8.3.50.0390.00816.61
8.3.40.0300.01017.69
8.3.30.0270.00717.64
8.3.20.0290.00717.52
8.3.10.0260.00817.39
8.3.00.0150.00818.62
8.2.290.0090.01016.66
8.2.280.0110.00720.29
8.2.270.0260.00616.37
8.2.260.0290.00616.34
8.2.250.0270.00916.52
8.2.240.0310.00916.51
8.2.230.0290.01016.33
8.2.220.0330.00816.52
8.2.210.0340.00716.49
8.2.200.0290.01016.63
8.2.190.0300.00916.64
8.2.180.0280.01016.55
8.2.170.0340.01017.49
8.2.160.0350.00717.50
8.2.150.0340.00717.42
8.2.140.0320.01017.58
8.2.130.0290.00917.55
8.2.120.0210.01117.61
8.2.110.0230.00617.53
8.2.100.0180.00417.53
8.2.90.0210.00717.59
8.2.80.0260.00717.57
8.2.70.0320.00917.46
8.2.60.0280.00917.57
8.2.50.0300.00917.59
8.2.40.0260.01017.43
8.2.30.0330.00617.54
8.2.20.0330.00817.48
8.2.10.0310.00817.41
8.2.00.0270.00717.45
8.1.330.0140.00518.40
8.1.320.0120.00716.43
8.1.310.0320.00916.04
8.1.300.0280.01016.30
8.1.290.0300.01115.93
8.1.280.0290.00816.01
8.1.270.0260.01117.24
8.1.260.0310.00717.41
8.1.250.0290.00817.35
8.1.240.0330.00517.24
8.1.230.0300.01017.32
8.1.220.0310.00917.20
8.1.210.0350.00917.25
8.1.200.0350.00917.29
8.1.190.0300.01017.31
8.1.180.0320.00817.13
8.1.170.0290.00716.93
8.1.160.0290.00717.13
8.1.150.0260.00916.95
8.1.140.0310.00917.08
8.1.130.0270.01117.17
8.1.120.0290.00717.20
8.1.110.0260.01017.25
8.1.100.0250.01116.85
8.1.90.0260.01117.19
8.1.80.0340.00817.14
8.1.70.0280.00817.27
8.1.60.0240.01117.40
8.1.50.0390.00417.38
8.1.40.0230.01217.02
8.1.30.0270.00817.37
8.1.20.0250.01117.20
8.1.10.0230.00717.30
8.1.00.0250.01116.99
8.0.300.0320.00716.63
8.0.290.0270.00916.46
8.0.280.0320.00416.61
8.0.270.0220.01016.84
8.0.260.0200.00416.83
8.0.250.0130.00416.59
8.0.240.0140.00116.64
8.0.230.0260.00716.51
8.0.220.0310.00816.51
8.0.210.0350.00916.70
8.0.200.0300.00616.61
8.0.190.0330.00716.70
8.0.180.0320.00616.64
8.0.170.0290.00416.85
8.0.160.0290.00616.68
8.0.150.0240.00516.65
8.0.140.0270.00916.78
8.0.130.0290.00816.57
8.0.120.0310.00616.66
8.0.110.0280.01116.54
8.0.100.0270.00816.72
8.0.90.0290.00516.72
8.0.80.0260.00516.45
8.0.70.0250.00516.90
8.0.60.0290.00616.40
8.0.50.0270.00716.52
8.0.30.0300.00416.61
8.0.20.0280.00716.82
8.0.10.0270.00816.61
8.0.00.0260.00916.85
7.4.330.0280.00816.38
7.4.320.0250.00816.30
7.4.300.0300.00915.92
7.4.290.0290.00416.34
7.4.280.0300.00316.31
7.4.270.0290.00616.41
7.4.260.0250.00916.18
7.4.250.0280.00716.28
7.4.240.0270.00416.44
7.4.230.0250.00816.09
7.4.220.0310.00816.35
7.4.210.0290.01016.38
7.4.200.0230.00716.47
7.4.190.0240.00716.30
7.4.180.0260.00816.37
7.4.160.0280.00716.40
7.4.150.0320.00516.20
7.4.140.0300.00616.29
7.4.130.0210.00416.34
7.4.120.0120.00416.55
7.4.110.0260.00816.29
7.4.100.0250.00816.26
7.4.90.0290.00416.03
7.4.80.0320.00216.24
7.4.70.0220.00916.24
7.4.60.0280.00716.16
7.4.50.0290.00515.92
7.4.40.0260.00816.12
7.4.30.0260.00916.10
7.4.20.0290.00516.13
7.4.10.0250.00516.39
7.4.00.0260.00716.16
7.3.330.0260.00716.21
7.3.320.0290.00516.22
7.3.310.0250.00816.21
7.3.300.0250.00716.16
7.3.290.0300.00816.06
7.3.280.0220.00515.92
7.3.270.0250.00716.14
7.3.260.0270.00615.89
7.3.250.0210.00816.13
7.3.240.0250.00815.80
7.3.230.0260.00816.19
7.3.220.0310.00716.02
7.3.210.0290.00716.25
7.3.200.0260.00716.16
7.3.190.0120.00416.05
7.3.180.0100.00515.90
7.3.170.0280.00716.29
7.3.160.0290.00516.17
7.3.150.0250.00915.91
7.3.140.0300.00415.91
7.3.130.0290.00516.03
7.3.120.0260.00616.01
7.3.110.0240.00915.74
7.3.100.0220.01115.95
7.3.90.0300.01016.21
7.3.80.0200.00816.28
7.3.70.0310.01116.13
7.3.60.0260.00616.28
7.3.50.0270.00615.93
7.3.40.0260.00716.01
7.3.30.0260.00416.20
7.3.20.0290.00418.01
7.3.10.0270.00617.74
7.3.00.0280.00417.95
7.2.340.0280.00616.20
7.2.330.0290.00416.30
7.2.320.0250.01015.86
7.2.310.0280.00516.26
7.2.300.0320.00716.22
7.2.290.0230.00816.04
7.2.280.0270.00616.33
7.2.270.0260.00716.13
7.2.260.0310.00816.05
7.2.250.0130.00516.13
7.2.240.0250.00416.10
7.2.230.0300.00416.06
7.2.220.0300.00916.09
7.2.210.0220.00816.12
7.2.200.0240.00616.11
7.2.190.0240.01016.34
7.2.180.0260.00816.27
7.2.170.0270.00616.19
7.2.160.0230.00616.45
7.2.150.0220.00618.32
7.2.140.0240.00617.90
7.2.130.0260.00718.17
7.2.120.0260.00718.03
7.2.110.0240.00818.05
7.2.100.0280.00518.27
7.2.90.0250.00818.20
7.2.80.0230.01018.25
7.2.70.0260.00718.27
7.2.60.0220.00518.31
7.2.50.0130.00418.14
7.2.40.0250.00718.02
7.2.30.0110.00418.25
7.2.20.0260.00718.11
7.2.10.0260.00718.24
7.2.00.0290.00618.36
7.1.330.0210.00816.90
7.1.320.0240.00616.87
7.1.310.0260.00316.90
7.1.300.0210.00916.95
7.1.290.0220.00817.10
7.1.280.0250.00716.93
7.1.270.0200.01117.13
7.1.260.0260.00416.86
7.1.250.0240.00616.71
7.1.240.0250.00516.96
7.1.230.0240.00816.90
7.1.220.0270.00316.75
7.1.210.0250.00617.02
7.1.200.0270.00717.07
7.1.190.0270.00617.18
7.1.180.0260.00617.06
7.1.170.0240.00617.05
7.1.160.0180.00616.79
7.1.150.0210.00917.01
7.1.140.0220.00817.06
7.1.130.0200.00916.94
7.1.120.0230.00716.98
7.1.110.0210.01016.88
7.1.100.0210.00817.13
7.1.90.0220.00717.12
7.1.80.0220.00817.18
7.1.70.0200.00916.96
7.1.60.0250.00817.12
7.1.50.0200.00816.93
7.1.40.0210.00417.01
7.1.30.0160.00417.03
7.1.20.0210.00217.15
7.1.10.0200.01017.09
7.1.00.0240.00616.97
7.0.330.0210.00816.54
7.0.320.0220.00816.53
7.0.310.0210.00816.66
7.0.300.0240.00816.32
7.0.290.0200.00616.67
7.0.280.0230.00516.74
7.0.270.0230.00816.94
7.0.260.0240.00416.44
7.0.250.0200.00916.81
7.0.240.0210.00817.08
7.0.230.0220.00716.90
7.0.220.0210.00816.76
7.0.210.0210.00816.73
7.0.200.0230.00716.88
7.0.190.0220.00717.10
7.0.180.0210.00816.71
7.0.170.0240.00816.78
7.0.160.0200.01016.93
7.0.150.0240.00716.81
7.0.140.0310.00616.70
7.0.130.0250.00616.74
7.0.120.0200.00916.57
7.0.110.0190.00916.79
7.0.100.0210.00816.76
7.0.90.0180.00716.68
7.0.80.0240.00616.55
7.0.70.0260.00316.59
7.0.60.0180.00516.87
7.0.50.0160.00316.67
7.0.40.0150.00216.88
7.0.30.0240.00616.86
7.0.20.0230.00516.85
7.0.10.0210.00716.77
7.0.00.0190.00616.84
5.6.400.0210.00815.29
5.6.390.0230.00715.14
5.6.380.0200.00415.21
5.6.370.0180.00715.46
5.6.360.0200.00415.23
5.6.350.0230.00615.16
5.6.340.0230.00615.37
5.6.330.0240.00515.15
5.6.320.0240.00515.18
5.6.310.0250.00515.30
5.6.300.0260.00515.29
5.6.290.0260.00515.22
5.6.280.0250.00515.41
5.6.270.0250.00515.34
5.6.260.0220.00815.33
5.6.250.0210.00315.39
5.6.240.0250.00515.34
5.6.230.0260.00515.38
5.6.220.0220.00815.27
5.6.210.0210.00815.43
5.6.200.0220.00915.39
5.6.190.0230.00715.52
5.6.180.0180.01115.27
5.6.170.0250.00815.17
5.6.160.0260.00415.50
5.6.150.0210.01115.39
5.6.140.0250.00915.20
5.6.130.0230.00915.41
5.6.120.0220.00615.53
5.6.110.0230.00615.13
5.6.100.0250.00415.19
5.6.90.0250.00415.34
5.6.80.0140.00915.33
5.6.70.0210.00715.15
5.6.60.0220.00715.39
5.6.50.0250.00415.32
5.6.40.0300.00715.19
5.6.30.0220.00215.32
5.6.20.0240.00615.41
5.6.10.0250.00415.18
5.6.00.0200.00915.56
5.5.380.0200.00515.58
5.5.370.0190.00415.49
5.5.360.0140.00415.37
5.5.350.0110.00215.34
5.5.340.0090.00415.30
5.5.330.0120.00115.34
5.5.320.0110.00215.26
5.5.310.0220.00915.40
5.5.300.0230.00715.43
5.5.290.0210.00515.01
5.5.280.0250.00415.44
5.5.270.0270.00415.52
5.5.260.0170.00915.18
5.5.250.0250.00715.29
5.5.240.0240.00515.49
5.5.230.0190.00415.20
5.5.220.0160.00315.48
5.5.210.0090.00415.41
5.5.200.0190.00415.07
5.5.190.0210.00815.25
5.5.180.0250.00715.16
5.5.170.0230.00715.16
5.5.160.0200.00915.05
5.5.150.0220.00615.02
5.5.140.0210.00615.37
5.5.130.0260.00514.86
5.5.120.0190.00515.21
5.5.110.0080.00414.94
5.5.100.0240.00415.29
5.5.90.0190.01115.20
5.5.80.0200.01115.20
5.5.70.0200.00715.36
5.5.60.0210.00715.46
5.5.50.0210.00715.33
5.5.40.0250.00315.12
5.5.30.0240.00615.46
5.5.20.0240.00515.34
5.5.10.0180.01015.29
5.5.00.0220.00615.17
5.4.450.0140.00814.05
5.4.440.0200.00314.05
5.4.430.0190.00414.05
5.4.420.0220.00414.05
5.4.410.0110.00314.05
5.4.400.0100.00114.05
5.4.390.0130.00314.05
5.4.380.0150.00414.05
5.4.370.0170.00314.05
5.4.360.0090.00114.05
5.4.350.0210.00314.05
5.4.340.0150.00314.05
5.4.330.0180.00514.05
5.4.320.0180.00414.05
5.4.310.0150.00814.05
5.4.300.0160.00614.05
5.4.290.0170.00614.05
5.4.280.0190.00114.05
5.4.270.0180.00314.05
5.4.260.0140.00414.05
5.4.250.0120.00714.05
5.4.240.0190.00714.05
5.4.230.0170.00714.05
5.4.220.0200.00414.05
5.4.210.0200.00514.05
5.4.200.0160.00714.05
5.4.190.0170.00714.05
5.4.180.0200.00314.05
5.4.170.0150.00814.05
5.4.160.0150.00314.05
5.4.150.0130.00414.05
5.4.140.0160.00614.05
5.4.130.0160.00614.05
5.4.120.0180.00414.05
5.4.110.0130.00914.05
5.4.100.0150.00714.05
5.4.90.0170.00614.05
5.4.80.0180.00414.05
5.4.70.0210.00714.05
5.4.60.0180.00414.05
5.4.50.0170.00114.05
5.4.40.0140.00414.05
5.4.30.0180.00514.05
5.4.20.0170.00414.05
5.4.10.0160.00714.05
5.4.00.0180.00414.05
5.3.290.0180.00814.05
5.3.280.0150.00314.05
5.3.270.0150.00314.05
5.3.260.0140.00414.05
5.3.250.0190.00514.05
5.3.240.0180.00514.05
5.3.230.0130.00814.05
5.3.220.0150.00614.05
5.3.210.0180.00414.05
5.3.200.0150.00914.05
5.3.190.0190.00414.05
5.3.180.0180.00614.05
5.3.170.0160.00514.05
5.3.160.0200.00414.05
5.3.150.0180.00514.05
5.3.140.0150.00714.05
5.3.130.0190.00414.05
5.3.120.0140.00814.05
5.3.110.0170.00514.05
5.3.100.0180.00414.05
5.3.90.0180.00414.05
5.3.80.0160.00614.05
5.3.70.0160.00614.05
5.3.60.0210.00514.05
5.3.50.0190.01014.05
5.3.40.0140.00514.05
5.3.30.0180.00514.05
5.3.20.0170.00614.05
5.3.10.0190.00314.05
5.3.00.0170.00414.05
5.2.170.0120.00614.05
5.2.160.0140.00514.05
5.2.150.0170.00114.05
5.2.140.0140.00414.05
5.2.130.0140.00414.05
5.2.120.0150.00314.05
5.2.110.0160.00314.05
5.2.100.0160.00314.05
5.2.90.0140.00614.05
5.2.80.0100.00814.05
5.2.70.0130.00414.05
5.2.60.0140.00414.05
5.2.50.0150.00514.05
5.2.40.0140.00514.05
5.2.30.0150.00414.05
5.2.20.0150.00614.05
5.2.10.0230.00414.05
5.2.00.0130.00514.05
5.1.60.0130.00314.05
5.1.50.0080.00514.05
5.1.40.0090.00314.05
5.1.30.0080.00814.05
5.1.20.0120.00514.05
5.1.10.0170.00314.05
5.1.00.0100.00714.05
5.0.50.0100.00414.05
5.0.40.0110.00414.05
5.0.30.0100.00714.05
5.0.20.0110.00614.05
5.0.10.0050.00214.05
5.0.00.0090.00314.05
4.4.90.0070.00014.05
4.4.80.0030.00014.05
4.4.70.0040.00014.05
4.4.60.0070.00114.05
4.4.50.0070.00114.05
4.4.40.0060.00214.05
4.4.30.0050.00414.05
4.4.20.0060.00214.05
4.4.10.0050.00314.05
4.4.00.0060.00214.05
4.3.110.0070.00214.05
4.3.100.0070.00114.05
4.3.90.0070.00114.05
4.3.80.0080.00114.05
4.3.70.0070.00114.05
4.3.60.0070.00114.05
4.3.50.0060.00214.05
4.3.40.0080.00014.05
4.3.30.0050.00114.05
4.3.20.0070.00014.05
4.3.10.0040.00214.05
4.3.00.0040.00214.05

preferences:
37.46 ms | 403 KiB | 5 Q