3v4l.org

run code in 300+ PHP versions simultaneously
<?php $message = 'This is a string using the terms? Wait here\'s one abukuma kai abukuma-kai abukuma abukuma'; $search = array( 'abukuma kai', 'abukuma' ); $replacements = array( // here all replaces | each in a new line - watch the syntax // all html possible, but no single quotation mark! '<a href="http://kancolle.wikia.com/wiki/Abukuma#Upgrade" class="screenshot" rel="ship/Abukuma_Kai.png" style="color:#0073e6; font-weight:bold; border-bottom: 1px #0073e6 dashed;"><p id="yosup">Abukuma Kai</p></a>', '<a href="http://kancolle.wikia.com/wiki/Abukuma#Basic" class="screenshot" rel="ship/Abukuma.png" style="color:#0073e6; font-weight:bold; border-bottom: 1px #0073e6 dashed;">Abukuma</a>' ); // Massage the message $message = preg_replace( array_map( function($s) { $s = preg_quote($s); $s = str_replace(' ', '[ -_]', $s); return '/' . $s . '/'; }, $search ), array_map( function ($s) { return '%%' . $s . '%%'; }, array_keys($search) ), $message ); $message = str_replace( array_map( function($s) { return '%%' . $s . '%%'; }, array_keys($replacements) ), $replacements, $message );

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.0160.00316.63
8.3.50.0080.01021.27
8.3.40.0120.00318.73
8.3.30.0130.00020.20
8.3.20.0070.00020.35
8.3.10.0080.00022.10
8.3.00.0080.00022.21
8.2.180.0190.00316.63
8.2.170.0090.00622.96
8.2.160.0040.01118.99
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00021.05
8.2.110.0040.00422.14
8.2.100.0100.00317.91
8.2.90.0040.00419.13
8.2.80.0050.00319.11
8.2.70.0080.00017.71
8.2.60.0000.00818.04
8.2.50.0050.00318.07
8.2.40.0000.00818.22
8.2.30.0050.00219.45
8.2.20.0040.00417.88
8.2.10.0040.00417.89
8.2.00.0030.00817.76
8.1.280.0110.01125.92
8.1.270.0030.00723.99
8.1.260.0060.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00323.79
8.1.230.0030.00819.01
8.1.220.0040.00417.79
8.1.210.0030.00618.77
8.1.200.0090.00017.36
8.1.190.0060.00317.55
8.1.180.0060.00319.13
8.1.170.0000.00818.81
8.1.160.0000.01018.93
8.1.150.0000.00818.74
8.1.140.0000.00817.71
8.1.130.0000.00717.91
8.1.120.0070.00017.71
8.1.110.0000.00717.60
8.1.100.0040.00417.62
8.1.90.0000.00717.52
8.1.80.0000.00717.53
8.1.70.0030.00317.58
8.1.60.0040.00417.75
8.1.50.0060.00317.65
8.1.40.0040.00417.58
8.1.30.0000.00717.79
8.1.20.0000.00917.79
8.1.10.0040.00417.68
8.1.00.0050.00317.58
8.0.300.0040.00418.78
8.0.290.0040.00417.05
8.0.280.0030.00518.48
8.0.270.0030.00317.29
8.0.260.0080.00016.91
8.0.250.0000.00717.17
8.0.240.0020.00517.00
8.0.230.0030.00317.11
8.0.220.0040.00417.05
8.0.210.0070.00017.07
8.0.200.0070.00017.10
8.0.190.0040.00417.12
8.0.180.0000.00717.04
8.0.170.0000.00816.96
8.0.160.0070.00017.08
8.0.150.0030.00317.05
8.0.140.0000.00717.04
8.0.130.0000.00513.52
8.0.120.0000.00817.03
8.0.110.0040.00416.95
8.0.100.0040.00417.00
8.0.90.0040.00416.86
8.0.80.0090.00617.00
8.0.70.0070.00016.96
8.0.60.0040.00416.88
8.0.50.0040.00417.00
8.0.30.0120.00817.23
8.0.20.0080.01117.40
8.0.10.0000.00817.08
8.0.00.0060.01117.06
7.4.330.0030.00316.86
7.4.320.0060.00016.80
7.4.300.0030.00316.67
7.4.290.0000.00716.65
7.4.280.0070.00016.72
7.4.270.0030.00316.73
7.4.260.0050.00013.52
7.4.250.0040.00416.79
7.4.240.0020.00516.78
7.4.230.0070.00016.64
7.4.220.0150.00316.82
7.4.210.0050.01016.79
7.4.200.0040.00416.80
7.4.190.0040.00416.87
7.4.160.0100.00616.83
7.4.150.0090.01017.40
7.4.140.0070.01217.86
7.4.130.0110.00916.56
7.4.120.0080.01116.74
7.4.110.0100.00716.76
7.4.100.0100.00716.66
7.4.90.0120.00616.75
7.4.80.0100.00719.39
7.4.70.0060.01116.72
7.4.60.0100.01316.86
7.4.50.0000.00816.67
7.4.40.0030.00922.77
7.4.30.0000.01616.91
7.4.10.0100.01016.72
7.4.00.0080.00915.53
7.3.330.0060.00013.32
7.3.320.0030.00313.39
7.3.310.0050.00316.48
7.3.300.0030.00316.37
7.3.290.0080.01216.54
7.3.280.0060.00916.43
7.3.270.0120.00617.40
7.3.260.0070.01516.47
7.3.250.0080.01016.70
7.3.240.0030.01316.73
7.3.230.0130.00716.45
7.3.210.0120.00416.42
7.3.200.0100.00719.39
7.3.190.0090.01216.67
7.3.180.0090.00616.72
7.3.170.0090.00616.41
7.3.160.0040.01916.56
7.3.130.0090.00916.42
7.3.120.0040.01215.43
7.3.110.0040.00915.61
7.3.100.0080.00815.74
7.3.90.0050.00815.72
7.3.80.0050.01115.82
7.3.70.0020.01015.68
7.3.60.0040.00915.78
7.3.50.0040.00915.77
7.3.40.0060.00915.78
7.3.30.0090.00315.71
7.3.20.0090.00217.44
7.3.10.0060.00717.46
7.3.00.0070.00717.60
7.2.330.0070.01116.68
7.2.320.0160.00616.77
7.2.310.0140.00316.72
7.2.300.0110.00416.81
7.2.290.0150.00616.77
7.2.260.0070.01016.63
7.2.250.0070.01215.85
7.2.240.0040.01315.82
7.2.230.0060.00915.96
7.2.220.0120.00315.81
7.2.210.0090.00715.83
7.2.200.0020.01015.88
7.2.190.0030.01216.01
7.2.180.0080.00615.96
7.2.170.0050.01115.99
7.2.160.0040.01116.80
7.2.150.0120.00618.54
7.2.140.0050.00518.52
7.2.130.0000.01318.45
7.2.120.0030.01318.59
7.2.110.0040.01018.68
7.2.100.0120.00318.43
7.2.90.0060.00618.40
7.2.80.0060.00618.39
7.2.70.0060.01018.68
7.2.60.0090.00618.53
7.2.50.0070.00718.76
7.2.40.0030.01518.43
7.2.30.0060.00918.50
7.2.20.0100.01018.61
7.2.10.0100.00018.57
7.2.00.0070.00718.53
7.1.330.0050.01016.75
7.1.320.0060.00416.63
7.1.310.0080.00616.84
7.1.300.0030.01116.70
7.1.290.0110.00416.72
7.1.280.0080.00516.71
7.1.270.0030.00816.81
7.1.260.0070.00616.70
7.1.250.0030.01317.43
7.1.240.0000.01417.34
7.1.230.0070.00717.34
7.1.220.0090.00617.39
7.1.210.0000.01117.48
7.1.200.0150.00017.46
7.1.190.0070.00717.50
7.1.180.0030.01017.48
7.1.170.0070.00717.66
7.1.160.0070.00317.51
7.1.150.0000.01417.49
7.1.140.0030.01717.55
7.1.130.0070.00317.34
7.1.120.0060.00917.63
7.1.110.0070.00717.51
7.1.100.0070.01117.66
7.1.90.0000.01217.50
7.1.80.0060.00917.53
7.1.70.0040.00617.53
7.1.60.0030.00817.62
7.1.50.0060.01217.27
7.1.40.0060.00917.63
7.1.30.0000.01217.49
7.1.20.0060.00317.29
7.1.10.0030.00917.55
7.1.00.0070.02519.98
7.0.330.0090.00317.27
7.0.320.0030.01216.96
7.0.310.0000.01317.21
7.0.300.0070.00717.05
7.0.290.0080.00617.39
7.0.280.0030.01017.23
7.0.270.0080.00417.18
7.0.260.0070.00317.13
7.0.250.0000.01017.07
7.0.240.0070.01017.29
7.0.230.0130.00017.29
7.0.220.0060.01017.34
7.0.210.0030.00917.13
7.0.200.0050.01017.22
7.0.190.0090.00317.26
7.0.180.0110.00417.33
7.0.170.0100.00317.19
7.0.160.0070.00717.34
7.0.150.0100.00617.11
7.0.140.0000.04719.55
7.0.130.0070.00817.27
7.0.120.0040.00717.32
7.0.110.0040.00417.19
7.0.100.0080.04718.63
7.0.90.0100.02518.43
7.0.80.0070.02718.45
7.0.70.0080.03318.67
7.0.60.0120.03318.50
7.0.50.0080.04218.85
7.0.40.0020.02817.64
7.0.30.0050.02817.66
7.0.20.0080.03217.51
7.0.10.0150.03317.61
7.0.00.0080.03817.55
5.6.400.0050.00516.00
5.6.390.0000.01115.95
5.6.380.0110.00016.01
5.6.370.0000.01315.57
5.6.360.0100.00716.02
5.6.350.0030.00716.07
5.6.340.0080.00815.96
5.6.330.0040.00815.44
5.6.320.0070.01016.06
5.6.310.0120.00315.67
5.6.300.0050.00515.98
5.6.290.0030.01416.00
5.6.280.0070.04018.35
5.6.270.0070.00716.02
5.6.260.0030.01016.07
5.6.250.0070.04518.25
5.6.240.0060.02718.20
5.6.230.0070.04718.31
5.6.220.0050.02218.36
5.6.210.0070.02718.18
5.6.200.0050.04618.49
5.6.190.0140.04018.66
5.6.180.0060.02118.41
5.6.170.0080.02618.34
5.6.160.0060.03618.49
5.6.150.0060.02818.35
5.6.140.0050.02318.45
5.6.130.0020.04818.51
5.6.120.0080.04218.48
5.6.110.0040.04818.49
5.6.100.0070.04318.48
5.6.90.0050.05518.52
5.6.80.0080.03818.25
5.6.70.0050.04318.14
5.6.60.0050.04518.11
5.6.50.0050.04518.34
5.6.40.0070.04518.19
5.6.30.0070.02318.11
5.6.20.0050.04418.08
5.6.10.0060.04218.15
5.6.00.0070.04518.05
5.5.380.0110.04018.11
5.5.370.0030.02918.19
5.5.360.0080.02718.19
5.5.350.0110.04218.16
5.5.340.0130.03818.29
5.5.330.0080.02218.27
5.5.320.0080.04118.19
5.5.310.0080.04018.32
5.5.300.0100.02818.37
5.5.290.0060.03818.31
5.5.280.0040.04418.29
5.5.270.0100.03318.32
5.5.260.0080.02218.41
5.5.250.0050.04018.21
5.5.240.0050.04318.05
5.5.230.0100.04218.08
5.5.220.0090.04017.96
5.5.210.0040.04118.02
5.5.200.0070.03817.98
5.5.190.0080.02617.96
5.5.180.0050.04518.05
5.5.170.0030.01415.78
5.5.160.0070.04017.97
5.5.150.0060.01817.94
5.5.140.0070.04218.13
5.5.130.0080.02817.96
5.5.120.0040.02417.87
5.5.110.0050.02518.00
5.5.100.0040.02617.88
5.5.90.0100.02217.80
5.5.80.0050.02917.92
5.5.70.0030.02317.95
5.5.60.0020.02518.00
5.5.50.0020.02817.95
5.5.40.0020.02618.03
5.5.30.0040.02118.00
5.5.20.0060.03817.98
5.5.10.0030.02317.96
5.5.00.0050.03117.92
5.4.450.0100.03316.07
5.4.440.0070.02216.14
5.4.430.0040.02216.20
5.4.420.0060.04316.00
5.4.410.0090.03315.84
5.4.400.0090.03815.92
5.4.390.0050.04515.89
5.4.380.0080.02515.78
5.4.370.0070.03715.86
5.4.360.0050.04315.86
5.4.350.0090.02115.90
5.4.340.0110.02415.79
5.4.330.0040.00412.68
5.4.320.0070.02215.96
5.4.310.0100.02815.90
5.4.300.0050.03815.94
5.4.290.0030.02915.97
5.4.280.0020.02415.71
5.4.270.0020.02415.96
5.4.260.0060.02115.90
5.4.250.0080.02115.83
5.4.240.0010.02415.88
5.4.230.0060.02015.88
5.4.220.0060.01815.79
5.4.210.0040.02215.83
5.4.200.0050.02315.88
5.4.190.0050.02115.78
5.4.180.0030.02816.00
5.4.170.0050.02215.84
5.4.160.0050.02015.89
5.4.150.0050.02015.82
5.4.140.0020.03014.66
5.4.130.0020.02214.49
5.4.120.0060.01814.41
5.4.110.0100.01514.63
5.4.100.0010.02314.50
5.4.90.0070.01814.46
5.4.80.0050.02014.55
5.4.70.0000.02414.43
5.4.60.0030.01814.46
5.4.50.0050.01914.60
5.4.40.0010.02414.64
5.4.30.0060.01814.58
5.4.20.0050.02214.51
5.4.10.0050.02514.55
5.4.00.0040.02414.23
5.3.290.0020.04013.91
5.3.280.0030.02113.77
5.3.270.0070.01813.88
5.3.260.0000.03213.89
5.3.250.0050.01813.89
5.3.240.0050.02113.78
5.3.230.0030.02513.81
5.3.220.0030.02513.73
5.3.210.0030.02313.79
5.3.200.0060.02113.76
5.3.190.0070.01813.83
5.3.180.0030.02213.89
5.3.170.0070.02113.92
5.3.160.0020.02213.86
5.3.150.0050.01813.83
5.3.140.0030.02513.75
5.3.130.0050.02013.75
5.3.120.0050.02113.75
5.3.110.0020.02313.78
5.3.100.0020.02913.61
5.3.90.0030.02213.68
5.3.80.0050.01913.54
5.3.70.0020.02313.53
5.3.60.0040.02213.64
5.3.50.0020.02413.43
5.3.40.0070.02313.37
5.3.30.0050.03013.38
5.3.20.0030.02513.44
5.3.10.0010.02313.24
5.3.00.0020.03613.27
5.2.170.0000.03311.09
5.2.160.0030.03011.23
5.2.150.0070.03011.10
5.2.140.0030.02711.16
5.2.130.0000.03310.95
5.2.120.0000.03310.96
5.2.110.0030.03011.09
5.2.100.0130.05011.09
5.2.90.0130.05010.91
5.2.80.0030.03011.08
5.2.70.0030.06311.13
5.2.60.0030.06011.13
5.2.50.0100.05311.01
5.2.40.0000.06310.82
5.2.30.0030.06310.92
5.2.20.0070.06310.98
5.2.10.0100.05010.92
5.2.00.0030.05710.64
5.1.60.0000.0509.82
5.1.50.0070.05010.00
5.1.40.0100.04710.00
5.1.30.0030.03310.41
5.1.20.0030.05310.38
5.1.10.0100.05310.06
5.1.00.0070.04010.11
5.0.50.0030.0478.46
5.0.40.0000.0478.46
5.0.30.0000.0378.46
5.0.20.0000.0438.46
5.0.10.0070.0408.46
5.0.00.0030.0608.46
4.4.90.0030.0338.46
4.4.80.0000.0378.46
4.4.70.0030.0308.46
4.4.60.0000.0338.46
4.4.50.0000.0408.46
4.4.40.0000.0338.46
4.4.30.0030.0378.46
4.4.20.0000.0378.46
4.4.10.0030.0338.46
4.4.00.0000.0578.46
4.3.110.0000.0378.46
4.3.100.0030.0338.46
4.3.90.0000.0378.46
4.3.80.0100.0378.46
4.3.70.0030.0338.46
4.3.60.0030.0238.46
4.3.50.0030.0178.46
4.3.40.0070.0378.46
4.3.30.0000.0378.46
4.3.20.0000.0278.46
4.3.10.0070.0308.46
4.3.00.0100.0278.46

preferences:
51.69 ms | 401 KiB | 5 Q