3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '{:de}Hallo Welt{:}{:en}Helo world{:}'; Preg_match_all("/\{:(.*?)}(.*?)\{/", $str, $matches); $matches = array_combine($matches[1], $matches[2]); Var_dump($matches);

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.00.0170.00720.04
8.4.150.0030.00014.05
8.4.140.0190.01017.68
8.4.130.0110.01218.17
8.4.120.0150.00620.70
8.4.110.0040.00420.52
8.4.100.0110.00918.70
8.4.90.0130.00820.52
8.4.80.0070.00218.77
8.4.70.0070.00518.29
8.4.60.0040.00518.96
8.4.50.0030.00620.61
8.4.40.0120.00919.67
8.4.30.0160.00317.83
8.4.20.0090.00620.54
8.4.10.0100.01018.05
8.3.280.0130.01118.66
8.3.270.0110.00916.52
8.3.260.0090.00716.68
8.3.250.0100.00918.70
8.3.240.0140.00616.86
8.3.230.0140.00716.62
8.3.220.0050.00319.07
8.3.210.0090.00616.53
8.3.200.0030.00516.51
8.3.190.0080.01018.93
8.3.180.0110.00816.94
8.3.170.0130.00618.70
8.3.160.0100.00616.66
8.3.150.0150.00318.39
8.3.140.0000.01416.61
8.3.130.0060.00316.66
8.3.120.0030.00618.67
8.3.110.0040.00420.94
8.3.100.0040.00424.06
8.3.90.0040.00426.77
8.3.80.0030.00616.63
8.3.70.0090.00616.58
8.3.60.0170.00318.27
8.3.50.0060.00818.15
8.3.40.0110.00418.79
8.3.30.0120.00318.88
8.3.20.0080.00019.04
8.3.10.0040.00421.73
8.3.00.0040.00420.68
8.2.290.0090.00920.46
8.2.280.0050.00418.82
8.2.270.0090.00917.22
8.2.260.0080.00016.59
8.2.250.0040.00418.54
8.2.240.0080.01116.73
8.2.230.0060.00322.58
8.2.220.0090.00037.54
8.2.210.0100.01026.77
8.2.200.0100.00016.63
8.2.190.0110.00416.63
8.2.180.0120.00918.91
8.2.170.0030.01422.96
8.2.160.0070.00722.27
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00018.01
8.2.120.0040.00426.35
8.2.110.0030.00620.52
8.2.100.0080.00417.84
8.2.90.0080.00017.88
8.2.80.0050.00318.91
8.2.70.0030.00617.75
8.2.60.0050.00317.75
8.2.50.0000.01017.88
8.2.40.0000.01019.60
8.2.30.0000.00719.20
8.2.20.0070.00018.14
8.2.10.0050.00218.15
8.2.00.0000.00817.72
8.1.330.0110.00721.88
8.1.320.0120.00718.05
8.1.310.0000.00818.61
8.1.300.0040.00418.19
8.1.290.0090.00018.88
8.1.280.0120.00325.92
8.1.270.0000.00820.66
8.1.260.0090.00026.35
8.1.250.0000.00728.09
8.1.240.0000.00921.95
8.1.230.0070.00420.95
8.1.220.0040.00418.68
8.1.210.0040.00418.77
8.1.200.0000.01117.35
8.1.190.0060.00317.34
8.1.180.0030.00618.10
8.1.170.0040.00418.95
8.1.160.0040.00418.73
8.1.150.0070.00018.91
8.1.140.0000.00722.18
8.1.130.0030.00317.53
8.1.120.0000.00717.46
8.1.110.0040.00417.50
8.1.100.0040.00417.54
8.1.90.0030.00517.46
8.1.80.0000.00717.39
8.1.70.0070.00317.57
8.1.60.0000.00817.68
8.1.50.0000.00817.66
8.1.40.0040.00417.63
8.1.30.0040.00417.61
8.1.20.0070.00017.70
8.1.10.0050.00317.77
8.1.00.0080.00017.69
8.0.300.0040.00419.89
8.0.290.0040.00416.75
8.0.280.0030.00318.45
8.0.270.0000.00717.22
8.0.260.0030.00316.78
8.0.250.0030.00317.00
8.0.240.0040.00417.02
8.0.230.0060.00317.03
8.0.220.0030.00516.88
8.0.210.0040.00416.86
8.0.200.0000.00616.99
8.0.190.0050.00316.92
8.0.180.0050.00217.02
8.0.170.0040.00416.88
8.0.160.0040.00416.87
8.0.150.0000.00816.88
8.0.140.0040.00416.97
8.0.130.0000.00713.41
8.0.120.0020.00516.84
8.0.110.0040.00416.80
8.0.100.0000.00717.05
8.0.90.0040.00416.98
8.0.80.0110.00616.96
8.0.70.0070.00016.78
8.0.60.0030.00516.76
8.0.50.0000.00716.93
8.0.30.0150.00617.51
8.0.20.0120.00617.40
8.0.10.0000.00717.09
8.0.00.0110.00916.82
7.4.330.0080.00015.55
7.4.320.0030.00316.70
7.4.300.0070.00016.61
7.4.290.0080.00016.70
7.4.280.0030.00616.77
7.4.270.0030.00516.71
7.4.260.0030.00516.73
7.4.250.0030.00316.65
7.4.240.0040.00416.67
7.4.230.0030.00316.78
7.4.220.0080.00016.68
7.4.210.0080.00916.78
7.4.200.0080.00016.55
7.4.160.0070.00916.59
7.4.140.0110.00817.86
7.4.130.0090.00916.73
7.4.120.0140.00716.59
7.4.110.0120.01216.48
7.4.100.0090.00916.72
7.4.90.0060.01716.58
7.4.80.0090.01419.39
7.4.70.0030.01516.58
7.4.60.0070.00916.46
7.4.50.0060.01016.40
7.4.40.0130.01016.66
7.4.10.0100.00714.92
7.4.00.0050.01015.11
7.3.330.0000.00513.29
7.3.320.0030.00313.23
7.3.310.0040.00416.43
7.3.300.0030.00316.35
7.3.290.0030.00316.35
7.3.280.0100.01016.33
7.3.260.0070.01216.60
7.3.240.0090.00916.54
7.3.230.0090.00916.76
7.3.210.0140.00316.80
7.3.200.0030.01316.84
7.3.190.0110.00716.32
7.3.180.0130.00316.38
7.3.170.0090.00916.34
7.3.160.0100.00616.77
7.3.130.0090.00915.01
7.3.120.0060.01214.91
7.3.110.0060.01215.03
7.3.100.0040.01114.84
7.3.90.0150.00414.59
7.3.80.0030.01214.76
7.3.70.0030.01014.88
7.3.60.0000.01115.05
7.3.50.0060.00614.77
7.3.40.0140.00014.70
7.3.30.0000.01314.78
7.3.20.0030.00716.89
7.3.10.0040.00916.73
7.3.00.0040.01216.77
7.2.330.0130.00716.57
7.2.320.0090.01016.52
7.2.310.0120.00616.61
7.2.300.0090.00916.66
7.2.290.0090.00616.61
7.2.260.0110.00715.30
7.2.250.0030.00915.34
7.2.240.0030.01315.18
7.2.230.0030.00914.91
7.2.220.0090.00615.27
7.2.210.0090.00614.99
7.2.200.0070.01014.86
7.2.190.0040.00814.78
7.2.180.0080.00414.95
7.2.170.0070.01015.27
7.2.160.0060.00915.03
7.2.150.0030.01016.72
7.2.140.0100.00717.07
7.2.130.0100.01016.84
7.2.120.0000.01416.88
7.2.110.0170.00815.89
7.2.100.0180.00715.75
7.2.90.0240.00315.99
7.2.80.0130.01115.71
7.2.70.0210.00515.86
7.2.60.0180.00716.05
7.2.50.0150.01116.08
7.2.40.0180.00816.14
7.2.30.0190.00916.11
7.2.20.0210.00816.00
7.2.10.0120.00915.86
7.2.00.0080.01115.96
7.1.330.0070.00715.55
7.1.320.0090.00915.80
7.1.310.0100.00316.15
7.1.300.0090.00015.86
7.1.290.0100.00615.88
7.1.280.0040.00816.07
7.1.270.0030.01416.01
7.1.260.0070.00315.98
7.1.250.0090.00615.95
7.1.240.0090.00315.96
7.1.230.0170.00814.95
7.1.220.0270.00814.93
7.1.210.0170.00814.96
7.1.200.0160.00814.94
7.1.190.0180.00915.00
7.1.180.0160.00714.80
7.1.170.0170.00915.13
7.1.160.0230.00215.14
7.1.150.0100.00515.06
7.1.140.0170.00514.91
7.1.130.0110.01015.08
7.1.120.0170.01015.07
7.1.110.0170.00915.05
7.1.100.0210.00215.04
7.1.90.0350.00615.10
7.1.80.0200.00714.84
7.1.70.0070.00815.13
7.1.60.0160.00823.94
7.1.50.0130.01023.78
7.1.40.0420.00724.02
7.1.30.0110.01124.03
7.1.20.0220.00423.87
7.1.10.0080.00214.97
7.1.00.0210.00615.03
7.0.330.0120.00615.21
7.0.320.0140.00315.23
7.0.310.0110.00415.21
7.0.300.0110.00415.35
7.0.290.0040.01115.35
7.0.280.0070.00715.30
7.0.270.0100.00315.42
7.0.260.0110.00015.58
7.0.250.0150.00015.48
7.0.240.0000.01115.34
7.0.230.0000.00915.55
7.0.220.0050.00515.30
7.0.210.0050.00515.52
7.0.200.0000.01015.44
7.0.190.0060.00315.75
7.0.180.0000.01015.50
7.0.170.0030.00715.59
7.0.160.0040.00415.52
7.0.150.0070.00715.31
7.0.140.0060.00615.58
7.0.130.0040.00415.45
7.0.120.0090.00315.54
7.0.110.0000.00815.47
7.0.100.0110.00415.47
7.0.90.0040.01015.19
7.0.80.0040.01415.31
7.0.70.0000.01815.46
7.0.60.0060.00915.44
7.0.50.0060.00615.35
7.0.40.0090.00613.73
7.0.30.0100.00313.27
7.0.20.0060.00613.75
7.0.10.0060.00613.51
7.0.00.0040.00813.62
5.6.400.0080.00813.96
5.6.390.0000.01314.29
5.6.380.0060.01114.43
5.6.370.0040.01114.08
5.6.360.0030.01214.42
5.6.350.0030.01014.21
5.6.340.0070.01014.37
5.6.330.0000.01613.96
5.6.320.0090.00614.20
5.6.310.0070.00714.25
5.6.300.0120.00414.34
5.6.290.0000.01514.55
5.6.280.0070.00714.28
5.6.270.0090.00314.70
5.6.260.0000.01514.53
5.6.250.0060.00814.69
5.6.240.0040.01514.27
5.6.230.0070.01114.31
5.6.220.0070.01114.45
5.6.210.0040.00414.31
5.6.200.0000.01314.13
5.6.190.0030.01014.39
5.6.180.0030.00614.58
5.6.170.0060.00314.21
5.6.160.0090.00614.40
5.6.150.0000.01114.39
5.6.140.0100.00014.30
5.6.130.0030.00614.57
5.6.120.0100.00314.41
5.6.110.0040.00714.24
5.6.100.0070.00714.29
5.6.90.0030.00914.22
5.6.80.0070.01014.41
5.6.70.0040.00814.40
5.6.60.0090.00014.18
5.6.50.0030.01014.48
5.6.40.0070.00714.25
5.6.30.0120.00314.40
5.6.20.0030.00614.16
5.6.10.0070.00714.16
5.6.00.0040.00814.37

preferences:
33.86 ms | 403 KiB | 5 Q