3v4l.org

run code in 300+ PHP versions simultaneously
<?php function tagify($text, $spacer = '-') { //Handle if array if (is_array($text)) { return array_map("tagify", $text); } $text = str_replace('&', 'and', $text); return str_replace(' ', $spacer, trim(preg_replace('#([^a-z0-9/]+)#', ' ', strtolower($text)))); } var_dump(tagify(['something else', 'per che']));

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.0100.01318.39
8.3.50.0140.00821.22
8.3.40.0090.00618.70
8.3.30.0090.00918.54
8.3.20.0080.00019.96
8.3.10.0040.00421.82
8.3.00.0000.00820.17
8.2.180.0150.00017.00
8.2.170.0070.00722.96
8.2.160.0110.00420.91
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0090.00017.63
8.2.110.0060.00320.43
8.2.100.0080.00417.63
8.2.90.0000.00819.23
8.2.80.0080.00017.97
8.2.70.0030.00517.63
8.2.60.0050.00317.91
8.2.50.0000.00818.07
8.2.40.0080.00019.44
8.2.30.0000.00720.71
8.2.20.0030.00517.79
8.2.10.0000.00818.05
8.2.00.0030.00517.97
8.1.280.0060.00925.92
8.1.270.0040.00424.02
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0080.00023.80
8.1.230.0100.00317.48
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0000.00818.71
8.1.160.0040.00421.87
8.1.150.0000.00718.72
8.1.140.0040.00417.53
8.1.130.0000.00717.63
8.1.120.0050.00317.45
8.1.110.0040.00417.60
8.1.100.0000.00817.58
8.1.90.0000.00817.61
8.1.80.0040.00417.42
8.1.70.0000.00717.51
8.1.60.0040.00417.61
8.1.50.0050.00317.55
8.1.40.0080.00417.69
8.1.30.0080.00017.64
8.1.20.0000.00717.86
8.1.10.0000.00817.64
8.1.00.0080.00017.38
8.0.300.0000.00818.77
8.0.290.0070.00016.75
8.0.280.0040.00418.31
8.0.270.0050.00517.22
8.0.260.0000.00717.19
8.0.250.0040.00417.07
8.0.240.0030.00317.04
8.0.230.0000.00717.05
8.0.220.0030.00516.94
8.0.210.0070.00016.95
8.0.200.0080.00016.98
8.0.190.0030.00617.09
8.0.180.0080.00317.05
8.0.170.0040.00416.99
8.0.160.0070.00016.95
8.0.150.0070.00016.80
8.0.140.0040.00416.82
8.0.130.0030.00313.37
8.0.120.0080.00016.77
8.0.110.0050.00216.98
8.0.100.0040.00416.86
8.0.90.0080.00016.95
8.0.80.0070.01016.99
8.0.70.0000.00716.96
8.0.60.0070.00016.95
8.0.50.0040.00416.84
8.0.30.0090.00917.27
8.0.20.0100.00917.41
8.0.10.0040.00416.98
8.0.00.0110.00916.83
7.4.330.0000.00515.08
7.4.320.0000.00616.73
7.4.300.0070.00016.67
7.4.290.0070.00016.81
7.4.280.0040.00416.77
7.4.270.0050.00316.67
7.4.260.0070.00016.77
7.4.250.0030.00516.70
7.4.240.0030.00516.79
7.4.230.0030.00316.46
7.4.220.0030.01516.74
7.4.210.0140.00716.77
7.4.200.0070.00016.77
7.4.160.0080.00816.62
7.4.150.0070.01117.40
7.4.140.0130.00817.86
7.4.130.0070.01416.61
7.4.120.0100.00716.70
7.4.110.0100.00716.78
7.4.100.0090.00916.60
7.4.90.0060.01216.80
7.4.80.0100.00619.39
7.4.70.0200.00616.68
7.4.60.0100.01316.49
7.4.50.0030.00616.54
7.4.40.0060.01516.41
7.4.30.0080.01016.57
7.4.00.0070.00915.02
7.3.330.0000.00513.34
7.3.320.0030.00213.24
7.3.310.0030.00316.34
7.3.300.0050.00316.38
7.3.290.0070.00816.37
7.3.280.0100.00716.34
7.3.270.0260.00017.40
7.3.260.0080.01116.44
7.3.250.0080.01116.36
7.3.240.0150.00616.47
7.3.230.0140.00316.69
7.3.210.0090.00916.68
7.3.200.0090.00816.30
7.3.190.0100.00716.64
7.3.180.0040.01216.39
7.3.170.0110.01116.44
7.3.160.0030.01316.35
7.3.120.0070.01015.18
7.3.110.0150.00315.26
7.3.100.0070.00715.06
7.3.90.0060.00914.83
7.3.80.0040.01215.28
7.3.70.0100.00314.76
7.3.60.0030.01014.79
7.3.50.0000.01614.82
7.3.40.0000.00915.00
7.3.30.0060.00314.75
7.3.20.0070.00716.82
7.3.10.0040.00716.79
7.3.00.0000.01416.83
7.2.330.0070.01016.74
7.2.320.0080.00916.71
7.2.310.0030.01316.80
7.2.300.0070.01116.75
7.2.290.0180.00616.64
7.2.250.0100.01015.15
7.2.240.0100.01015.05
7.2.230.0070.01014.86
7.2.220.0030.01015.03
7.2.210.0000.01015.27
7.2.200.0080.00615.21
7.2.190.0100.00314.89
7.2.180.0130.00314.87
7.2.170.0060.00614.86
7.2.80.0090.00516.59
7.2.60.0060.00916.80
7.2.00.0040.00819.71
7.1.330.0130.00015.73
7.1.320.0030.01315.93
7.1.310.0000.00815.78
7.1.300.0080.00815.86
7.1.290.0070.00715.71
7.1.280.0040.00715.82
7.1.270.0100.00716.04
7.1.260.0070.00715.82
7.1.200.0090.00315.82
7.1.100.0040.00718.49
7.1.70.0000.00817.33
7.1.60.0100.01319.11
7.1.50.0100.01016.83
7.1.00.0000.08022.46
7.0.200.0000.00916.79
7.0.60.0070.06720.03
7.0.50.0100.06317.89
7.0.40.0100.04720.08
7.0.30.0300.05320.26
7.0.20.0300.07320.24
7.0.10.0070.06020.21
7.0.00.0030.04020.13
5.6.280.0030.07320.89
5.6.210.0130.08320.47
5.6.200.0170.07718.14
5.6.190.0030.04320.52
5.6.180.0100.06720.48
5.6.170.0200.04020.54
5.6.160.0030.09320.44
5.6.150.0070.08018.27
5.6.140.0000.04318.21
5.6.130.0070.05318.15
5.6.120.0100.03321.00
5.6.110.0000.04721.04
5.6.100.0130.06721.09
5.6.90.0030.08721.13
5.6.80.0070.04020.43
5.5.350.4300.03720.34
5.5.340.0000.05318.05
5.5.330.0030.04320.43
5.5.320.0170.04020.29
5.5.310.0130.06320.32
5.5.300.0070.07717.96
5.5.290.0030.08018.09
5.5.280.0070.08720.69
5.5.270.0030.07720.86
5.5.260.0030.04320.76
5.5.250.0100.07320.79
5.5.240.0130.06720.01
5.4.450.1170.04719.59
5.4.440.0930.06319.47
5.4.430.0300.06019.45
5.4.420.0300.06019.48
5.4.410.1200.07019.48
5.4.400.0970.04719.07
5.4.390.0930.05019.13
5.4.380.0600.04719.14
5.4.370.0370.05019.15
5.4.360.0770.05019.26
5.4.350.1000.05319.25
5.4.340.0800.05719.26
5.4.320.0800.06018.98
5.4.310.0770.05019.29
5.4.300.1000.04319.14
5.4.290.0930.03719.22
5.4.280.0800.05719.01
5.4.270.1030.05318.87
5.4.260.1000.05319.12
5.4.250.0770.06018.98
5.4.240.0900.04319.14
5.4.230.0830.05018.87
5.4.220.1070.05019.14
5.4.210.1070.08318.97
5.4.200.0870.06019.14
5.4.190.1170.05019.29
5.4.180.0970.06019.36
5.4.170.0970.05719.25
5.4.160.0930.05719.10
5.4.150.0970.05318.85
5.4.140.0770.05016.62
5.4.130.0900.04316.36
5.4.120.0970.05316.40
5.4.110.1000.05716.24
5.4.100.0830.06016.67
5.4.90.0800.04316.33
5.4.80.0630.04716.45
5.4.70.0000.03716.49
5.4.60.0070.04716.43
5.4.50.0000.03716.27
5.4.40.0070.07016.52
5.4.30.0400.05716.15
5.4.20.0170.03716.50
5.4.10.0300.06716.34

preferences:
64.05 ms | 401 KiB | 5 Q