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('#<a(.*?)(?:href="https?://)?(?:www\.)?(?:youtu\.be/|youtube\.com(?:/embed/|/v/|/watch\?v=))([\w\-]{10,12}).*$#x', $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.0110.01118.64
8.3.50.0120.00722.18
8.3.40.0140.00719.09
8.3.30.0060.00918.98
8.3.20.0040.00420.33
8.3.10.0040.00421.80
8.3.00.0080.00022.46
8.2.180.0140.00717.00
8.2.170.0090.00919.08
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0030.00624.66
8.2.130.0000.00826.16
8.2.120.0000.00817.75
8.2.110.0090.00022.24
8.2.100.0060.00617.88
8.2.90.0080.00019.05
8.2.80.0080.00018.04
8.2.70.0030.00617.50
8.2.60.0000.00817.93
8.2.50.0110.00018.07
8.2.40.0000.00818.09
8.2.30.0090.00018.23
8.2.20.0040.00417.69
8.2.10.0040.00417.78
8.2.00.0040.00417.81
8.1.280.0110.00425.92
8.1.270.0050.00323.96
8.1.260.0060.00326.35
8.1.250.0060.01128.09
8.1.240.0050.00523.83
8.1.230.0070.00319.06
8.1.220.0040.00417.74
8.1.210.0000.01018.77
8.1.200.0040.00817.48
8.1.190.0080.00017.30
8.1.180.0000.00818.10
8.1.170.0040.00418.70
8.1.160.0040.00422.05
8.1.150.0000.00718.84
8.1.140.0050.00217.60
8.1.130.0030.00317.91
8.1.120.0050.00317.64
8.1.110.0040.00317.62
8.1.100.0040.00417.57
8.1.90.0000.00717.61
8.1.80.0070.00017.52
8.1.70.0070.00017.57
8.1.60.0060.00317.76
8.1.50.0040.00417.60
8.1.40.0050.00517.70
8.1.30.0050.00317.71
8.1.20.0050.00317.78
8.1.10.0040.00417.74
8.1.00.0000.00817.57
8.0.300.0000.00718.77
8.0.290.0040.00417.18
8.0.280.0030.00318.48
8.0.270.0000.00717.29
8.0.260.0040.00416.88
8.0.250.0040.00417.05
8.0.240.0040.00417.13
8.0.230.0040.00417.14
8.0.220.0050.00217.04
8.0.210.0030.00317.02
8.0.200.0060.00017.17
8.0.190.0000.00916.98
8.0.180.0040.00416.97
8.0.170.0000.00816.97
8.0.160.0050.00316.95
8.0.150.0000.00716.97
8.0.140.0050.00216.90
8.0.130.0050.00013.52
8.0.120.0040.00416.90
8.0.110.0000.00817.10
8.0.100.0040.00417.11
8.0.90.0000.00717.03
8.0.80.0040.01217.11
8.0.70.0050.00316.91
8.0.60.0040.00416.98
8.0.50.0050.00216.96
8.0.30.0110.00817.13
8.0.20.0130.00517.40
8.0.10.0040.00417.02
8.0.00.0090.01116.85
7.4.330.0050.00015.06
7.4.320.0060.00016.59
7.4.300.0060.00016.64
7.4.290.0030.00316.71
7.4.280.0000.00716.75
7.4.270.0030.00316.71
7.4.260.0000.00716.63
7.4.250.0050.00216.56
7.4.240.0030.00416.63
7.4.230.0000.00716.55
7.4.220.0090.00916.80
7.4.210.0060.00916.69
7.4.200.0070.00016.41
7.4.190.0070.00016.78
7.4.160.0080.00816.53
7.4.150.0080.01017.40
7.4.140.0120.00817.86
7.4.130.0070.01016.76
7.4.120.0080.00916.70
7.4.110.0100.01016.62
7.4.100.0100.00716.84
7.4.90.0100.01316.64
7.4.80.0110.00519.39
7.4.70.0150.00616.64
7.4.60.0070.01316.66
7.4.50.0050.00516.71
7.4.40.0040.01222.77
7.4.30.0080.00816.68
7.4.10.0070.01115.15
7.4.00.0100.00515.00
7.3.330.0000.00613.33
7.3.320.0030.00313.27
7.3.310.0040.00416.41
7.3.300.0030.00316.30
7.3.290.0070.00716.32
7.3.280.0060.01016.38
7.3.270.0140.00717.40
7.3.260.0110.00616.56
7.3.250.0110.00816.36
7.3.240.0110.00716.52
7.3.230.0090.00916.57
7.3.210.0190.00016.43
7.3.200.0100.00719.39
7.3.190.0090.01216.59
7.3.180.0090.01316.39
7.3.170.0070.01016.84
7.3.160.0100.00716.40
7.3.130.0030.01015.28
7.3.120.0030.01414.93
7.3.110.0060.01315.16
7.3.100.0000.01515.17
7.3.90.0130.00614.77
7.3.80.0080.00314.96
7.3.70.0000.01414.67
7.3.60.0090.00315.02
7.3.50.0040.01114.64
7.3.40.0130.00314.98
7.3.30.0030.00814.88
7.3.20.0150.00016.71
7.3.10.0070.00616.61
7.3.00.0090.00916.84
7.2.330.0070.01016.77
7.2.320.0060.01216.83
7.2.310.0100.00716.55
7.2.300.0100.00716.73
7.2.290.0120.00616.70
7.2.260.0130.00615.14
7.2.250.0040.01215.40
7.2.240.0070.00715.08
7.2.230.0070.01114.93
7.2.220.0030.00915.07
7.2.210.0110.00014.99
7.2.200.0040.00715.20
7.2.190.0030.01314.93
7.2.180.0040.01115.13
7.2.170.0090.00614.91
7.2.160.0070.00715.10
7.2.150.0040.00817.02
7.2.140.0120.00316.75
7.2.130.0080.00417.11
7.2.120.0050.01016.92
7.2.110.0070.00517.11
7.2.100.0050.00817.02
7.2.90.0030.01516.95
7.2.80.0100.00717.03
7.2.70.0030.01216.94
7.2.60.0040.00817.14
7.2.50.0010.01117.04
7.2.40.0030.01217.04
7.2.30.0070.00717.02
7.2.20.0080.00716.94
7.2.10.0100.00617.03
7.2.00.0020.01417.04
7.1.330.0090.00615.80
7.1.320.0060.00915.79
7.1.310.0030.01016.01
7.1.300.0030.01215.93
7.1.290.0040.01415.74
7.1.280.0070.00415.92
7.1.270.0100.00315.84
7.1.260.0110.00015.60
7.1.250.0030.00615.99
7.1.240.0080.00415.65
7.1.230.0070.00515.90
7.1.220.0030.01015.87
7.1.210.0020.00816.09
7.1.200.0060.00816.04
7.1.190.0110.00215.93
7.1.180.0030.00815.88
7.1.170.0060.00515.83
7.1.160.0070.00816.09
7.1.150.0080.00516.01
7.1.140.0020.00915.91
7.1.130.0090.00515.96
7.1.120.0050.00816.07
7.1.110.0080.00915.94
7.1.100.0080.00315.86
7.1.90.0030.00616.05
7.1.80.0070.00515.93
7.1.70.0040.00816.33
7.1.60.0070.01117.24
7.1.50.0090.00716.41
7.1.40.0020.01416.02
7.1.30.0090.00315.82
7.1.20.0080.00415.95
7.1.10.0020.00915.72
7.1.00.0050.02718.06
7.0.330.0070.00615.52
7.0.320.0110.00515.47
7.0.310.0050.00515.56
7.0.300.0020.01015.57
7.0.290.0050.00615.35
7.0.280.0050.00815.72
7.0.270.0050.01015.52
7.0.260.0020.00715.52
7.0.250.0080.00715.45
7.0.240.0040.00815.69
7.0.230.0050.00515.62
7.0.220.0090.00615.79
7.0.210.0060.00615.55
7.0.200.0040.00816.07
7.0.190.0030.00915.75
7.0.180.0090.00315.61
7.0.170.0030.00715.66
7.0.160.0030.01015.66
7.0.150.0050.00915.52
7.0.140.0060.02817.82
7.0.130.0030.00915.54
7.0.120.0040.00715.73
7.0.110.0050.00615.56
7.0.100.0100.00315.57
7.0.90.0100.00315.66
7.0.80.0070.00715.49
7.0.70.0060.03317.62
7.0.60.0120.02217.48
7.0.50.0030.02617.70
7.0.40.0050.02815.70
7.0.30.0110.02915.72
7.0.20.0020.02615.84
7.0.10.0050.03015.68
7.0.00.0030.03415.79
5.6.400.0080.00614.37
5.6.390.0030.01014.17
5.6.380.0060.00614.24
5.6.370.0080.00314.38
5.6.360.0090.00314.59
5.6.350.0020.01014.37
5.6.340.0020.00814.38
5.6.330.0080.00714.42
5.6.320.0050.01114.39
5.6.310.0000.01014.61
5.6.300.0100.00314.45
5.6.290.0030.01014.48
5.6.280.0030.03116.67
5.6.270.0080.00614.41
5.6.260.0070.00514.26
5.6.250.0070.00714.55
5.6.240.0040.00714.35
5.6.230.0060.00814.50
5.6.220.0040.02816.42
5.6.210.0060.03316.31
5.6.200.0020.03416.51
5.6.190.0070.03316.61
5.6.180.0020.03316.69
5.6.170.0040.02616.50
5.6.160.0050.03116.46
5.6.150.0050.02416.50
5.6.140.0050.03216.63
5.6.130.0040.03216.66
5.6.120.0010.03216.46
5.6.110.0080.03116.66
5.6.100.0030.02316.54
5.6.90.0060.02216.57
5.6.80.0080.02716.38
5.6.70.0050.03016.20
5.6.60.0030.03216.37
5.6.50.0020.03416.35
5.6.40.0060.03116.39
5.6.30.0050.03016.36
5.6.20.0080.02016.36
5.6.10.0070.02216.29
5.6.00.0070.03016.33
5.5.380.0020.00912.67
5.5.370.0070.00512.58
5.5.360.0070.02715.40
5.5.350.0060.01915.18
5.5.340.0050.03015.52
5.5.330.0020.02715.45
5.5.320.0070.02915.62
5.5.310.0060.02815.43
5.5.300.0020.03215.34
5.5.290.0050.02415.52
5.5.280.0050.03115.24
5.5.270.0040.03415.33
5.5.260.0010.02415.46
5.5.250.0060.03115.31
5.5.240.0030.03215.12
5.5.230.0060.03115.20
5.5.220.0050.02315.15
5.5.210.0070.01715.00
5.5.200.0050.02715.05
5.5.190.0080.02715.22
5.5.180.0040.02315.25
5.5.170.0070.00312.61
5.5.160.0010.03215.14
5.5.150.0070.02915.15
5.5.140.0020.02915.08
5.5.130.0050.02415.18
5.5.120.0050.02315.07
5.5.110.0000.02015.16
5.5.100.0060.03215.19
5.5.90.0020.02015.23
5.5.80.0050.01715.15
5.5.70.0030.01915.07
5.5.60.0040.01815.16
5.5.50.0040.01615.11
5.5.40.0040.01215.15
5.5.30.0030.01815.12
5.5.20.0060.01715.16
5.5.10.0040.01515.16
5.5.00.0050.01215.11
5.4.450.0040.02113.70
5.4.440.0030.03113.83
5.4.430.0040.03013.75
5.4.420.0050.02713.81
5.4.410.0040.02613.85
5.4.400.0040.02613.68
5.4.390.0030.02813.59
5.4.380.0050.02513.71
5.4.370.0050.02713.77
5.4.360.0040.02913.68
5.4.350.0040.02813.70
5.4.340.0050.02913.59
5.4.330.0020.00711.10
5.4.320.0040.03013.68
5.4.310.0050.02913.57
5.4.300.0020.02813.60
5.4.290.0010.02013.61
5.4.280.0050.01613.75
5.4.270.0010.02113.62
5.4.260.0050.01513.80
5.4.250.0030.01413.72
5.4.240.0040.01513.68
5.4.230.0040.01513.62
5.4.220.0050.01513.62
5.4.210.0020.01813.70
5.4.200.0020.01713.58
5.4.190.0020.01213.60
5.4.180.0010.02013.75
5.4.170.0040.01213.70
5.4.160.0040.02113.59
5.4.150.0020.02113.59
5.4.140.0030.01512.79
5.4.130.0030.02112.75
5.4.120.0010.01512.70
5.4.110.0060.01212.81
5.4.100.0050.01312.75
5.4.90.0050.01212.77
5.4.80.0030.01112.70
5.4.70.0050.01312.72
5.4.60.0040.02012.76
5.4.50.0030.01512.74
5.4.40.0030.01412.79
5.4.30.0010.01512.79
5.4.20.0030.01412.77
5.4.10.0030.01512.77
5.4.00.0030.01212.43
5.3.290.0070.02911.93
5.3.280.0010.02011.88
5.3.270.0050.01411.87
5.3.260.0020.01411.93
5.3.250.0030.01711.95
5.3.240.0030.01111.87
5.3.230.0030.01511.80
5.3.220.0050.01111.73
5.3.210.0040.01211.77
5.3.200.0030.01411.75
5.3.190.0040.01511.71
5.3.180.0020.01511.85
5.3.170.0020.01511.84
5.3.160.0050.01511.91
5.3.150.0010.01711.87
5.3.140.0000.01411.80
5.3.130.0020.01511.81
5.3.120.0030.01211.91
5.3.110.0040.01411.84
5.3.100.0040.01211.81
5.3.90.0040.01311.86
5.3.80.0040.01111.79
5.3.70.0010.01511.79
5.3.60.0050.00911.86
5.3.50.0040.01311.77
5.3.40.0010.01611.69
5.3.30.0020.01511.76
5.3.20.0030.01211.81
5.3.10.0020.01511.61
5.3.00.0000.01911.76
5.2.170.0000.01612.06
5.2.160.0020.01512.08
5.2.150.0020.01512.02
5.2.140.0000.01411.97
5.2.130.0030.01312.05
5.2.120.0040.01112.10
5.2.110.0040.01012.05
5.2.100.0020.01711.97
5.2.90.0020.01512.03
5.2.80.0020.01811.99
5.2.70.0040.01412.05
5.2.60.0000.01711.97
5.2.50.0000.01511.97
5.2.40.0030.01311.97
5.2.30.0000.01911.97
5.2.20.0000.02011.97
5.2.10.0000.01611.97
5.2.00.0030.01311.97
5.1.60.0050.02311.97
5.1.50.0030.02511.97
5.1.40.0030.02411.97
5.1.30.0050.02211.97
5.1.20.0050.02711.97
5.1.10.0030.02611.97
5.1.00.0050.02811.97
5.0.50.0050.02211.97
5.0.40.0030.02111.97
5.0.30.0030.03011.97
5.0.20.0040.01811.97
5.0.10.0000.02511.97
5.0.00.0030.03211.97
4.4.90.0010.00811.97
4.4.80.0000.01011.97
4.4.70.0010.00811.97
4.4.60.0020.01711.97
4.4.50.0000.00911.97
4.4.40.0000.02911.97
4.4.30.0020.02011.97
4.4.20.0020.02211.97
4.4.10.0050.01711.97
4.4.00.0050.02611.97
4.3.110.0020.01511.97
4.3.100.0020.01911.97
4.3.90.0000.01611.97
4.3.80.0040.02911.97
4.3.70.0030.01511.97
4.3.60.0000.01511.97
4.3.50.0020.01811.97
4.3.40.0000.02911.97
4.3.30.0020.02011.97
4.3.20.0020.01811.97
4.3.10.0010.01811.97
4.3.00.0010.01911.97

preferences:
45.05 ms | 401 KiB | 5 Q