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 && strpos($value, '@', 0) != "") $result[$key] = $value; echo $value; } $result = array_values($result); print_r($result); if( strpos("@txyz", '@', 0) === 1 && strpos("@txyz", '@', 0) != "") echo "--".strpos("@txyz", '@', 0); ?>

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.00618.40
8.3.50.0120.00821.14
8.3.40.0090.00618.56
8.3.30.0120.00319.21
8.3.20.0080.00020.16
8.3.10.0000.00822.13
8.3.00.0080.00022.52
8.2.180.0070.00716.50
8.2.170.0070.00722.96
8.2.160.0110.00619.16
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0130.00626.16
8.2.120.0050.00319.54
8.2.110.0000.01020.27
8.2.100.0060.00618.22
8.2.90.0000.00719.35
8.2.80.0000.00817.97
8.2.70.0070.00317.75
8.2.60.0030.00717.93
8.2.50.0000.01018.07
8.2.40.0050.00318.34
8.2.30.0030.00518.10
8.2.20.0040.00417.69
8.2.10.0040.00417.84
8.2.00.0060.00617.78
8.1.280.0110.00425.92
8.1.270.0050.00318.61
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0090.00023.83
8.1.230.0080.00318.99
8.1.220.0080.00017.79
8.1.210.0050.00318.77
8.1.200.0000.00917.47
8.1.190.0030.00617.54
8.1.180.0030.00618.73
8.1.170.0030.00618.30
8.1.160.0070.00022.07
8.1.150.0070.00018.69
8.1.140.0030.00517.42
8.1.130.0000.00717.81
8.1.120.0040.00417.43
8.1.110.0000.00717.43
8.1.100.0000.00717.41
8.1.90.0040.00417.47
8.1.80.0000.00717.49
8.1.70.0000.00717.41
8.1.60.0040.00417.55
8.1.50.0000.00717.39
8.1.40.0040.00417.56
8.1.30.0050.00317.63
8.1.20.0060.00317.64
8.1.10.0030.00617.58
8.1.00.0030.00517.57
8.0.300.0030.00518.77
8.0.290.0000.00717.18
8.0.280.0070.00018.43
8.0.270.0030.00317.12
8.0.260.0040.00416.71
8.0.250.0050.00316.96
8.0.240.0060.00316.94
8.0.230.0050.00216.91
8.0.220.0040.00416.90
8.0.210.0030.00316.85
8.0.200.0000.00716.94
8.0.190.0040.00416.97
8.0.180.0050.00316.88
8.0.170.0040.00416.95
8.0.160.0040.00416.88
8.0.150.0030.00316.83
8.0.140.0040.00416.78
8.0.130.0000.00513.30
8.0.120.0040.00416.87
8.0.110.0040.00416.87
8.0.100.0000.00716.79
8.0.90.0040.00416.66
8.0.80.0040.01116.87
8.0.70.0070.00016.91
8.0.60.0030.00516.76
8.0.50.0040.00416.73
8.0.30.0070.01217.04
8.0.20.0130.00617.40
8.0.10.0000.00716.89
8.0.00.0110.00916.71
7.4.330.0050.00015.00
7.4.320.0060.00016.52
7.4.300.0000.00816.51
7.4.290.0000.00716.56
7.4.280.0100.00016.57
7.4.270.0040.00416.54
7.4.260.0030.00316.48
7.4.250.0050.00216.46
7.4.240.0030.00516.51
7.4.230.0060.00016.68
7.4.220.0110.00816.48
7.4.210.0100.00616.51
7.4.200.0000.00716.61
7.4.190.0040.00416.76
7.4.160.0130.00316.33
7.4.150.0060.01217.40
7.4.140.0110.00817.86
7.4.130.0110.00816.44
7.4.120.0120.00516.52
7.4.110.0070.01016.62
7.4.100.0100.01316.32
7.4.90.0070.01116.46
7.4.80.0050.01119.39
7.4.70.0110.00716.45
7.4.60.0110.00616.63
7.4.50.0030.00616.45
7.4.40.0000.01222.77
7.4.30.0110.00516.41
7.4.00.0070.00715.01
7.3.330.0000.00513.16
7.3.320.0060.00012.97
7.3.310.0070.00016.32
7.3.300.0000.00716.30
7.3.290.0040.01116.15
7.3.280.0050.01016.25
7.3.270.0080.00917.40
7.3.260.0120.00616.54
7.3.250.0110.00616.49
7.3.240.0180.00416.62
7.3.230.0070.01016.45
7.3.210.0150.00616.54
7.3.200.0060.01219.39
7.3.190.0180.00316.27
7.3.180.0130.00316.44
7.3.170.0030.01316.43
7.3.160.0030.01316.45
7.3.120.0110.00514.79
7.3.110.0130.00614.59
7.3.100.0000.01614.73
7.3.90.0060.00614.96
7.3.80.0070.00714.67
7.3.70.0040.00714.61
7.3.60.0070.00714.82
7.3.50.0040.00414.60
7.3.40.0070.01114.75
7.3.30.0060.00614.77
7.3.20.0100.00316.72
7.3.10.0120.00216.56
7.3.00.0060.00816.46
7.2.330.0110.00616.54
7.2.320.0110.00716.57
7.2.310.0090.00916.68
7.2.300.0060.01016.66
7.2.290.0030.01316.61
7.2.250.0070.01415.25
7.2.240.0070.01415.17
7.2.230.0030.01415.04
7.2.220.0140.00414.92
7.2.210.0030.01315.03
7.2.200.0030.00615.00
7.2.190.0050.00514.94
7.2.180.0030.01314.77
7.2.170.0000.01814.99
7.2.130.0080.00516.78
7.2.120.0070.00916.91
7.2.110.0090.00216.89
7.2.100.0110.00616.74
7.2.90.0090.00916.85
7.2.80.0100.00816.98
7.2.70.0080.00716.96
7.2.60.0070.00916.73
7.2.50.0020.01216.93
7.2.40.0120.00517.04
7.2.30.0070.01316.88
7.2.20.0080.00617.02
7.2.10.0140.00716.98
7.2.00.0080.00917.68
7.1.330.0030.01115.86
7.1.320.0030.01215.77
7.1.310.0090.00015.89
7.1.300.0050.00515.55
7.1.290.0100.00715.73
7.1.280.0030.01315.82
7.1.270.0000.01315.82
7.1.260.0070.00715.80
7.1.250.0050.01115.60
7.1.100.0000.01218.08
7.1.70.0000.01416.92
7.1.60.0130.01019.82
7.1.50.0000.01116.92
7.1.00.0000.06722.30
7.0.200.0130.00316.89
7.0.140.0070.07021.95
7.0.100.0030.07719.97
7.0.90.0270.06019.96
7.0.80.0130.05319.81
7.0.70.0100.04020.01
7.0.60.0030.06719.88
7.0.50.0230.08320.30
7.0.40.0100.08320.14
7.0.30.0030.08720.07
7.0.20.0100.07720.18
7.0.10.0130.07720.07
7.0.00.0030.08319.95
5.6.280.0000.07720.99
5.6.250.0070.07020.56
5.6.240.0070.04720.68
5.6.230.0070.09020.59
5.6.220.0130.05020.66
5.6.210.0030.08020.48
5.6.200.0100.08320.96
5.6.190.0000.07321.18
5.6.180.0070.08321.03
5.6.170.0130.07321.02
5.6.160.0100.06320.95
5.6.150.0000.05321.04
5.6.140.0100.08021.08
5.6.130.0070.08021.00
5.6.120.0030.08321.07
5.6.110.0070.05321.12
5.6.100.0070.05021.11
5.6.90.0100.04720.92
5.6.80.0100.07720.40
5.6.70.0100.06020.39
5.6.60.0100.06720.32
5.6.50.0030.07320.39
5.6.40.0070.07720.36
5.6.30.0230.03020.46
5.6.20.0170.03720.40
5.6.10.0130.07720.35
5.6.00.0070.05020.41
5.5.380.0070.04020.36
5.5.370.0070.04720.36
5.5.360.0100.05720.38
5.5.350.0100.06320.37
5.5.340.0100.08320.91
5.5.330.0030.05320.87
5.5.320.0170.06020.87
5.5.310.0070.08020.75
5.5.300.0130.07320.88
5.5.290.0130.07720.72
5.5.280.0070.07020.89
5.5.270.0100.07320.84
5.5.260.0130.05720.74
5.5.250.0170.07720.74
5.5.240.0100.07320.30
5.5.230.0130.05320.27
5.5.220.0030.04720.19
5.5.210.0030.07720.23
5.5.200.0030.04020.26
5.5.190.0070.07320.23
5.5.180.0100.04020.08
5.5.160.0030.04720.18
5.5.150.0000.07720.03
5.5.140.0100.07720.20
5.5.130.0170.06320.24
5.5.120.0100.07320.22
5.5.110.0070.07320.22
5.5.100.0130.03320.10
5.5.90.0070.07020.00
5.5.80.0070.07720.16
5.5.70.0170.03720.05
5.5.60.0030.05719.99
5.5.50.0070.06020.03
5.5.40.0070.06020.07
5.5.30.0100.07020.11
5.5.20.0030.07720.07
5.5.10.0070.08319.97
5.5.00.0070.07020.07
5.4.450.0070.08019.39
5.4.440.0100.08019.14
5.4.430.0070.07719.29
5.4.420.0070.04719.44
5.4.410.0070.07719.17
5.4.400.0130.03719.12
5.4.390.0070.04719.16
5.4.380.0030.05318.96
5.4.370.0100.04719.13
5.4.360.0070.06719.09
5.4.350.0000.04319.04
5.4.340.0100.07019.02
5.4.320.0030.06019.14
5.4.310.0130.07319.22
5.4.300.0130.07019.22
5.4.290.0030.04318.96
5.4.280.0070.04319.07
5.4.270.0030.06318.94
5.4.260.0070.04319.04
5.4.250.0070.05018.94
5.4.240.0070.04719.02
5.4.230.0070.04319.12
5.4.220.0130.04018.90
5.4.210.0000.07719.07
5.4.200.0130.05719.11
5.4.190.0030.05319.11
5.4.180.0070.04718.98
5.4.170.0070.06018.91
5.4.160.0100.07719.12
5.4.150.0230.06718.83
5.4.140.0130.06316.36
5.4.130.0030.07716.27
5.4.120.0070.05016.38
5.4.110.0030.05716.34
5.4.100.0000.04016.32
5.4.90.0070.07016.35
5.4.80.0100.03316.19
5.4.70.0130.06016.43
5.4.60.0100.06316.33
5.4.50.0070.06716.28
5.4.40.0200.06016.33
5.4.30.0000.04016.27
5.4.20.0030.04016.37
5.4.10.0100.03716.22
5.4.00.0000.03715.83
5.3.290.0130.06714.63
5.3.280.0070.04314.62
5.3.270.0030.04714.55
5.3.260.0030.04314.47
5.3.250.0100.06014.62
5.3.240.0030.06314.45
5.3.230.0030.04314.56
5.3.220.0100.06714.43
5.3.210.0030.04714.53
5.3.200.0100.06314.56
5.3.190.0070.04014.43
5.3.180.0030.08314.57
5.3.170.0100.07014.57
5.3.160.0100.06714.40
5.3.150.0100.03714.56
5.3.140.0130.05714.43
5.3.130.0070.06014.39
5.3.120.0030.04014.52
5.3.110.0070.05714.41
5.3.100.0070.06013.91
5.3.90.0070.07313.93
5.3.80.0070.06314.00
5.3.70.0100.02714.01
5.3.60.0000.06713.86
5.3.50.0030.05313.93
5.3.40.0070.06713.95
5.3.30.0070.04013.67
5.3.20.0100.05713.64
5.3.10.0070.03313.54
5.3.00.0070.07313.55
5.2.170.0070.02312.09
5.2.160.0070.03312.09
5.2.150.0070.04312.09
5.2.140.0070.03312.09
5.2.130.0030.03712.09
5.2.120.0030.05312.09
5.2.110.0100.07012.09
5.2.100.0030.04712.09
5.2.90.0070.04012.09
5.2.80.0030.03012.09
5.2.70.0070.07312.09
5.2.60.0000.04312.09
5.2.50.0070.05712.09
5.2.40.0030.03312.09
5.2.30.0070.03012.09
5.2.20.0170.04312.09
5.2.10.0000.04312.09
5.2.00.0070.05712.09
5.1.60.0000.04312.09
5.1.50.0070.04012.09
5.1.40.0000.03012.09
5.1.30.0000.04012.09
5.1.20.0030.04712.09
5.1.10.0030.04012.09
5.1.00.0030.02712.09
5.0.50.0000.02312.09
5.0.40.0030.03712.09
5.0.30.0000.03312.09
5.0.20.0000.02712.09
5.0.10.0000.03312.09
5.0.00.0030.06012.09
4.4.90.0000.03712.09
4.4.80.0030.01712.09
4.4.70.0000.02012.09
4.4.60.0070.01312.09
4.4.50.0000.03012.09
4.4.40.0100.04312.09
4.4.30.0030.02712.09
4.4.20.0070.02312.09
4.4.10.0000.02012.09
4.4.00.0000.03712.09
4.3.110.0030.02012.09
4.3.100.0030.01312.09
4.3.90.0030.01712.09
4.3.80.0070.05012.09
4.3.70.0000.02012.09
4.3.60.0030.03312.09
4.3.50.0100.02312.09
4.3.40.0070.03712.09
4.3.30.0030.02312.09
4.3.20.0000.03712.09
4.3.10.0000.03012.09
4.3.00.0000.02312.09

preferences:
59.96 ms | 401 KiB | 5 Q