3v4l.org

run code in 300+ PHP versions simultaneously
<?php $code = <<<TWIG (function (Translator) { {% if include_config %} Translator.fallback = '{{ fallback }}'; Translator.defaultDomain = '{{ defaultDomain }}'; {% endif %} {% for locale, domains in translations %} // {{ locale }} {% for domain, messages in domains %} {% for key, message in messages %} Translator.add({{ key|json_encode|raw }}, {{ message|json_encode|raw }}, "{{ domain }}", "{{ locale }}"); {% endfor %} {% endfor %} {% endfor %} })(Translator); TWIG; preg_match_all('/(\{\{|\{%|\{\#)(\-)?/s', $code, $matches, PREG_OFFSET_CAPTURE); var_dump($matches[2]);

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.60.0090.00618.55
8.3.50.0000.01618.18
8.3.40.0100.00719.02
8.3.30.0110.00418.83
8.3.20.0080.00023.48
8.3.10.0040.00420.19
8.3.00.0060.00323.48
8.2.180.0130.00316.50
8.2.170.0080.00822.96
8.2.160.0120.00321.23
8.2.150.0090.00324.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0030.00526.16
8.2.110.0030.00719.20
8.2.100.0060.00617.84
8.2.90.0040.00417.91
8.2.80.0030.00618.04
8.2.70.0030.00617.68
8.2.60.0030.00518.03
8.2.50.0000.00818.10
8.2.40.0030.00619.42
8.2.30.0040.00419.36
8.2.20.0000.00718.04
8.2.10.0090.00318.37
8.2.00.0050.00818.46
8.1.280.0000.01525.92
8.1.270.0060.00321.95
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0000.00923.73
8.1.230.0100.00320.89
8.1.220.0090.00017.74
8.1.210.0080.00018.79
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0080.00018.73
8.1.160.0000.00718.76
8.1.150.0040.00418.90
8.1.140.0080.00517.50
8.1.130.0050.00518.86
8.1.120.0090.00317.60
8.1.110.0080.00617.56
8.1.100.0120.00017.56
8.1.90.0100.00317.48
8.1.80.0070.00517.48
8.1.70.0050.00717.56
8.1.60.0080.00417.66
8.1.50.0070.00717.62
8.1.40.0100.00417.64
8.1.30.0040.00917.67
8.1.20.0080.00617.63
8.1.10.0060.00717.68
8.1.00.0080.00817.74
8.0.300.0000.00819.88
8.0.290.0000.00816.88
8.0.280.0040.00418.28
8.0.270.0110.00516.84
8.0.260.0080.00718.49
8.0.250.0090.00317.03
8.0.240.0040.00716.96
8.0.230.0080.00217.08
8.0.220.0070.00416.90
8.0.210.0080.00216.96
8.0.200.0070.00417.03
8.0.190.0100.00316.99
8.0.180.0090.00416.93
8.0.170.0100.00317.04
8.0.160.0080.00616.91
8.0.150.0070.00316.91
8.0.140.0080.00416.98
8.0.130.0110.00015.12
8.0.120.0060.00716.97
8.0.110.0100.00116.91
8.0.100.0070.00517.00
8.0.90.0060.00616.94
8.0.80.0060.01116.95
8.0.70.0090.00316.93
8.0.60.0080.00416.96
8.0.50.0060.00516.93
8.0.30.0120.00716.96
8.0.20.0110.00817.02
8.0.10.0080.00417.11
8.0.00.0110.00816.99
7.4.330.0070.00315.92
7.4.320.0030.00916.58
7.4.300.0100.00416.62
7.4.290.0110.00216.56
7.4.280.0080.00416.64
7.4.270.0080.00316.60
7.4.260.0080.00416.63
7.4.250.0060.00716.59
7.4.240.0070.00416.63
7.4.230.0120.00016.57
7.4.220.0050.00416.60
7.4.210.0080.00716.65
7.4.200.0040.00616.71
7.4.190.0140.00016.65
7.4.180.0190.00016.73
7.4.160.0140.00016.68
7.4.150.0170.00016.55
7.4.140.0090.00717.27
7.4.130.0130.00616.59
7.4.120.0060.01316.61
7.4.110.0150.00316.54
7.4.100.0110.00616.59
7.4.90.0090.00816.57
7.4.80.0070.01018.00
7.4.70.0100.00916.71
7.4.60.0120.00316.59
7.4.50.0050.01016.67
7.4.40.0060.01016.45
7.4.30.0130.00016.53
7.4.20.0130.00416.39
7.4.10.0040.01016.43
7.4.00.0120.00415.63
7.3.330.0080.00314.77
7.3.320.0080.00314.77
7.3.310.0040.00716.25
7.3.300.0050.00616.38
7.3.290.0080.00616.37
7.3.280.0130.00416.38
7.3.270.0070.01016.43
7.3.260.0120.00716.42
7.3.250.0120.00416.42
7.3.240.0130.00616.45
7.3.230.0120.00316.50
7.3.220.0110.00416.36
7.3.210.0060.01216.53
7.3.200.0100.00716.39
7.3.190.0160.00416.41
7.3.180.0110.00516.38
7.3.170.0150.00316.51
7.3.160.0090.00616.47
7.3.150.0100.00716.30
7.3.140.0080.00816.38
7.3.130.0110.00416.30
7.3.120.0100.00316.30
7.3.110.0000.01516.30
7.3.100.0110.00416.30
7.3.90.0060.01015.70
7.3.80.0120.00615.62
7.3.70.0100.00615.19
7.3.60.0070.01015.21
7.3.50.0090.00515.17
7.3.40.0090.00815.30
7.3.30.0070.01115.27
7.3.20.0130.00615.67
7.3.10.0100.00915.63
7.3.00.0130.00615.67
7.2.340.0150.00016.46
7.2.330.0060.01016.52
7.2.320.0100.00616.50
7.2.310.0120.00516.40
7.2.300.0140.00516.57
7.2.290.0110.00516.53
7.2.280.0140.00416.30
7.2.270.0140.00016.38
7.2.260.0070.01016.52
7.2.250.0110.00516.30
7.2.240.0130.00316.46
7.2.230.0160.00016.51
7.2.220.0070.01215.75
7.2.210.0100.00715.69
7.2.200.0100.00815.25
7.2.190.0130.00615.29
7.2.180.0130.00415.29
7.2.170.0120.00415.31
7.2.160.0100.00615.34
7.2.150.0110.00815.69
7.2.140.0160.00915.78
7.2.130.0130.00515.94
7.2.120.0290.00615.83
7.2.110.0160.00215.92
7.2.100.0100.00815.86
7.2.90.0100.00815.88
7.2.80.0130.00515.96
7.2.70.0340.00815.96
7.2.60.0210.00515.90
7.2.50.0120.00515.80
7.2.40.0100.00915.87
7.2.30.0130.00915.89
7.2.20.0130.00515.92
7.2.10.0120.00815.91
7.2.00.0120.00615.99
7.1.330.0150.00217.25
7.1.320.0100.01015.74
7.1.310.0110.00615.77
7.1.300.0130.00614.84
7.1.290.0140.00614.86
7.1.280.0110.00714.90
7.1.270.0100.00614.89
7.1.260.0120.00514.77
7.1.250.0140.00414.82
7.1.240.0130.00715.24
7.1.230.0120.00815.18
7.1.220.0130.00615.20
7.1.210.0100.00815.15
7.1.200.0150.00415.03
7.1.190.0110.00715.05
7.1.180.0150.00615.16
7.1.170.0100.01014.95
7.1.160.0110.00915.15
7.1.150.0120.00815.21
7.1.140.0180.00215.09
7.1.130.0180.00415.14
7.1.120.0140.00615.23
7.1.110.0110.00915.17
7.1.100.0120.00715.24
7.1.90.0200.00515.80
7.1.80.0110.01015.76
7.1.70.0160.00715.66
7.1.60.0150.00615.81
7.1.50.0130.01315.78
7.1.40.0140.00815.79
7.1.30.0150.00715.82
7.1.20.0150.00715.68
7.1.10.0120.00915.76
7.1.00.0130.01115.75

preferences:
40.25 ms | 400 KiB | 5 Q