3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content =' "${folder}\\\\"; if (!isset($data[\'file\'])) { die("This doesn\'t appear to be a language constant file".nl); } $translation = trim($value,"\' \\t\\n\\r\\0\\x0B"); \'es_ni\'=>\'Spanish (Nicaragua)\', \'es_pa\'=>\'Spanish (Panama)\', \'es_pe\'=>\'Spanish (Peru)\', \'es_pr\'=>\'Spanish (Puerto Rico)\', \'es_py\'=>\'Spanish (Paraguay)\', \'es_sv\'=>\'Spanish (El Salvador)\', \'es_us\'=>\'Spanish (United States)\', \'es_uy\'=>\'Spanish (Uruguay)\', \'es_ve\'=>\'Spanish (Venezuela)\', \'et_ee\'=>\'Estonian (Estonia)\', \'eu_es\'=>\'Basque (Spain)\', \'fa_ir\'=>\'Farsi (Iran)\', \'fi_fi\'=>\'Finnish (Finland)\', \'fo_fo\'=>\'Faroese (Faroe Islands)\', \'fr_be\'=>\'French (Belgium)\', \'fr_ca\'=>\'French (Canada)\', \'fr_ch\'=>\'French (Switzerland)\', \'fr_fr\'=>\'French (France)\', \'fr_lu\'=>\'French (Luxembourg)\', \'fr_mc\'=>\'French (Principality of Monaco)\', \'gl_es\'=>\'Galician (Spain)\', \'gu_in\'=>\'Gujarati (India)\', \'he_il\'=>\'Hebrew (Israel)\', \'hi_in\'=>\'Hindi (India)\', \'hr_ba\'=>\'Croatian (Bosnia and Herzegovina)\', \'hr_hr\'=>\'Croatian (Croatia)\', \'hu_hu\'=>\'Hungarian (Hungary)\', \'hy_am\'=>\'Armenian (Armenia)\', \'id_id\'=>\'Indonesian (Indonesia)\', \'is_is\'=>\'Icelandic (Iceland)\', \'it_ch\'=>\'Italian (Switzerland)\', \'it_it\'=>\'Italian (Italy)\', \'ja_jp\'=>\'Japanese (Japan)\', \'ka_ge\'=>\'Georgian (Georgia)\', \'kk_kz\'=>\'Kazakh (Kazakhstan)\', \'kn_in\'=>\'Kannada (India)\', \'ko_kr\'=>\'Korean (Korea)\', \'kok_in\'=>\'Konkani (India)\', \'ky_kg\'=>\'Kyrgyz (Kyrgyzstan)\', \'lt_lt\'=>\'Lithuanian (Lithuania)\', \'lv_lv\'=>\'Latvian (Latvia)\', \'mi_nz\'=>\'Maori (New Zealand)\', \'mk_mk\'=>\'FYRO Macedonian (Former Yugoslav Republic of Macedonia)\', \'mn_mn\'=>\'Mongolian (Mongolia)\', \'mr_in\'=>\'Marathi (India)\', \'ms_bn\'=>\'Malay (Brunei Darussalam)\', \'ms_my\'=>\'Malay (Malaysia)\', \'mt_mt\'=>\'Maltese (Malta)\', \'nb_no\'=>\'Norwegian (Bokm?l) (Norway)\', \'nl_be\'=>\'Dutch (Belgium)\', \'nl_nl\'=>\'Dutch (Netherlands)\', \'nn_no\'=>\'Norwegian (Nynorsk) (Norway)\', \'ns_za\'=>\'Northern Sotho (South Africa)\', \'pa_in\'=>\'Punjabi (India)\', \'pl_pl\'=>\'Polish (Poland)\', \'ps_ar\'=>\'Pashto (Afghanistan)\', \'pt_br\'=>\'Portuguese (Brazil)\', \'pt_pt\'=>\'Portuguese (Portugal)\', '; $content = preg_replace('/(?(?=")"(\\\\"|[^"])*"|\'(\\\\\'|[^\'])*\')/', '""', $content); var_export($content);

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.3.70.0130.00616.63
8.3.60.0150.00616.75
8.3.50.0050.01417.45
8.3.40.0040.01118.88
8.3.30.0140.00318.83
8.3.20.0040.00421.82
8.3.10.0050.00323.65
8.3.00.0040.00419.38
8.2.190.0040.01116.88
8.2.180.0140.00316.75
8.2.170.0120.00322.96
8.2.160.0140.00019.32
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00420.01
8.2.110.0090.00022.24
8.2.100.0100.00317.91
8.2.90.0000.00819.26
8.2.80.0000.00818.03
8.2.70.0040.00417.75
8.2.60.0040.00418.03
8.2.50.0040.00418.10
8.2.40.0040.00420.72
8.2.30.0040.00419.21
8.2.20.0040.00718.19
8.2.10.0000.00718.11
8.2.00.0040.00418.18
8.1.280.0100.00725.92
8.1.270.0060.00320.64
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00321.16
8.1.230.0110.00017.77
8.1.220.0000.00917.91
8.1.210.0030.00618.77
8.1.200.0040.00417.60
8.1.190.0040.00417.47
8.1.180.0040.00418.10
8.1.170.0040.00418.79
8.1.160.0000.00718.91
8.1.150.0040.00418.88
8.1.140.0040.00419.55
8.1.130.0040.00418.92
8.1.120.0020.00517.64
8.1.110.0040.00417.66
8.1.100.0030.00517.57
8.1.90.0000.00717.54
8.1.80.0020.00517.63
8.1.70.0040.00417.53
8.1.60.0000.00817.77
8.1.50.0060.00317.64
8.1.40.0000.00717.74
8.1.30.0040.00417.84
8.1.20.0000.00817.82
8.1.10.0060.00317.68
8.1.00.0000.00817.70
8.0.300.0040.00418.77
8.0.290.0030.00616.88
8.0.280.0030.00318.46
8.0.270.0000.00917.04
8.0.260.0030.00517.32
8.0.250.0040.00417.13
8.0.240.0000.00917.03
8.0.230.0000.00717.16
8.0.220.0070.00016.92
8.0.210.0070.00017.04
8.0.200.0040.00417.14
8.0.190.0000.00817.18
8.0.180.0000.00817.18
8.0.170.0000.00716.99
8.0.160.0000.00716.96
8.0.150.0050.00217.02
8.0.140.0040.00416.99
8.0.130.0000.00613.46
8.0.120.0040.00417.00
8.0.110.0070.00016.85
8.0.100.0060.00316.86
8.0.90.0040.00417.05
8.0.80.0030.01317.03
8.0.70.0030.00516.98
8.0.60.0070.00017.11
8.0.50.0000.00717.02
8.0.30.0080.01117.24
8.0.20.0120.00717.40
8.0.10.0050.00217.10
8.0.00.0140.00717.12
7.4.330.0060.00015.55
7.4.320.0030.00316.83
7.4.300.0030.00316.85
7.4.290.0030.00316.82
7.4.280.0060.00316.75
7.4.270.0000.00716.86
7.4.260.0070.00016.86
7.4.250.0070.00016.80
7.4.240.0000.00716.75
7.4.230.0000.00716.93
7.4.220.0120.01016.92
7.4.210.0060.01216.84
7.4.200.0070.00016.64
7.4.160.0050.01116.69
7.4.150.0090.01817.40
7.4.140.0110.01017.86
7.4.130.0110.00716.83
7.4.120.0130.00916.68
7.4.110.0120.00616.57
7.4.100.0100.01016.55
7.4.90.0090.00916.62
7.4.80.0120.00919.39
7.4.70.0090.01216.77
7.4.60.0070.01116.79
7.4.50.0080.00916.75
7.4.40.0070.01016.66
7.4.30.0140.00416.74
7.4.00.0120.00515.32
7.3.330.0000.00513.12
7.3.320.0000.00513.11
7.3.310.0070.00016.39
7.3.300.0040.00416.22
7.3.290.0040.00416.38
7.3.280.0060.01016.37
7.3.270.0070.01717.40
7.3.260.0110.01016.55
7.3.250.0120.00716.43
7.3.240.0080.01316.52
7.3.230.0110.00716.45
7.3.210.0100.00616.30
7.3.200.0080.00816.50
7.3.190.0140.00416.82
7.3.180.0090.00616.83
7.3.170.0160.00016.77
7.3.160.0040.01516.42
7.3.120.0110.00715.02
7.3.110.0080.00414.87
7.3.100.0100.00714.77
7.3.90.0080.00814.84
7.3.80.0030.01015.06
7.3.70.0000.01714.97
7.3.60.0100.00314.75
7.3.50.0140.00014.66
7.3.40.0100.00314.95
7.3.30.0030.00614.79
7.3.20.0120.00016.73
7.3.10.0100.00616.65
7.3.00.0070.01016.74
7.2.330.0100.00716.66
7.2.320.0070.01116.79
7.2.310.0030.01516.72
7.2.300.0110.00616.76
7.2.290.0090.01316.70
7.2.250.0100.00615.26
7.2.240.0060.01615.18
7.2.230.0140.00315.17
7.2.220.0080.00415.21
7.2.210.0070.00715.06
7.2.200.0100.00615.19
7.2.190.0090.00614.92
7.2.180.0040.00814.86
7.2.170.0060.01015.15
7.2.80.0000.01316.77
7.2.60.0030.01216.93
7.2.00.0040.00719.37
7.1.330.0090.00615.90
7.1.320.0070.00715.63
7.1.310.0030.01215.98
7.1.300.0030.01015.90
7.1.290.0150.00015.85
7.1.280.0090.00615.77
7.1.270.0060.00615.80
7.1.260.0100.00315.95
7.1.200.0040.00715.86
7.1.70.0000.00817.48
7.1.60.0100.00617.58
7.1.50.0110.00317.06
7.1.40.0100.00716.88
7.1.30.0000.01117.11
7.1.20.0040.00816.80
7.1.10.0000.00816.73
7.1.00.0040.00417.09
7.0.200.0030.00816.77
7.0.190.0000.00816.97
7.0.180.0040.00416.53
7.0.170.0030.00516.53
7.0.160.0000.00716.53
7.0.150.0040.00416.53
7.0.140.0050.00516.67
7.0.130.0000.01516.73
7.0.120.0060.00316.75
7.0.110.0040.00416.70
7.0.100.0030.00616.59
7.0.90.0050.00216.77
7.0.80.0030.00716.86
7.0.70.0030.01316.53
7.0.60.0030.00916.55
7.0.50.0000.00816.53
7.0.40.0100.00616.53
7.0.30.0040.00416.53
7.0.20.0000.00816.53
7.0.10.0000.01016.53
7.0.00.0050.00516.53

preferences:
18.02 ms | 401 KiB | 5 Q