3v4l.org

run code in 300+ PHP versions simultaneously
<?php $imageTag = '<img src = http://nycxplorer.com/wp-content/uploads/2012/02/bagel1-1.jpg >'; //grab the src portion of the image tag $srcPattern = "/src.*?=.*?>/s"; preg_match($srcPattern, $imageTag, $srcParts); $srcPart = $srcParts[0]; print_r($srcPart . "\n"); //remove all whitespace from within and around the src portion $srcPart = trim(preg_replace('/[\s]+/','', $srcPart)); print_r($srcPart. "\n"); //grab the src URL $oldUrl = substr($srcPart, 4); //if there are quotes at the beginning of the url, cut them off if(strpos($oldUrl, '"') == 0 || strpos($oldUrl, "'") == 0) { $oldUrl = substr($oldUrl, 1, strlen($oldUrl)-2); } print_r($oldUrl. "\n"); ?>

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.0040.01216.49
8.3.50.0180.00416.49
8.3.40.0130.00318.96
8.3.30.0110.00718.77
8.3.20.0030.00618.85
8.3.10.0080.00018.80
8.3.00.0040.00419.48
8.2.180.0190.00016.75
8.2.170.0130.00922.96
8.2.160.0120.00419.13
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0030.00526.16
8.2.120.0000.00721.31
8.2.110.0140.00721.13
8.2.100.0110.00017.97
8.2.90.0080.00018.16
8.2.80.0080.00018.05
8.2.70.0080.00018.05
8.2.60.0050.00318.22
8.2.50.0060.00318.10
8.2.40.0040.00419.25
8.2.30.0040.00419.45
8.2.20.0070.00417.83
8.2.10.0040.00417.84
8.2.00.0080.00017.79
8.1.280.0100.01425.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00621.99
8.1.230.0060.00622.62
8.1.220.0040.00417.74
8.1.210.0040.00420.05
8.1.200.0060.00317.48
8.1.190.0040.00417.38
8.1.180.0040.00418.10
8.1.170.0030.00618.63
8.1.160.0040.00418.95
8.1.150.0000.00818.83
8.1.140.0000.00717.52
8.1.130.0000.00817.66
8.1.120.0000.00817.65
8.1.110.0000.00717.54
8.1.100.0070.00017.67
8.1.90.0070.00017.62
8.1.80.0070.00017.59
8.1.70.0030.00317.57
8.1.60.0030.00617.75
8.1.50.0000.00717.50
8.1.40.0000.00917.70
8.1.30.0040.00417.75
8.1.20.0000.00817.67
8.1.10.0000.00917.71
8.1.00.0080.00317.66
8.0.300.0000.00821.90
8.0.290.0000.00716.88
8.0.280.0000.00718.38
8.0.270.0030.00317.29
8.0.260.0070.00017.10
8.0.250.0020.00517.07
8.0.240.0040.00416.95
8.0.230.0000.00717.09
8.0.220.0070.00017.07
8.0.210.0030.00317.00
8.0.200.0040.00417.01
8.0.190.0040.00417.14
8.0.180.0040.00816.96
8.0.170.0030.00616.86
8.0.160.0000.00717.03
8.0.150.0000.00816.93
8.0.140.0070.00317.02
8.0.130.0030.00313.56
8.0.120.0030.00616.96
8.0.110.0000.01017.10
8.0.100.0000.00716.84
8.0.90.0030.00516.90
8.0.80.0040.01117.04
8.0.70.0080.00017.04
8.0.60.0060.00316.94
8.0.50.0080.00017.07
8.0.30.0060.00917.28
8.0.20.0120.00917.11
8.0.10.0050.00217.13
8.0.00.0140.00816.83
7.4.330.0050.00013.13
7.4.320.0000.00616.70
7.4.300.0030.00316.79
7.4.290.0030.00716.73
7.4.280.0080.00416.71
7.4.270.0050.00316.80
7.4.260.0050.00216.77
7.4.250.0000.00816.79
7.4.240.0000.00716.73
7.4.230.0020.00716.55
7.4.220.0100.01316.84
7.4.210.0080.00716.84
7.4.200.0050.00316.62
7.4.190.0000.00816.71
7.4.160.0060.00916.62
7.4.150.0110.00716.73
7.4.140.0120.00816.72
7.4.130.0100.00716.59
7.4.120.0060.01116.84
7.4.110.0120.00916.75
7.4.100.0150.00916.75
7.4.90.0000.01916.73
7.4.80.0090.01019.39
7.4.70.0130.00316.71
7.4.60.0060.01216.61
7.4.50.0060.00316.78
7.4.40.0030.01316.52
7.4.30.0100.00716.48
7.4.00.0070.00415.01
7.3.330.0030.00313.39
7.3.320.0040.00313.29
7.3.310.0000.00716.30
7.3.300.0030.00316.35
7.3.290.0060.01116.52
7.3.280.0120.01016.42
7.3.270.0120.01216.71
7.3.260.0110.01416.88
7.3.250.0100.00916.66
7.3.240.0090.00616.64
7.3.230.0100.01016.68
7.3.210.0110.01116.69
7.3.200.0040.01216.56
7.3.190.0090.00616.79
7.3.180.0030.01216.55
7.3.170.0070.01316.45
7.3.160.0100.01316.51
7.3.120.0100.01014.98
7.3.110.0090.00615.21
7.3.100.0080.00514.87
7.3.90.0030.01414.67
7.3.80.0000.00914.98
7.3.70.0060.01115.13
7.3.60.0080.00414.79
7.3.50.0000.01514.91
7.3.40.0030.01215.09
7.3.30.0130.00314.80
7.3.20.0060.00316.93
7.3.10.0030.00616.95
7.3.00.0070.00716.89
7.2.330.0190.00316.84
7.2.320.0110.00616.66
7.2.310.0120.01216.89
7.2.300.0130.01016.95
7.2.290.0130.00316.70
7.2.240.0000.01614.99
7.2.230.0090.00914.98
7.2.220.0130.00015.07
7.2.210.0070.00315.22
7.2.200.0100.00615.54
7.2.190.0070.01015.35
7.2.180.0110.00415.36
7.2.170.0090.00915.32
7.2.160.0150.00315.32
7.2.150.0060.00617.11
7.2.140.0000.01417.33
7.2.130.0030.01217.03
7.2.120.0070.01017.07
7.2.110.0100.01317.11
7.2.100.0040.01117.12
7.2.90.0100.00017.18
7.2.80.0000.01617.15
7.2.70.0070.00717.14
7.2.60.0030.01216.81
7.2.50.0090.00617.04
7.2.40.0030.01017.34
7.2.30.0080.00416.84
7.2.20.0030.00917.14
7.2.10.0030.01317.11
7.2.00.0070.00718.50
7.1.330.0030.01016.14
7.1.320.0030.00716.13
7.1.310.0080.00416.16
7.1.300.0000.01316.20
7.1.290.0100.00716.14
7.1.280.0070.00715.80
7.1.270.0080.00015.93
7.1.260.0060.00916.02
7.1.250.0060.00915.89
7.1.70.0000.01017.42
7.1.60.0100.01419.30
7.1.50.0100.01317.27
7.1.00.0070.03022.36
7.0.200.0000.00816.97
7.0.140.0000.07022.08
7.0.60.0100.08019.94
7.0.50.0100.05017.92
7.0.40.0000.05020.24
7.0.30.0330.05020.01
7.0.20.0330.08020.13
7.0.10.0100.07020.18
7.0.00.0070.05720.10
5.6.280.0100.06720.88
5.6.210.0030.05020.55
5.6.200.0070.08318.22
5.6.190.0030.05720.39
5.6.180.0300.05320.41
5.6.170.0370.06720.47
5.6.160.0100.07720.47
5.6.150.0070.08018.07
5.6.140.0000.08318.11
5.6.130.0030.05318.11
5.6.120.0170.07020.99
5.6.110.0130.08021.00
5.6.100.0100.07320.97
5.6.90.0170.08320.99
5.6.80.0130.07720.33
5.5.350.0270.06720.38
5.5.340.0030.04017.93
5.5.330.0000.05320.28
5.5.320.0170.04020.27
5.5.310.0270.04320.50
5.5.300.0030.08017.91
5.5.290.0030.07318.01
5.5.280.0100.08020.68
5.5.270.0030.08720.86
5.5.260.0200.06320.89
5.5.250.0130.05720.61
5.5.240.0070.08020.25
5.4.450.0500.05019.43
5.4.440.0530.02319.57
5.4.430.0270.04719.58
5.4.420.0630.05019.29
5.4.410.0470.03719.44
5.4.400.0700.03019.05
5.4.390.0300.04019.10
5.4.380.0500.03719.16
5.4.370.0200.04319.13
5.4.360.0170.04719.25
5.4.350.0270.03719.07
5.4.340.0970.03319.06
5.4.320.0370.04319.06
5.4.310.0400.05019.21
5.4.300.0630.04019.24
5.4.290.0070.03018.90
5.4.280.0730.02718.93
5.4.270.0630.04719.13
5.4.260.0700.04019.09
5.4.250.0530.04319.21
5.4.240.0700.03318.88
5.4.230.0070.02719.17
5.4.220.0570.03318.93
5.4.210.0530.03018.76
5.4.200.0930.04019.03
5.4.190.0570.04318.76
5.4.180.0570.04319.05
5.4.170.0530.04319.05
5.4.160.0630.04019.04
5.4.150.0630.04719.01
5.4.140.0470.04716.24
5.4.130.0700.02716.28
5.4.120.0530.03716.26
5.4.110.0770.04316.23
5.4.100.0670.04016.42
5.4.90.0970.03316.28
5.4.80.0870.03016.38
5.4.70.0130.03716.41
5.4.60.0800.04016.45
5.4.50.0370.03716.43
5.4.40.0600.03316.43
5.4.30.0430.03716.43
5.4.20.0600.03016.45
5.4.10.0200.05716.34
5.4.00.0500.03715.83
5.3.290.0770.03715.79
5.3.280.0570.03315.79
5.3.270.0800.04015.83
5.3.260.0570.03715.83
5.3.250.0930.03315.83
5.3.240.0630.04015.83
5.3.230.0230.04315.83
5.3.220.0470.04015.83
5.3.210.0230.04315.83
5.3.200.0530.04015.83
5.3.190.0870.03315.83
5.3.180.0770.04015.83
5.3.170.0470.04315.83
5.3.160.0530.03315.83
5.3.150.0470.03715.83
5.3.140.0770.03715.83
5.3.130.0830.04015.83
5.3.120.0300.03315.83
5.3.110.1170.02015.83
5.3.100.0570.03015.83
5.3.90.0200.05315.83
5.3.80.0700.03715.83
5.3.70.0400.03015.83
5.3.60.0770.03015.83
5.3.50.0830.02715.83
5.3.40.0470.03315.83
5.3.30.0630.03015.83
5.3.20.0430.04315.83
5.3.10.0470.03315.83
5.3.00.0330.03715.83
5.2.170.0200.03315.83
5.2.160.0370.03315.83
5.2.150.0500.03715.83
5.2.140.0630.02715.83
5.2.130.0400.03715.83
5.2.120.0370.02715.83
5.2.110.0600.02715.83
5.2.100.0570.03015.83
5.2.90.0400.02315.83
5.2.80.0500.03315.83
5.2.70.0430.03315.83
5.2.60.0470.02315.83
5.2.50.0300.02315.83
5.2.40.0470.02315.83
5.2.30.0200.03715.83
5.2.20.0370.02715.83
5.2.10.0230.03015.83
5.2.00.0200.03315.83
5.1.60.0630.03015.83
5.1.50.0130.02315.83
5.1.40.0470.01715.83
5.1.30.0370.02015.83
5.1.20.0400.02715.83
5.1.10.0370.02315.83
5.1.00.0430.03015.83
5.0.50.0070.02015.83
5.0.40.0170.02015.83
5.0.30.0330.02715.83
5.0.20.0330.01315.83
5.0.10.0170.02015.83
5.0.00.0130.03315.83
4.4.90.0200.01315.83
4.4.80.0200.01015.83
4.4.70.0100.01715.83
4.4.60.0200.01315.83
4.4.50.0300.01315.83
4.4.40.0100.02715.83
4.4.30.0200.01315.83
4.4.20.0130.02315.83
4.4.10.0370.01015.83
4.4.00.0070.02715.83
4.3.110.0130.01715.83
4.3.100.0100.01315.83
4.3.90.0030.02015.83
4.3.80.0070.02715.83
4.3.70.0200.01315.83
4.3.60.0130.01315.83
4.3.50.0170.01015.83
4.3.40.0100.03015.83
4.3.30.0030.01315.83
4.3.20.0030.01715.83
4.3.10.0030.02015.71
4.3.00.0070.01315.71

preferences:
43.81 ms | 401 KiB | 5 Q