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, null, ',', '"', '') ?: []; $map = array_flip($headers); $result = []; while (($values = fgetcsv($handle, null, ',', '"', '')) !== 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.0090.00622.25
8.4.110.0030.00619.20
8.4.100.0090.01118.92
8.4.90.0140.00720.72
8.4.80.0080.00418.75
8.4.70.0050.00419.01
8.4.60.0050.01118.71
8.4.50.0120.00822.57
8.4.40.0370.01117.45
8.4.30.0380.01017.63
8.4.20.0320.01117.46
8.4.10.0270.00617.47
8.3.250.0120.00619.00
8.3.240.0130.00716.97
8.3.230.0150.00516.53
8.3.220.0090.01119.20
8.3.210.0120.00916.68
8.3.200.0060.00316.69
8.3.190.0130.00717.52
8.3.180.0090.00616.80
8.3.170.0360.00716.59
8.3.160.0390.00816.54
8.3.150.0300.00716.82
8.3.140.0230.00516.68
8.3.130.0210.00816.40
8.3.120.0280.00816.62
8.3.110.0310.00916.67
8.3.100.0350.01016.70
8.3.90.0310.00616.67
8.3.80.0400.00716.66
8.3.70.0380.01016.52
8.3.60.0370.01016.62
8.3.50.0360.00816.56
8.3.40.0370.00617.69
8.3.30.0290.00617.52
8.3.20.0200.00717.62
8.3.10.0200.00917.65
8.3.00.0160.00718.54
8.2.290.0120.00620.36
8.2.280.0120.00818.74
8.2.270.0300.00616.51
8.2.260.0320.00516.68
8.2.250.0210.00716.59
8.2.240.0290.00516.74
8.2.230.0300.00916.44
8.2.220.0300.00716.50
8.2.210.0280.00916.54
8.2.200.0310.00816.26
8.2.190.0310.00916.32
8.2.180.0270.01116.52
8.2.170.0380.00617.73
8.2.160.0350.00717.61
8.2.150.0300.00817.47
8.2.140.0300.00717.50
8.2.130.0300.01017.43
8.2.120.0300.00717.50
8.2.110.0320.00817.54
8.2.100.0350.00517.30
8.2.90.0300.01417.52
8.2.80.0300.01117.52
8.2.70.0370.00817.48
8.2.60.0360.00617.29
8.2.50.0290.00617.41
8.2.40.0290.00817.46
8.2.30.0320.00517.46
8.2.20.0360.00817.47
8.2.10.0280.00917.52
8.2.00.0280.00817.54
8.1.330.0140.00422.01
8.1.320.0120.00717.90
8.1.310.0330.00716.12
8.1.300.0380.00415.98
8.1.290.0300.00816.01
8.1.280.0350.00415.97
8.1.270.0320.00617.27
8.1.260.0290.00917.44
8.1.250.0300.00817.14
8.1.240.0320.00517.31
8.1.230.0280.00817.25
8.1.220.0330.00717.51
8.1.210.0380.00717.07
8.1.200.0270.00617.16
8.1.190.0330.00217.35
8.1.180.0250.00817.16
8.1.170.0260.00617.31
8.1.160.0280.00817.30
8.1.150.0230.01217.24
8.1.140.0290.00617.28
8.1.130.0250.01117.31
8.1.120.0280.00517.27
8.1.110.0220.00817.16
8.1.100.0320.00617.16
8.1.90.0320.00917.34
8.1.80.0320.00617.17
8.1.70.0300.00617.05
8.1.60.0300.00817.27
8.1.50.0270.00917.19
8.1.40.0320.00817.31
8.1.30.0270.00917.65
8.1.20.0290.00717.23
8.1.10.0240.01217.34
8.1.00.0250.00717.09
8.0.300.0300.00716.56
8.0.290.0320.00516.43
8.0.280.0240.01216.62
8.0.270.0300.00616.58
8.0.260.0300.00616.69
8.0.250.0290.00616.53
8.0.240.0290.00716.46
8.0.230.0290.00716.78
8.0.220.0300.00616.62
8.0.210.0320.00916.73
8.0.200.0290.01016.54
8.0.190.0310.00816.57
8.0.180.0230.00616.79
8.0.170.0190.00416.68
8.0.160.0270.01116.96
8.0.150.0260.00616.79
8.0.140.0270.00516.50
8.0.130.0320.00516.50
8.0.120.0290.00816.54
8.0.110.0280.00916.75
8.0.100.0300.00816.45
8.0.90.0320.00916.48
8.0.80.0310.00816.60
8.0.70.0300.00716.48
8.0.60.0250.00916.84
8.0.50.0300.00816.63
8.0.30.0280.00616.79
8.0.20.0280.00716.77
8.0.10.0280.00616.84
8.0.00.0330.00816.69
7.4.330.0250.00716.16
7.4.320.0260.00716.10
7.4.300.0240.00916.23
7.4.290.0230.00416.44
7.4.280.0320.00316.22
7.4.270.0250.00716.29
7.4.260.0250.00916.20
7.4.250.0280.00616.33
7.4.240.0290.00616.37
7.4.230.0260.00916.26
7.4.220.0350.00616.02
7.4.210.0320.00616.26
7.4.200.0300.00516.37
7.4.190.0270.00816.40
7.4.180.0280.00616.41
7.4.160.0240.01116.32
7.4.150.0210.00916.20
7.4.140.0260.00716.24
7.4.130.0300.00615.91
7.4.120.0290.00416.12
7.4.110.0270.00716.00
7.4.100.0270.00616.21
7.4.90.0270.00716.21
7.4.80.0280.00916.32
7.4.70.0300.00816.53
7.4.60.0260.00816.24
7.4.50.0230.00916.05
7.4.40.0330.00616.25
7.4.30.0260.00716.06
7.4.20.0260.00516.24
7.4.10.0230.01016.22
7.4.00.0250.00816.30
7.3.330.0250.00716.18
7.3.320.0250.00815.80
7.3.310.0260.00816.02
7.3.300.0260.00615.71
7.3.290.0250.00716.28
7.3.280.0260.01216.14
7.3.270.0300.00515.89
7.3.260.0210.00615.95
7.3.250.0190.00216.22
7.3.240.0190.00616.00
7.3.230.0250.00915.77
7.3.220.0260.00715.93
7.3.210.0370.00616.11
7.3.200.0220.00715.92
7.3.190.0250.00415.98
7.3.180.0280.00616.18
7.3.170.0230.00715.90
7.3.160.0310.00416.09
7.3.150.0250.00915.89
7.3.140.0270.00815.66
7.3.130.0280.00616.00
7.3.120.0210.00815.96
7.3.110.0290.00215.88
7.3.100.0250.00915.77
7.3.90.0310.00816.29
7.3.80.0340.00615.72
7.3.70.0220.00716.13
7.3.60.0310.00516.21
7.3.50.0230.00616.09
7.3.40.0200.01115.91
7.3.30.0270.00616.01
7.3.20.0340.00717.80
7.3.10.0250.00717.74
7.3.00.0250.00817.49
7.2.340.0250.00716.23
7.2.330.0240.00915.89
7.2.320.0230.00916.13
7.2.310.0250.00816.03
7.2.300.0250.00816.23
7.2.290.0250.00715.96
7.2.280.0240.00816.19
7.2.270.0220.01015.93
7.2.260.0230.00916.27
7.2.250.0300.00616.16
7.2.240.0320.00416.11
7.2.230.0270.00816.03
7.2.220.0250.00716.29
7.2.210.0240.00815.80
7.2.200.0250.00916.06
7.2.190.0220.01015.77
7.2.180.0240.00916.09
7.2.170.0280.00516.05
7.2.160.0290.00516.26
7.2.150.0210.01317.85
7.2.140.0230.01018.01
7.2.130.0230.00917.83
7.2.120.0270.01017.96
7.2.110.0270.00617.99
7.2.100.0300.00717.93
7.2.90.0260.00818.13
7.2.80.0260.00618.06
7.2.70.0330.00317.93
7.2.60.0260.00618.14
7.2.50.0280.01118.14
7.2.40.0270.00718.10
7.2.30.0260.00717.95
7.2.20.0250.00718.20
7.2.10.0240.00818.36
7.2.00.0250.00618.20
7.1.330.0200.00716.98
7.1.320.0220.00717.08
7.1.310.0220.00817.07
7.1.300.0250.00517.04
7.1.290.0220.00716.79
7.1.280.0220.00817.06
7.1.270.0190.00717.12
7.1.260.0190.01016.76
7.1.250.0230.00617.05
7.1.240.0250.00516.86
7.1.230.0220.00817.03
7.1.220.0240.00717.07
7.1.210.0210.00616.96
7.1.200.0260.00416.98
7.1.190.0220.00716.97
7.1.180.0270.00916.95
7.1.170.0230.00516.86
7.1.160.0210.00516.97
7.1.150.0160.00816.92
7.1.140.0220.00816.94
7.1.130.0250.00516.86
7.1.120.0210.00717.08
7.1.110.0240.00617.03
7.1.100.0220.00617.04
7.1.90.0210.00416.79
7.1.80.0220.00916.61
7.1.70.0230.00816.73
7.1.60.0260.00817.02
7.1.50.0250.00416.94
7.1.40.0220.00717.01
7.1.30.0280.00516.79
7.1.20.0250.00416.93
7.1.10.0240.00616.99
7.1.00.0230.00716.85
7.0.330.0290.00016.47
7.0.320.0250.00316.71
7.0.310.0250.00516.58
7.0.300.0260.00616.22
7.0.290.0270.00716.30
7.0.280.0200.00816.66
7.0.270.0190.00616.83
7.0.260.0180.00616.48
7.0.250.0200.00916.69
7.0.240.0210.00716.81
7.0.230.0190.00717.00
7.0.220.0220.00616.90
7.0.210.0200.00816.71
7.0.200.0210.00416.59
7.0.190.0230.00316.73
7.0.180.0190.00616.87
7.0.170.0140.00416.99
7.0.160.0150.00716.80
7.0.150.0090.00416.92
7.0.140.0240.00516.75
7.0.130.0200.00617.10
7.0.120.0240.00416.87
7.0.110.0180.01016.73
7.0.100.0220.00616.62
7.0.90.0260.00316.61
7.0.80.0220.00716.45
7.0.70.0210.00716.77
7.0.60.0210.01016.58
7.0.50.0210.00716.50
7.0.40.0150.00816.85
7.0.30.0210.00916.60
7.0.20.0230.00716.56
7.0.10.0250.00416.78
7.0.00.0230.00616.62
5.6.400.0240.00515.23
5.6.390.0240.00615.34
5.6.380.0230.00915.45
5.6.370.0220.00815.32
5.6.360.0260.00615.48
5.6.350.0250.00615.53
5.6.340.0260.00515.15
5.6.330.0240.00715.13
5.6.320.0230.00115.29
5.6.310.0220.00515.18
5.6.300.0230.00815.14
5.6.290.0270.00315.37
5.6.280.0210.00815.56
5.6.270.0180.01115.33
5.6.260.0240.00615.15
5.6.250.0220.00815.49
5.6.240.0240.01215.25
5.6.230.0150.00915.36
5.6.220.0220.00915.52
5.6.210.0230.00915.38
5.6.200.0220.00615.75
5.6.190.0200.00715.68
5.6.180.0140.00615.40
5.6.170.0220.00715.61
5.6.160.0180.01215.67
5.6.150.0200.01115.48
5.6.140.0230.00715.40
5.6.130.0190.01015.54
5.6.120.0240.00615.43
5.6.110.0230.00715.25
5.6.100.0200.00915.48
5.6.90.0200.00915.63
5.6.80.0230.00615.02
5.6.70.0250.00415.32
5.6.60.0240.00615.21
5.6.50.0220.00815.26
5.6.40.0220.00715.02
5.6.30.0220.00615.31
5.6.20.0350.00914.98
5.6.10.0220.00915.18
5.6.00.0160.00915.34
5.5.380.0130.00515.24
5.5.370.0230.00715.53
5.5.360.0230.00614.94
5.5.350.0290.00415.18
5.5.340.0220.00815.47
5.5.330.0210.00815.17
5.5.320.0250.00415.20
5.5.310.0250.00415.31
5.5.300.0250.00415.37
5.5.290.0250.00415.30
5.5.280.0260.00315.16
5.5.270.0170.01215.26
5.5.260.0240.00515.27
5.5.250.0230.00615.62
5.5.240.0230.00615.09
5.5.230.0200.00815.61
5.5.220.0180.01015.42
5.5.210.0200.00915.38
5.5.200.0230.00515.32
5.5.190.0170.01414.98
5.5.180.0230.00415.21
5.5.170.0210.00215.34
5.5.160.0210.01014.97
5.5.150.0260.00815.22
5.5.140.0240.00614.96
5.5.130.0200.00815.12
5.5.120.0220.00515.07
5.5.110.0290.00415.19
5.5.100.0160.01015.24
5.5.90.0220.00515.32
5.5.80.0230.00515.21
5.5.70.0230.00614.94
5.5.60.0220.00615.07
5.5.50.0210.00715.20
5.5.40.0230.00515.32
5.5.30.0190.00915.36
5.5.20.0230.00715.32
5.5.10.0220.00415.25
5.5.00.0220.00515.39
5.4.450.0180.00414.05
5.4.440.0140.00914.05
5.4.430.0150.00814.05
5.4.420.0200.00314.05
5.4.410.0200.00614.05
5.4.400.0250.00214.05
5.4.390.0170.01014.05
5.4.380.0110.00814.05
5.4.370.0170.00414.05
5.4.360.0160.00414.05
5.4.350.0140.00414.05
5.4.340.0170.00414.05
5.4.330.0130.00514.05
5.4.320.0070.00314.05
5.4.310.0080.00214.05
5.4.300.0080.00214.05
5.4.290.0120.00314.05
5.4.280.0080.00214.05
5.4.270.0090.00214.05
5.4.260.0090.00114.05
5.4.250.0200.00214.05
5.4.240.0180.00514.05
5.4.230.0140.00614.05
5.4.220.0160.00614.05
5.4.210.0190.00314.05
5.4.200.0190.00414.05
5.4.190.0180.00514.05
5.4.180.0160.00614.05
5.4.170.0170.00614.05
5.4.160.0160.00614.05
5.4.150.0180.00414.05
5.4.140.0140.00814.05
5.4.130.0180.00414.05
5.4.120.0190.00414.05
5.4.110.0160.00414.05
5.4.100.0180.00414.05
5.4.90.0170.00514.05
5.4.80.0170.00614.05
5.4.70.0180.00414.05
5.4.60.0190.00514.05
5.4.50.0160.00914.05
5.4.40.0140.00414.05
5.4.30.0120.00614.05
5.4.20.0060.00314.05
5.4.10.0150.00414.05
5.4.00.0150.00614.05
5.3.290.0170.00614.05
5.3.280.0150.00314.05
5.3.270.0180.00614.05
5.3.260.0150.00714.05
5.3.250.0200.00414.05
5.3.240.0180.00514.05
5.3.230.0160.00714.05
5.3.220.0140.00514.05
5.3.210.0180.00414.05
5.3.200.0130.00414.05
5.3.190.0190.00514.05
5.3.180.0230.00314.05
5.3.170.0170.00614.05
5.3.160.0150.00914.05
5.3.150.0180.00714.05
5.3.140.0180.00514.05
5.3.130.0180.00514.05
5.3.120.0150.00614.05
5.3.110.0170.00614.05
5.3.100.0160.00714.05
5.3.90.0150.00714.05
5.3.80.0170.00514.05
5.3.70.0180.00414.05
5.3.60.0160.00614.05
5.3.50.0160.00714.05
5.3.40.0170.00514.05
5.3.30.0140.00414.05
5.3.20.0080.00214.05
5.3.10.0080.00214.05
5.3.00.0060.00414.05
5.2.170.0090.00214.05
5.2.160.0040.00314.05
5.2.150.0070.00114.05
5.2.140.0120.00414.05
5.2.130.0160.00314.05
5.2.120.0160.00414.05
5.2.110.0150.00314.05
5.2.100.0120.00614.05
5.2.90.0130.00514.05
5.2.80.0140.00414.05
5.2.70.0170.00114.05
5.2.60.0140.00414.05
5.2.50.0160.00514.05
5.2.40.0150.00314.05
5.2.30.0140.00414.05
5.2.20.0110.00714.05
5.2.10.0130.00514.05
5.2.00.0130.00414.05
5.1.60.0110.00514.05
5.1.50.0130.00614.05
5.1.40.0110.00614.05
5.1.30.0120.00514.05
5.1.20.0110.00614.05
5.1.10.0140.00314.05
5.1.00.0120.00414.05
5.0.50.0110.00314.05
5.0.40.0130.00114.05
5.0.30.0110.00414.05
5.0.20.0110.00314.05
5.0.10.0100.00414.05
5.0.00.0110.00314.05
4.4.90.0080.00014.05
4.4.80.0080.00014.05
4.4.70.0070.00214.05
4.4.60.0070.00114.05
4.4.50.0080.00014.05
4.4.40.0080.00114.05
4.4.30.0080.00314.05
4.4.20.0100.00114.05
4.4.10.0050.00314.05
4.4.00.0070.00114.05
4.3.110.0070.00214.05
4.3.100.0080.00114.05
4.3.90.0070.00114.05
4.3.80.0070.00114.05
4.3.70.0060.00214.05
4.3.60.0060.00214.05
4.3.50.0060.00214.05
4.3.40.0080.00014.05
4.3.30.0050.00214.05
4.3.20.0040.00214.05
4.3.10.0060.00114.05
4.3.00.0040.00314.05

preferences:
95.6 ms | 403 KiB | 5 Q