3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ini = <<<INI TPL_CONTACT_MISC="Miscellaneous Info" date.timezone = Pacific/Tahiti TPL_CONTACT_MISC="Your german misc info translation" COM_TODO_ALIGN="Image Float" JOOMLA! DEFAULT IMAGES=Жуумла! үндсэн зурагнууд COM_TODO_ALIGN_DESC="This will apply the classes 'pull-left', 'pull-center' or 'pull-right' to the '<figure>' or '<img>' element" COM_TODO_BROWSE_FILES="Browse files" COM_TODO_CAPTION="Caption" COM_TODO_CAPTION_CLASS_LABEL="Caption Class" COM_MEMBERSHIPS_FIELD_MEMBERSHIP_LABEL 911 COM_FRED_GREETING='Hello' COM_FRED_GREETING_BARNEY='Yo, Buddy' DR_SOLD="SOLD" upload_tmp_dir = /var/www/html/tmp INI; $result = []; foreach (explode(PHP_EOL, $ini) as $i => $line) { $parsed = @parse_ini_string($line); if (!is_array($parsed)) { $anomalies[] = "Invalid character(s) @ line index $i: $line"; continue; } $key = key($parsed); if ($key === null) { $anomalies[] = "No valid declaration @ line index $i: $line"; } elseif (key_exists($key, $result)) { $anomalies[] = "Redundant key declaration @ line index $i: $key => $parsed[$key]"; } else { $result[$key] = $parsed[$key]; } } var_export($anomalies); echo "\n---\n"; 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.130.0100.01120.65
8.4.120.0120.00920.06
8.4.110.0060.00319.73
8.4.100.0100.00818.13
8.4.90.0080.00320.74
8.4.80.0160.00318.90
8.4.70.0110.01018.84
8.4.60.0130.00818.96
8.4.50.0130.01017.75
8.4.40.0120.00620.53
8.4.30.0100.01023.90
8.4.20.0100.01018.84
8.4.10.0140.00423.95
8.3.260.0050.00416.91
8.3.250.0100.00916.93
8.3.240.0180.00116.52
8.3.230.0070.01216.70
8.3.220.0050.00319.17
8.3.210.0100.00416.75
8.3.200.0110.00916.63
8.3.190.0110.00717.38
8.3.180.0110.00818.87
8.3.170.0030.00717.60
8.3.160.0080.00018.77
8.3.150.0090.00917.44
8.3.140.0110.00417.25
8.3.130.0060.00318.68
8.3.120.0040.00419.23
8.3.110.0030.00620.94
8.3.100.0080.00024.06
8.3.90.0120.00626.77
8.3.80.0120.00018.53
8.3.70.0070.01418.68
8.3.60.0090.00618.68
8.3.50.0080.00816.80
8.3.40.0110.00321.80
8.3.30.0090.00618.69
8.3.20.0040.00424.18
8.3.10.0050.00324.66
8.3.00.0070.00026.16
8.2.290.0100.00916.58
8.2.280.0100.00618.80
8.2.270.0110.00717.39
8.2.260.0050.00320.71
8.2.250.0070.00716.95
8.2.240.0120.00619.14
8.2.230.0110.00722.58
8.2.220.0030.00637.54
8.2.210.0040.00426.77
8.2.200.0080.00316.59
8.2.190.0040.01216.75
8.2.180.0110.01117.00
8.2.170.0030.01719.04
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0110.00720.96
8.2.110.0060.00319.45
8.2.100.0040.00719.76
8.2.90.0040.00418.16
8.2.80.0040.00717.97
8.2.70.0000.00817.50
8.2.60.0150.00317.50
8.2.50.0040.01317.25
8.2.40.0100.00517.63
8.2.30.0150.00017.25
8.2.20.0030.00517.75
8.2.10.0120.00317.38
8.2.00.0120.00417.25
8.1.330.0080.01116.40
8.1.320.0100.01116.43
8.1.310.0090.00618.43
8.1.300.0040.01218.03
8.1.290.0040.00430.84
8.1.280.0070.00725.92
8.1.270.0050.00324.66
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0080.00023.96
8.1.230.0070.00422.54
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0080.00017.35
8.1.190.0000.01716.75
8.1.180.0090.00916.88
8.1.170.0180.00017.21
8.1.160.0130.00317.38
8.1.150.0080.00817.38
8.1.140.0050.01217.38
8.1.130.0160.00017.00
8.1.120.0120.00617.25
8.1.110.0120.00417.00
8.1.100.0080.00817.23
8.1.90.0090.00916.88
8.1.80.0130.00517.25
8.1.70.0180.00017.22
8.1.60.0080.01117.35
8.1.50.0230.00017.11
8.1.40.0110.00717.50
8.1.30.0070.01017.13
8.1.20.0150.00317.63
8.1.10.0150.00317.13
8.1.00.0160.00217.11
8.0.300.0080.00019.64
8.0.290.0030.00616.75
8.0.280.0130.00316.63
8.0.270.0130.00316.52
8.0.260.0130.00316.74
8.0.250.0160.00016.63
8.0.240.0100.00616.61
8.0.230.0140.00416.59
8.0.220.0140.00316.52
8.0.210.0120.00616.75
8.0.200.0140.00316.63
8.0.190.0170.00016.75
8.0.180.0140.00316.63
8.0.170.0050.01016.52
8.0.160.0140.00516.61
8.0.150.0130.00516.75
8.0.140.0090.00916.62
8.0.130.0170.00016.63
8.0.120.0090.00916.59
8.0.110.0110.00416.52
8.0.100.0100.00616.73
8.0.90.0090.00916.63
8.0.80.0160.00016.52
8.0.70.0120.00516.52
8.0.60.0130.00316.62
8.0.50.0080.00816.63
8.0.30.0130.00316.52
8.0.20.0050.01016.88
8.0.10.0100.00516.62

preferences:
25.3 ms | 403 KiB | 5 Q