3v4l.org

run code in 300+ PHP versions simultaneously
<?php $csv = <<<CSV id: 10, location: Canada, people: 12 id: 10, location: United States, people: 15 id: 15, location: England, people: 19 id: 16, location: India, people: 20 id: 16, location: Germany, people: 9 CSV; foreach (explode(PHP_EOL, $csv) as $line) { $firstColumn = strtok($line, ','); if (!isset($lookup[$firstColumn])) { echo $line . PHP_EOL; $lookup[$firstColumn] = true; } }

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.5.30.0080.00919.61
8.5.20.0120.00519.64
8.5.10.0100.00820.23
8.5.00.0110.01019.86
8.4.180.0170.00522.04
8.4.170.0160.00722.09
8.4.160.0080.01321.60
8.4.150.0090.00316.95
8.4.140.0040.00417.60
8.4.130.0150.00517.82
8.4.120.0160.00420.38
8.4.110.0080.00622.52
8.4.100.0080.00218.75
8.4.90.0050.00519.05
8.4.80.0130.00718.71
8.4.70.0110.00817.77
8.4.60.0100.00718.94
8.4.50.0120.00919.36
8.4.40.0100.01024.05
8.4.30.0100.01019.06
8.4.20.0000.00925.84
8.4.10.0070.01024.01
8.3.300.0130.00718.44
8.3.290.0060.00322.61
8.3.280.0130.00918.19
8.3.270.0080.00016.61
8.3.260.0130.00716.54
8.3.250.0150.00318.94
8.3.240.0050.00417.20
8.3.230.0110.00816.72
8.3.220.0060.00219.13
8.3.210.0040.00416.62
8.3.200.0040.00516.54
8.3.190.0040.00417.14
8.3.180.0130.00616.91
8.3.170.0060.00918.75
8.3.160.0110.00720.69
8.3.150.0120.00617.25
8.3.140.0040.01119.00
8.3.130.0060.00316.48
8.3.120.0050.00520.67
8.3.110.0080.00020.94
8.3.100.0080.00016.60
8.3.90.0150.00326.77
8.3.80.0040.00418.43
8.3.70.0090.01218.28
8.3.60.0140.00316.50
8.3.50.0170.01016.84
8.3.40.0070.01420.07
8.3.30.0040.01118.84
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.300.0110.01022.20
8.2.290.0130.00520.52
8.2.280.0100.00718.27
8.2.270.0070.00716.94
8.2.260.0060.01217.00
8.2.250.0060.00018.44
8.2.240.0060.00317.31
8.2.230.0080.00022.58
8.2.220.0000.00937.54
8.2.210.0030.01626.77
8.2.200.0030.00616.38
8.2.190.0180.00316.68
8.2.180.0120.00916.38
8.2.170.0060.01218.79
8.2.160.0090.00622.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00826.16
8.2.110.0060.00320.53
8.2.100.0050.00517.91
8.2.90.0060.00318.03
8.2.80.0050.00317.97
8.2.70.0080.00017.90
8.2.60.0030.00618.16
8.2.50.0000.00818.10
8.2.40.0060.00319.46
8.2.30.0000.00719.32
8.2.20.0000.00819.23
8.2.10.0040.00418.13
8.2.00.0150.00218.96
8.1.340.0160.00617.69
8.1.330.0100.00821.75
8.1.320.0120.00716.08
8.1.310.0040.00416.83
8.1.300.0040.00416.36
8.1.290.0100.00030.84
8.1.280.0060.00925.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00023.84
8.1.230.0070.00320.95
8.1.220.0000.00817.77
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0090.00017.35
8.1.180.0040.00418.10
8.1.170.0090.00018.71
8.1.160.0000.00818.88
8.1.150.0050.00218.67
8.1.140.0070.00017.46
8.1.130.0170.00018.59
8.1.120.0170.00018.70
8.1.110.0140.00318.69
8.1.100.0150.00318.62
8.1.90.0130.00418.74
8.1.80.0080.00818.57
8.1.70.0160.00018.65
8.1.60.0140.00618.82
8.1.50.0200.00018.77
8.1.40.0140.00618.82
8.1.30.0150.00418.70
8.1.20.0120.00818.83
8.1.10.0170.00618.69
8.1.00.0120.00818.64
8.0.300.0040.00421.96
8.0.290.0030.00516.75
8.0.280.0070.00018.48
8.0.270.0040.00418.06
8.0.260.0150.00317.96
8.0.250.0200.00018.13
8.0.240.0120.00618.15
8.0.230.0130.00418.04
8.0.220.0080.00817.98
8.0.210.0060.00918.07
8.0.200.0160.00018.00
8.0.190.0070.00718.02
8.0.180.0130.00318.04
8.0.170.0100.00518.04
8.0.160.0150.00018.16
8.0.150.0100.00518.03
8.0.140.0150.00018.05
8.0.130.0150.00018.05
8.0.120.0120.00418.04
8.0.110.0150.00018.05
8.0.100.0090.00618.09
8.0.90.0080.00818.02
8.0.80.0100.00518.09
8.0.70.0100.00518.04
8.0.60.0150.00018.04
8.0.50.0040.01117.99
8.0.30.0070.00717.97
8.0.20.0110.00617.99
8.0.10.0110.00518.16

preferences:
56.44 ms | 1115 KiB | 5 Q