3v4l.org

run code in 300+ PHP versions simultaneously
<?php $youtube_videos_count = 1; $string = 'http://youtu.be/O7Lm3BMG8ow The G20 meeting in Washington over the weekend ended with a tacit endorsement of the recent Japanese monetary policy that has caused the yen to lose 11% over the past 3 months, and has the Nikkei 30% higher since the beginning of the year. The South Koreans were complainants following pressures on its own vital export sector but was only able to get a commitment from the G20 to be mindful of unintended negative side effects stemming from extended periods of monetary easing. Finance Minister Aso told us that the other members of the G20 had agreed that the bond buying plan put forward by the Bank of Japan was inde'; $replacement = '<span class="video"><a id="youTubeVideo' . ++$youtube_videos_count . '" href="http://www.youtube.com/watch?v=$2" target="_blank">View Our Video Blog Entry For This Post</a></span>'; echo preg_replace('((http://)?(www.)?(youtube.com|youtu.be)(/v/|/watch\?v=|/)([a-zA-Z0-9_-]*)(.*))', $replacement, $string);

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.0080.01116.88
8.3.50.0100.01016.71
8.3.40.0120.00419.02
8.3.30.0000.01518.66
8.3.20.0090.00018.95
8.3.10.0030.00618.90
8.3.00.0080.00019.38
8.2.180.0040.01116.71
8.2.170.0150.00022.96
8.2.160.0130.00318.95
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00420.91
8.2.110.0030.00721.21
8.2.100.0090.00319.60
8.2.90.0050.00318.16
8.2.80.0030.00519.04
8.2.70.0000.00817.75
8.2.60.0030.00617.93
8.2.50.0030.00518.07
8.2.40.0000.00718.20
8.2.30.0080.00017.89
8.2.20.0000.01117.65
8.2.10.0050.00317.94
8.2.00.0080.00017.90
8.1.280.0100.01025.92
8.1.270.0000.00823.99
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00322.46
8.1.230.0080.00417.66
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0080.00017.35
8.1.190.0050.00317.48
8.1.180.0040.00418.10
8.1.170.0000.00818.84
8.1.160.0040.00419.11
8.1.150.0040.00418.86
8.1.140.0030.00617.52
8.1.130.0000.00619.30
8.1.120.0040.00417.52
8.1.110.0000.00717.64
8.1.100.0040.00417.53
8.1.90.0040.00417.60
8.1.80.0000.00717.50
8.1.70.0000.00717.57
8.1.60.0060.00317.75
8.1.50.0040.00417.62
8.1.40.0030.00617.59
8.1.30.0040.00417.70
8.1.20.0040.00417.83
8.1.10.0060.00317.58
8.1.00.0040.00417.62
8.0.300.0000.00718.77
8.0.290.0030.00616.88
8.0.280.0030.00618.39
8.0.270.0000.00817.29
8.0.260.0000.00717.05
8.0.250.0040.00417.15
8.0.240.0040.00416.98
8.0.230.0030.00317.13
8.0.220.0080.00017.07
8.0.210.0070.00016.97
8.0.200.0000.00717.09
8.0.190.0000.00717.04
8.0.180.0000.00917.09
8.0.170.0000.00816.88
8.0.160.0030.00417.12
8.0.150.0040.00416.89
8.0.140.0110.00017.02
8.0.130.0030.00313.50
8.0.120.0030.00516.96
8.0.110.0070.00017.11
8.0.100.0040.00416.99
8.0.90.0050.00316.88
8.0.80.0070.01017.09
8.0.70.0000.00717.05
8.0.60.0040.00416.81
8.0.50.0040.00417.02
8.0.30.0070.00717.38
8.0.20.0070.01117.24
8.0.10.0040.00417.02
8.0.00.0080.01117.04
7.4.330.0050.00013.08
7.4.320.0000.00716.58
7.4.300.0060.00016.65
7.4.290.0030.00316.70
7.4.280.0070.00416.66
7.4.270.0030.00316.79
7.4.260.0030.00313.46
7.4.250.0040.00416.75
7.4.240.0040.00416.77
7.4.230.0050.00516.58
7.4.220.0150.00816.79
7.4.210.0160.00316.77
7.4.200.0030.00516.57
7.4.190.0050.00316.48
7.4.160.0090.00616.71
7.4.150.0120.00616.75
7.4.140.0170.00916.62
7.4.130.0210.00316.75
7.4.120.0030.01316.61
7.4.110.0100.01316.50
7.4.100.0090.00916.59
7.4.90.0130.00416.57
7.4.80.0040.01516.72
7.4.70.0040.01216.79
7.4.60.0130.00316.55
7.4.50.0000.00516.72
7.4.40.0110.00716.77
7.4.30.0060.01016.62
7.4.00.0100.00714.94
7.3.330.0070.00013.20
7.3.320.0030.00313.25
7.3.310.0040.00316.37
7.3.300.0060.00016.37
7.3.290.0070.00816.40
7.3.280.0070.00916.35
7.3.270.0140.01116.66
7.3.260.0070.01816.32
7.3.250.0160.00416.63
7.3.240.0090.01216.49
7.3.230.0080.00816.55
7.3.210.0040.01416.56
7.3.200.0080.01519.39
7.3.190.0100.00716.63
7.3.180.0120.00916.34
7.3.170.0070.01016.25
7.3.160.0000.01616.46
7.3.120.0030.01414.94
7.3.110.0090.00614.76
7.3.100.0060.00914.77
7.3.90.0060.00914.94
7.3.80.0030.01014.91
7.3.70.0000.01714.78
7.3.60.0030.01014.79
7.3.50.0100.00315.02
7.3.40.0030.01414.73
7.3.30.0000.01414.63
7.3.20.0100.00716.87
7.3.10.0070.01016.78
7.3.00.0090.00316.91
7.2.330.0090.00916.68
7.2.320.0130.00316.72
7.2.310.0110.00616.74
7.2.300.0080.00916.52
7.2.290.0030.01716.92
7.2.240.0150.00015.41
7.2.230.0070.01015.11
7.2.220.0040.01515.04
7.2.210.0100.00715.15
7.2.200.0030.01215.11
7.2.190.0090.00615.33
7.2.180.0040.00715.20
7.2.170.0070.01115.29
7.2.160.0060.01215.27
7.2.150.0000.01117.27
7.2.140.0070.01116.99
7.2.130.0040.01117.18
7.2.120.0070.01017.08
7.2.110.0060.01317.02
7.2.100.0030.00816.71
7.2.90.0090.00616.87
7.2.80.0090.00617.00
7.2.70.0040.00717.02
7.2.60.0050.00516.88
7.2.50.0000.01317.10
7.2.40.0000.01717.03
7.2.30.0000.01217.05
7.2.20.0000.01517.10
7.2.10.0000.01016.84
7.2.00.0060.00918.05
7.1.330.0030.00816.15
7.1.320.0030.00915.92
7.1.310.0030.01016.08
7.1.300.0080.00615.92
7.1.290.0070.01015.81
7.1.280.0070.00315.92
7.1.270.0080.00315.66
7.1.260.0040.01115.71
7.1.250.0090.00916.05
7.1.200.0030.01016.01
7.1.100.0270.01017.69
7.1.70.0000.00717.50
7.1.60.0130.01319.30
7.1.50.0130.00717.15
7.1.00.0030.04722.50
7.0.200.0040.00416.62
7.0.140.0030.07322.21
7.0.120.0000.07022.16
7.0.60.0030.08719.94
7.0.50.0030.07317.89
7.0.40.0030.05020.25
7.0.30.0400.07020.15
7.0.20.0200.04320.04
7.0.10.0000.05320.02
7.0.00.0130.03720.21
5.6.280.0030.07321.11
5.6.210.0030.09320.76
5.6.200.0070.07018.15
5.6.190.0030.07020.67
5.6.180.0300.03720.56
5.6.170.0230.08720.46
5.6.160.0070.05320.43
5.6.150.0030.07318.18
5.6.140.0070.05718.13
5.6.130.0030.06718.07
5.6.120.0100.08021.13
5.6.110.0170.07321.01
5.6.100.0070.03721.12
5.6.90.0100.08020.97
5.6.80.0070.07020.37
5.5.350.0370.07320.44
5.5.340.0030.08018.02
5.5.330.0070.04320.36
5.5.320.3100.04020.18
5.5.310.0400.04720.21
5.5.300.0070.08017.91
5.5.290.0070.07717.91
5.5.280.0130.08020.73
5.5.270.0000.05320.72
5.5.260.0030.09720.95
5.5.250.0030.06320.68
5.5.240.0030.08320.04
5.4.450.0030.04019.41
5.4.440.0030.04019.24
5.4.430.0070.03319.43
5.4.420.0000.04319.24
5.4.410.0000.04019.20
5.4.400.0030.03719.18
5.4.390.0030.03718.81
5.4.380.0030.03718.92
5.4.370.0070.03319.18
5.4.360.0030.04018.79
5.4.350.0100.08019.13
5.4.340.0100.07719.14
5.4.320.0070.03719.18
5.4.310.0130.07319.07
5.4.300.0070.06718.91
5.4.290.0170.04019.17
5.4.280.0100.07719.08
5.4.270.0100.07319.18
5.4.260.0170.07018.82
5.4.250.0030.07319.17
5.4.240.0070.07319.07
5.4.230.0070.07318.91
5.4.220.0100.06318.91
5.4.210.0100.07019.13
5.4.200.0130.06319.14
5.4.190.0070.07319.10
5.4.180.0100.06019.01
5.4.170.0100.06318.91
5.4.160.0070.04718.98
5.4.150.0070.03719.12
5.4.140.0070.07716.29
5.4.130.0100.03716.35
5.4.120.0100.03316.24
5.4.110.0070.05316.36
5.4.100.0100.04316.39
5.4.90.0030.06316.23
5.4.80.0070.05316.39
5.4.70.0100.06716.32
5.4.60.0130.06316.26
5.4.50.0070.06716.34
5.4.40.0070.07316.25
5.4.30.0000.08316.57
5.4.20.0100.05016.30
5.4.10.0030.04716.33
5.4.00.0030.07315.88
5.3.290.0070.07714.59
5.3.280.0130.06714.52
5.3.270.0030.07714.54
5.3.260.0000.04314.50
5.3.250.0100.04314.54
5.3.240.0100.07014.56
5.3.230.0030.04014.54
5.3.220.0100.04014.50
5.3.210.0000.04314.49
5.3.200.0030.07714.36
5.3.190.0130.06014.46
5.3.180.0000.04714.50
5.3.170.0030.07014.55
5.3.160.0100.06314.65
5.3.150.0070.04314.44
5.3.140.0070.07714.48
5.3.130.0030.06314.47
5.3.120.0100.06314.48
5.3.110.0030.08314.50
5.3.100.0130.07313.98
5.3.90.0100.06713.90
5.3.80.0100.06314.00
5.3.70.0130.06313.96
5.3.60.0100.06713.93
5.3.50.0000.08314.04
5.3.40.0070.03713.89
5.3.30.0000.04313.83
5.3.20.0170.06713.61
5.3.10.0030.07713.49
5.3.00.0030.07013.58
5.2.170.0030.06311.07
5.2.160.0030.04311.07
5.2.150.0000.07311.13
5.2.140.0030.04311.15
5.2.130.0070.03311.00
5.2.120.0130.02711.05
5.2.110.0030.06311.11
5.2.100.0100.03311.08
5.2.90.0070.05310.99
5.2.80.0000.06711.25
5.2.70.0000.04711.02
5.2.60.0100.05011.01
5.2.50.0100.03311.04
5.2.40.0000.06010.89
5.2.30.0070.06310.97
5.2.20.0030.06010.86
5.2.10.0000.06310.92
5.2.00.0100.05310.76
5.1.60.0030.03310.14
5.1.50.0030.0339.89
5.1.40.0030.0579.94
5.1.30.0030.04010.33
5.1.20.0070.03010.27
5.1.10.0030.04710.11
5.1.00.0100.0339.96
5.0.50.0030.0478.54
5.0.40.0030.0478.46
5.0.30.0030.0608.42
5.0.20.0000.0308.42
5.0.10.0070.0408.42
5.0.00.0030.0638.42
4.4.90.0000.0178.42
4.4.80.0000.0238.42
4.4.70.0070.0308.42
4.4.60.0000.0278.42
4.4.50.0030.0338.42
4.4.40.0000.0478.42
4.4.30.0030.0178.42
4.4.20.0000.0338.42
4.4.10.0000.0408.42
4.4.00.0070.0538.42
4.3.110.0100.0308.42
4.3.100.0000.0238.42
4.3.90.0000.0178.42
4.3.80.0030.0538.42
4.3.70.0030.0278.42
4.3.60.0100.0138.42
4.3.50.0070.0308.42
4.3.40.0000.0378.42
4.3.30.0000.0208.42
4.3.20.0000.0208.42
4.3.10.0030.0338.42
4.3.00.0000.0278.42

preferences:
45.86 ms | 401 KiB | 5 Q