3v4l.org

run code in 300+ PHP versions simultaneously
<?php $main_teaser = "Containerdienst {{stadt}} - Container günstig mieten"; $arr_main_teaser = print_r(str_word_count($main_teaser, 1, '{}äüß')); if(in_array("{{stadt}}", $arr_main_teaser)) { $key = array_search('{{stadt}}', $arr_main_teaser); $replace = array($key => ucfirst($input->urlSegment1)); $new_main_teaser = array_replace($arr_main_teaser, $replace); print_r($new_main_teaser); } ?>

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.0130.00416.38
8.3.50.0070.00717.95
8.3.40.0120.00318.71
8.3.30.0040.01118.70
8.3.20.0110.00820.30
8.3.10.0000.00821.92
8.3.00.0100.00723.41
8.2.180.0070.00718.29
8.2.170.0100.00622.96
8.2.160.0100.00319.46
8.2.150.0090.00024.18
8.2.140.0070.00024.66
8.2.130.0080.00021.12
8.2.120.0140.00726.35
8.2.110.0060.00321.09
8.2.100.0110.00017.89
8.2.90.0050.00317.86
8.2.80.0000.00918.04
8.2.70.0030.00517.92
8.2.60.0060.00318.03
8.2.50.0040.00418.10
8.2.40.0040.00420.41
8.2.30.0030.00519.25
8.2.20.0040.00418.04
8.2.10.0000.00818.04
8.2.00.0000.00718.06
8.1.280.0070.01425.92
8.1.270.0030.00620.76
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00423.97
8.1.230.0000.01122.69
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00817.23
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0080.00018.24
8.1.160.0040.00418.68
8.1.150.0040.00420.13
8.1.140.0040.00419.43
8.1.130.0000.00718.83
8.1.120.0000.00717.30
8.1.110.0000.00717.44
8.1.100.0000.00717.30
8.1.90.0040.00417.37
8.1.80.0000.00717.40
8.1.70.0030.00317.39
8.1.60.0040.00417.57
8.1.50.0040.00417.53
8.1.40.0040.00417.48
8.1.30.0040.00417.63
8.1.20.0040.00417.55
8.1.10.0020.00517.57
8.1.00.0030.00617.58
8.0.300.0000.00919.79
8.0.290.0000.00916.88
8.0.280.0030.00318.30
8.0.270.0000.00817.20
8.0.260.0060.00018.78
8.0.250.0060.00316.98
8.0.240.0000.00916.88
8.0.230.0000.00716.83
8.0.220.0000.00716.92
8.0.210.0000.00716.81
8.0.200.0060.00017.05
8.0.190.0030.00616.91
8.0.180.0040.00416.90
8.0.170.0040.00416.88
8.0.160.0000.00716.95
8.0.150.0040.00416.80
8.0.140.0060.00316.88
8.0.130.0030.00313.36
8.0.120.0040.00416.87
8.0.110.0040.00416.92
8.0.100.0050.00316.73
8.0.90.0040.00416.75
8.0.80.0070.01416.91
8.0.70.0090.00016.89
8.0.60.0040.00416.97
8.0.50.0020.00516.80
8.0.30.0110.00717.05
8.0.20.0080.01117.40
8.0.10.0070.00016.91
8.0.00.0030.01416.73
7.4.330.0020.00215.55
7.4.320.0030.00316.49
7.4.300.0040.00416.52
7.4.290.0090.00016.33
7.4.280.0030.00316.34
7.4.270.0030.00316.46
7.4.260.0000.00716.39
7.4.250.0000.00716.34
7.4.240.0040.00416.50
7.4.230.0030.00416.33
7.4.220.0110.00916.56
7.4.210.0060.01116.59
7.4.200.0000.00716.42
7.4.160.0060.01016.34
7.4.150.0080.01517.40
7.4.140.0100.01117.86
7.4.130.0090.01316.31
7.4.120.0090.00816.45
7.4.110.0060.01216.45
7.4.100.0080.00816.36
7.4.90.0140.00716.41
7.4.80.0040.01719.39
7.4.70.0150.00616.40
7.4.60.0140.00316.42
7.4.50.0060.00916.33
7.4.40.0130.00616.32
7.4.30.0150.00716.59
7.4.00.0030.01014.96
7.3.330.0000.00513.13
7.3.320.0060.00013.08
7.3.310.0000.00716.16
7.3.300.0000.00716.05
7.3.290.0030.00316.02
7.3.280.0090.00716.21
7.3.270.0140.00317.40
7.3.260.0110.00916.27
7.3.250.0100.01016.33
7.3.240.0060.01216.33
7.3.230.0130.01016.25
7.3.210.0090.00916.16
7.3.200.0070.01016.21
7.3.190.0060.01516.22
7.3.180.0080.01416.41
7.3.170.0090.00616.21
7.3.160.0000.01716.25
7.2.330.0090.00916.58
7.2.320.0100.00616.18
7.2.310.0170.00016.24
7.2.300.0110.00716.28
7.2.290.0080.01216.58
7.2.80.0030.00916.29
7.2.60.0100.00716.39
7.1.200.0030.01015.77
7.1.90.1090.00316.31
7.1.80.0030.01416.38
7.1.70.0130.00715.37
7.1.60.0210.01233.27
7.1.50.0100.02132.61
7.1.40.0290.00032.43
7.1.30.0220.00632.46
7.1.20.0250.00632.74
7.1.10.0040.01214.62
7.1.00.0140.00314.76
7.0.230.0100.00715.57
7.0.220.0110.00615.74
7.0.210.0080.00814.90
7.0.200.0040.01115.00
7.0.190.0100.01314.70
7.0.180.0080.00814.30
7.0.170.0100.00614.36
7.0.160.0060.00914.49
7.0.150.0060.01014.58
7.0.140.0070.01014.59
7.0.130.0150.00414.60
7.0.120.0070.01014.66
7.0.110.0090.00914.47
7.0.100.0110.00614.50
7.0.90.0090.00614.46
7.0.80.0690.00314.52
7.0.70.0040.01114.34
7.0.60.0060.00914.42
7.0.50.0070.00714.50
7.0.40.0120.00314.71
7.0.30.0090.00914.71
7.0.20.0120.00614.64
7.0.10.0140.00314.53
7.0.00.0040.01114.65

preferences:
62.64 ms | 401 KiB | 5 Q