3v4l.org

run code in 300+ PHP versions simultaneously
<?php $newstring = 'Volvo Trucks - Rajnikanth - The Epic Split feat. (Live Test 6) @xyz Thalaivar Epic Split Rajanikanth Rajinikanth Rajani Auto Auto rikshaw and also @xyz.abc http://another.net @bac.def this is tesging @pqr '; $array = explode(" ", $newstring); $result=array(); foreach($array as $key=>$value) { if( strpos($value, '@', 0) == 0) $result[$key] = $value); } $result = array_values($result); print_r($result); ?>

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)
5.4.250.0130.05319.02
5.4.240.0170.06319.09
5.4.230.0130.04718.96
5.4.220.0030.06319.00
5.4.210.0100.05018.75
5.4.200.0100.05318.75
5.4.190.0000.06019.09
5.4.180.0100.05318.64
5.4.170.0170.06718.95
5.4.160.0100.05018.99
5.4.150.0100.06018.64
5.4.140.0070.05316.42
5.4.130.0200.03716.33
5.4.120.0070.07316.30
5.4.110.0130.05016.41
5.4.100.0070.05016.52
5.4.90.0070.05016.41
5.4.80.0030.05016.37
5.4.70.0100.04716.40
5.4.60.0070.05716.45
5.4.50.0070.07016.44
5.4.40.0070.05016.52
5.4.30.0070.05016.46
5.4.20.0130.04016.38
5.4.10.0100.04716.52
5.4.00.0100.04715.94
5.3.280.0030.05314.64
5.3.270.0130.05714.66
5.3.260.0070.05314.70
5.3.250.0070.05014.61
5.3.240.0100.04714.63
5.3.230.0170.04714.52
5.3.220.0070.05014.59
5.3.210.0030.07314.66
5.3.200.0030.05714.34
5.3.190.0100.05014.58
5.3.180.0030.05314.41
5.3.170.0070.05014.45
5.3.160.0070.05014.33
5.3.150.0070.05014.66
5.3.140.0070.07014.57
5.3.130.0100.05014.56
5.3.120.0100.06314.42
5.3.110.0030.05314.57
5.3.100.0100.04714.05
5.3.90.0070.05014.02
5.3.80.0070.05013.96
5.3.70.0030.05313.79
5.3.60.0030.05714.02
5.3.50.0030.05013.93
5.3.40.0030.05714.12
5.3.30.0230.05313.61
5.3.20.0070.05313.75
5.3.10.0100.06313.54
5.3.00.0070.05313.56

preferences:
140.97 ms | 1394 KiB | 7 Q