3v4l.org

run code in 300+ PHP versions simultaneously
<?php $title = "ÛŞÃ is going to dèport 80% öf indians&citizens are #concerned -- Breaking News / News India"; echo trim( preg_replace( '/[^a-z\d]+/', '-', str_replace( '&', ' and ', strtolower($title) ) ), '-' );

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.4.140.0100.01017.85
8.4.130.0110.00717.93
8.4.120.0120.00723.96
8.4.110.0080.00522.40
8.4.100.0150.00518.75
8.4.90.0040.00619.02
8.4.80.0040.00518.68
8.4.70.0150.00618.01
8.4.60.0100.01118.61
8.4.50.0130.00718.63
8.4.40.0080.01117.75
8.4.30.0110.00018.45
8.4.20.0060.00318.99
8.4.10.0060.00322.00
8.3.270.0110.00816.63
8.3.260.0120.00816.74
8.3.250.0100.00818.82
8.3.240.0120.00719.03
8.3.230.0090.01016.69
8.3.220.0090.00920.54
8.3.210.0080.00716.46
8.3.200.0080.01116.64
8.3.190.0150.00417.22
8.3.180.0060.01416.98
8.3.170.0120.00618.61
8.3.160.0120.00617.16
8.3.150.0070.01316.91
8.3.140.0110.00816.54
8.3.130.0060.00318.23
8.3.120.0110.00718.82
8.3.110.0040.00420.94
8.3.100.0030.00616.67
8.3.90.0070.01126.77
8.3.80.0060.00316.63
8.3.70.0040.01516.62
8.3.60.0150.00318.56
8.3.50.0110.00718.51
8.3.40.0120.00318.60
8.3.30.0070.00718.84
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.290.0130.00520.74
8.2.280.0070.00518.71
8.2.270.0130.00617.17
8.2.260.0080.00016.61
8.2.250.0070.01618.86
8.2.240.0090.00017.25
8.2.230.0040.00422.58
8.2.220.0060.01224.06
8.2.210.0070.00726.77
8.2.200.0090.00016.34
8.2.190.0070.01016.75
8.2.180.0060.00925.92
8.2.170.0120.00619.04
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0050.00226.16
8.2.110.0110.00019.39
8.2.100.0070.00417.84
8.2.90.0000.00817.75
8.2.80.0030.00619.03
8.2.70.0050.00317.59
8.2.60.0060.00317.71
8.2.50.0040.00417.98
8.2.40.0080.00018.28
8.2.30.0000.00718.02
8.2.20.0000.00820.44
8.2.10.0040.00418.07
8.2.00.0000.00819.07
8.1.330.0120.00722.16
8.1.320.0130.00717.84
8.1.310.0040.01416.53
8.1.300.0070.00720.34
8.1.290.0100.00330.84
8.1.280.0070.01025.92
8.1.270.0060.00323.99
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00019.34
8.1.230.0040.00820.89
8.1.220.0040.00418.65
8.1.210.0000.00818.77
8.1.200.0060.00317.38
8.1.190.0000.00917.25
8.1.180.0070.00418.10
8.1.170.0040.00417.62
8.1.160.0000.00718.76
8.1.150.0060.00318.66
8.1.140.0030.00517.52
8.1.130.0070.00018.80
8.1.120.0040.00417.54
8.1.110.0030.00617.51
8.1.100.0070.00017.55
8.1.90.0000.00717.49
8.1.80.0040.00417.41
8.1.70.0090.00017.51
8.1.60.0090.00917.60
8.1.50.0120.00617.56
8.1.40.0150.00317.61
8.1.30.0160.00317.60
8.1.20.0150.00317.70
8.1.10.0080.00817.52
8.1.00.0070.01117.63
8.0.300.0030.00518.77
8.0.290.0040.00417.05
8.0.280.0030.00318.46
8.0.270.0040.00416.88
8.0.260.0000.00618.53
8.0.250.0030.00317.07
8.0.240.0030.00517.14
8.0.230.0090.00017.05
8.0.220.0000.00716.99
8.0.210.0030.00316.96
8.0.200.0040.01217.05
8.0.190.0000.00917.01
8.0.180.0040.00716.86
8.0.170.0080.00316.83
8.0.160.0070.00716.81
8.0.150.0120.00016.94
8.0.140.0060.00616.86
8.0.130.0060.00616.65
8.0.120.0070.00416.96
8.0.110.0090.00216.70
8.0.100.0050.00716.90
8.0.90.0000.01216.68
8.0.80.0080.00516.93
8.0.70.0100.00316.94
8.0.60.0150.00016.86
8.0.50.0060.00916.77
8.0.30.0080.00816.94
8.0.20.0120.00017.06
8.0.10.0040.01216.96
7.4.330.0000.00515.55
7.4.320.0060.00016.60
7.4.300.0090.00016.76
7.4.290.0060.01016.70
7.4.280.0070.00716.68
7.4.270.0060.00616.70
7.4.260.0180.00016.64
7.4.250.0100.00716.59
7.4.240.0150.00316.68
7.4.230.0150.00316.56
7.4.220.0100.00716.78
7.4.210.0110.00416.63
7.4.200.0130.00316.66
7.4.190.0080.00816.60
7.4.180.0160.00016.77
7.4.160.0110.00416.76
7.4.150.0130.00316.70
7.4.140.0070.00716.73
7.4.130.0140.00216.59
7.4.120.0120.00316.58
7.4.110.0070.00716.62
7.4.100.0030.01016.61
7.4.90.0070.00416.46
7.4.80.0040.00716.32
7.4.70.0070.00416.49
7.4.60.0090.00316.48
7.4.50.0090.00216.48
7.4.40.0030.00916.44
7.4.30.0100.00216.65
7.4.20.0140.00016.69
7.4.10.0080.00216.51
7.4.00.0090.00016.56

preferences:
29.62 ms | 403 KiB | 5 Q