3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * DO NOT USE IN PRODUCTION */ function link_urls( $str ) { $linked = ''; $words = explode( ' ', $str ); foreach ( $words as &$word ) { if ( false === strpos( $word, '://' ) ) { continue; } $last_char = mb_substr( $word, -1 ); preg_match( '/[^a-zA-Z0-9\/]/', $last_char, $match ); $extra = ( $match ) ? $last_char : ''; $word = sprintf( '<a href="%1$s">%1$s</a>%2$s', ( '' === $extra ) ? $word : mb_substr( $word, 0, -1 ), $extra ); } return implode( ' ', $words ); } // Not this, keep scrolling. $body = <<<EOD Hello, This is the body of the email. Howdy! Some plugins and themes have automatically updated to their latest versions on your site at http://example.com. No further action is needed on your part. Howdy! Some plugins and themes have automatically updated to their latest versions on your site at http://example.com/. No further action is needed on your part. Howdy! Some plugins and themes have automatically updated to their latest versions on your site at http://example.com/index.php. No further action is needed on your part. Howdy! Some plugins and themes have automatically updated to their latest versions on your site at http://example.com/index.php?why=whoknows. No further action is needed on your part. Howdy! Some plugins and themes have automatically updated to their latest versions on your site at http://example.com:80. No further action is needed on your part. Howdy! Some plugins and themes have automatically updated to their latest versions on your site at http://example.com/#welcome. No further action is needed on your part. Howdy! Some plugins and themes have automatically updated to their latest versions on your site at http://example.com/! No further action is needed on your part. Howdy! Some plugins and themes have automatically updated to their latest versions on your site at http://example.com/- No further action is needed on your part. Howdy! Some plugins and themes have automatically updated to their latest versions on your site at http://example.com/? No further action is needed on your part. Howdy! Some plugins and themes have automatically updated to their latest versions on your site at http://example.com/: No further action is needed on your part. Howdy! Some plugins and themes have automatically updated to their latest versions on your site at http://example.com/; No further action is needed on your part. Regards, Email Service EOD; echo link_urls( $body );

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.0150.00616.88
8.3.50.0160.01318.52
8.3.40.0110.00419.13
8.3.30.0120.00618.87
8.3.20.0140.00024.18
8.3.10.0040.00724.66
8.3.00.0070.01026.16
8.2.180.0130.00725.92
8.2.170.0140.00418.95
8.2.160.0130.00022.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0080.00021.11
8.2.110.0100.00020.95
8.2.100.0040.00817.84
8.2.90.0050.00318.16
8.2.80.0080.00017.97
8.2.70.0100.00017.75
8.2.60.0030.00618.03
8.2.50.0050.00318.07
8.2.40.0000.00919.88
8.2.30.0080.00017.99
8.2.20.0070.00019.48
8.2.10.0040.00418.04
8.2.00.0040.00419.34
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0120.00020.94
8.1.230.0090.00321.15
8.1.220.0040.00417.91
8.1.210.0040.00418.95
8.1.200.0030.00617.38
8.1.190.0060.00317.60
8.1.180.0040.00418.10
8.1.170.0030.00620.50
8.1.160.0030.00618.95
8.1.150.0030.00518.93
8.1.140.0000.00917.65
8.1.130.0000.00718.96
8.1.120.0050.00317.54
8.1.110.0040.00417.59
8.1.100.0040.00417.61
8.1.90.0040.00417.57
8.1.80.0080.00317.52
8.1.70.0030.00317.66
8.1.60.0060.00317.87
8.1.50.0000.00817.77
8.1.40.0030.00617.79
8.1.30.0040.00417.88
8.1.20.0040.00417.84
8.1.10.0080.00417.71
8.1.00.0000.00717.71
8.0.300.0000.00820.18
8.0.290.0030.00617.00
8.0.280.0000.00818.47
8.0.270.0040.00418.20
8.0.260.0000.00618.56
8.0.250.0000.00717.21
8.0.240.0000.00717.16
8.0.230.0000.00717.26
8.0.220.0070.00017.20
8.0.210.0040.00417.11
8.0.200.0000.00717.25
8.0.190.0000.00917.30
8.0.180.0020.00517.11
8.0.170.0030.00617.23
8.0.160.0030.00517.18
8.0.150.0040.00417.23
8.0.140.0000.00717.07
8.0.130.0060.00013.66
8.0.120.0060.00613.65
8.0.110.0040.00613.61
8.0.100.0110.00013.61
8.0.90.0060.00613.68
8.0.80.0090.00313.55
8.0.70.0080.00413.60
8.0.60.0120.00013.67
8.0.50.0120.00013.63
8.0.30.0060.00613.61
8.0.20.0080.00413.62
8.0.10.0100.00313.68
8.0.00.0030.00313.68
7.4.330.0000.00615.55
7.4.320.0070.00016.84
7.4.300.0030.00316.67
7.4.290.0040.00416.68
7.4.280.0040.00416.74
7.4.270.0080.00016.80
7.4.260.0050.00513.46
7.4.250.0160.00013.44
7.4.240.0070.00713.44
7.4.230.0070.00713.51
7.4.220.0030.00613.43
7.4.210.0040.00413.54
7.4.200.0070.00413.54
7.4.190.0070.00313.59
7.4.180.0080.00413.54
7.4.160.0110.00013.62
7.4.150.0060.00613.69
7.4.140.0090.00313.60
7.4.130.0030.00313.51
7.4.120.0000.00613.51
7.4.110.0030.00613.66
7.4.100.0080.00413.71
7.4.90.0070.00413.53
7.4.80.0040.00713.63
7.4.70.0070.00313.58
7.4.60.0060.00613.59
7.4.50.0110.00013.43
7.4.40.0050.00513.50
7.4.30.0110.00013.60
7.4.20.0100.00013.45
7.4.10.0000.00713.59
7.4.00.0100.00013.46
7.3.330.0040.00416.64
7.3.320.0130.00013.57
7.3.310.0030.00713.57
7.3.300.0120.00013.54
7.3.290.0040.00813.45
7.3.280.0080.00513.38
7.3.270.0110.00313.52
7.3.260.0070.00413.45
7.3.250.0090.00313.41
7.3.240.0140.00013.66
7.3.230.0100.00213.43
7.3.220.0110.00313.47
7.3.210.0050.01013.46
7.3.200.0140.00013.35
7.3.190.0100.00313.48
7.3.180.0110.00313.53
7.3.170.0080.00413.40
7.3.160.0070.00313.39
7.3.150.0120.00013.34
7.3.140.0130.00013.39
7.3.130.0090.00513.49
7.3.120.0090.00213.51
7.3.110.0080.00613.21
7.3.100.0070.00713.46
7.3.90.0150.00013.64
7.3.80.0110.00413.46
7.3.70.0140.00313.50
7.3.60.0160.00013.64
7.3.50.0120.00613.68
7.3.40.0110.00613.67
7.3.30.0130.00013.59
7.3.20.0160.00015.45
7.3.10.0050.00915.20
7.3.00.0150.00015.32

preferences:
57.98 ms | 400 KiB | 5 Q