3v4l.org

run code in 300+ PHP versions simultaneously
<?php $reg_exUrl_youtube = '~((?:https?://)?(?:www\.)?(?:youtu\.be/|youtube\.com/(?:(?:watch)?\?(?:.*&)?vi?=|(?:embed|vi?|user)/))[^?&"\'>\s]+)(?![^<]*>)\S*~'; $message = 'text text text https://www.youtube.com/watch?v=9_pIaI93YGY text text text https://www.youtube.com/watch?v=1PUT2a5NafI&list=RD1PUT2a5NafI&start_radio=1 more text more text'; $message = preg_replace_callback($reg_exUrl_youtube, function($matches) { return "<div class=\"videoss videoss{$matches[1]}\"><a href=\"#\" class=\"videoshow\" id=\"{$matches[1]}\"><div style=\"background:url(/i/play.png) center no-repeat,url([zzzzz]img.youtube.com/vi/{$matches[1]}/mqdefault.jpg) center no-repeat;background-size:30%,cover;\" class=\"pd39 mroim60\"></div></a></div>"; }, $message); echo $message;

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.5.10.0140.00717.06
8.5.00.0070.00220.18
8.4.150.0020.00114.05
8.4.140.0150.00917.96
8.4.130.0130.00818.83
8.4.120.0060.00318.04
8.4.110.0130.00618.86
8.4.100.0080.01318.13
8.4.90.0120.00820.54
8.4.80.0120.00718.81
8.4.70.0070.00118.81
8.4.60.0120.00820.52
8.4.50.0120.00818.70
8.4.40.0060.01319.82
8.4.30.0040.01420.38
8.4.20.0100.01020.46
8.4.10.0060.00317.96
8.3.280.0080.01218.63
8.3.270.0120.00716.44
8.3.260.0080.00916.78
8.3.250.0070.00616.80
8.3.240.0140.00617.03
8.3.230.0110.00716.66
8.3.220.0030.00519.21
8.3.210.0130.00718.51
8.3.200.0060.00617.05
8.3.190.0090.00617.36
8.3.180.0110.00821.00
8.3.170.0090.00920.79
8.3.160.0120.00616.50
8.3.150.0160.00317.32
8.3.140.0070.00716.57
8.3.130.0080.00416.89
8.3.120.0100.00020.59
8.3.110.0100.00016.87
8.3.100.0070.01018.44
8.3.90.0100.01016.79
8.3.80.0060.00318.52
8.3.70.0140.00717.00
8.3.60.0110.00418.41
8.3.50.0120.00722.10
8.3.40.0090.00618.98
8.3.30.0090.00618.96
8.3.20.0050.00321.95
8.3.10.0080.00020.37
8.3.00.0040.00422.43
8.2.290.0090.01117.05
8.2.280.0070.00418.49
8.2.270.0040.01417.28
8.2.260.0140.00320.94
8.2.250.0040.00416.82
8.2.240.0110.00717.04
8.2.230.0040.00420.94
8.2.220.0100.00024.06
8.2.210.0040.00426.77
8.2.200.0030.00618.54
8.2.190.0120.00316.88
8.2.180.0090.00618.66
8.2.170.0070.00722.96
8.2.160.0120.00319.17
8.2.150.0150.00425.66
8.2.140.0050.00324.66
8.2.130.0060.00326.16
8.2.120.0040.00426.16
8.2.110.0060.00321.18
8.2.100.0130.00018.28
8.2.90.0030.00619.46
8.2.80.0050.00318.00
8.2.70.0040.00418.00
8.2.60.0030.00618.05
8.2.50.0000.00818.07
8.2.40.0030.00618.35
8.2.30.0000.00818.16
8.2.20.0000.00718.26
8.2.10.0040.00419.31
8.2.00.0050.00219.31
8.1.330.0100.00816.47
8.1.320.0070.01216.62
8.1.310.0050.00516.33
8.1.300.0030.01216.59
8.1.290.0060.00318.88
8.1.280.0260.00325.92
8.1.270.0060.00322.48
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0080.00317.78
8.1.230.0080.00319.08
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0100.00017.61
8.1.190.0060.00317.47
8.1.180.0000.00818.10
8.1.170.0060.00318.96
8.1.160.0000.00919.03
8.1.150.0030.00518.97
8.1.140.0000.00721.02
8.1.130.0000.00717.57
8.1.120.0080.00017.64
8.1.110.0100.00017.71
8.1.100.0050.00317.72
8.1.90.0000.00817.65
8.1.80.0080.00017.63
8.1.70.0000.00717.63
8.1.60.0000.00817.70
8.1.50.0030.00517.61
8.1.40.0050.00517.79
8.1.30.0090.00017.77
8.1.20.0030.00717.88
8.1.10.0040.00417.82
8.1.00.0000.00817.67
8.0.300.0050.00218.77
8.0.290.0080.00016.88
8.0.280.0070.00018.46
8.0.270.0030.00316.98
8.0.260.0030.00317.05
8.0.250.0000.00717.14
8.0.240.0000.00617.16
8.0.230.0030.00317.12
8.0.220.0050.00217.11
8.0.210.0000.00717.15
8.0.200.0000.00717.04
8.0.190.0100.00017.17
8.0.180.0030.00616.99
8.0.170.0030.00717.13
8.0.160.0070.00316.98
8.0.150.0000.00716.98
8.0.140.0030.00617.10
8.0.130.0000.00613.57
8.0.120.0040.00417.04
8.0.110.0040.00417.04
8.0.100.0030.00617.03
8.0.90.0060.00316.87
8.0.80.0070.01017.11
8.0.70.0000.00816.86
8.0.60.0000.00816.95
8.0.50.0030.00516.98
8.0.30.0110.01117.46
8.0.20.0090.01117.37
8.0.10.0000.00817.23
8.0.00.0110.01016.98
7.4.330.0000.00615.55
7.4.320.0050.00216.73
7.4.300.0040.00416.87
7.4.290.0050.00316.76
7.4.280.0040.00416.84
7.4.270.0030.00616.87
7.4.260.0030.00616.77
7.4.250.0070.00016.84
7.4.240.0010.00616.71
7.4.230.0030.00316.77
7.4.220.0020.00516.79
7.4.210.0080.00716.74
7.4.200.0000.00816.91
7.4.130.0070.01116.80
7.4.120.0070.01016.84
7.4.110.0070.01716.87
7.4.100.0090.00916.66
7.4.90.0130.00316.77
7.4.80.0060.01319.39
7.4.70.0100.00716.86
7.4.60.0070.01116.76
7.4.50.0060.00916.66
7.4.40.0100.00716.84
7.4.00.0090.00915.00
7.3.330.0030.00313.38
7.3.320.0000.00513.30
7.3.310.0070.00016.59
7.3.300.0000.00716.51
7.3.290.0000.00716.43
7.3.280.0100.00716.46
7.3.260.0110.00916.72
7.3.240.0100.00616.66
7.3.230.0070.01716.60
7.3.210.0030.01416.55
7.3.200.0060.01316.56
7.3.190.0120.00916.91
7.3.180.0100.00616.55
7.3.170.0140.00316.91
7.3.160.0090.01216.66
7.3.120.0120.00415.02
7.3.110.0040.00814.93
7.3.100.0070.01014.98
7.3.90.0120.00314.88
7.3.80.0070.01014.68
7.3.70.0080.00614.80
7.3.60.0040.00914.95
7.3.50.0070.00714.85
7.3.40.0050.00814.98
7.3.30.0080.00515.04
7.3.20.0020.01215.84
7.3.10.0100.00515.82
7.3.00.0070.00715.96
7.2.330.0090.00816.80
7.2.320.0070.01016.83
7.2.310.0080.00816.68
7.2.300.0140.00916.84
7.2.290.0030.01416.75
7.2.240.0060.00915.04
7.2.230.0140.00015.19
7.2.220.0070.01014.78
7.2.210.0030.01414.89
7.2.200.0100.00715.09
7.2.190.0030.00915.01
7.2.180.0030.01515.06
7.2.170.0110.00515.15
7.2.160.0040.01015.03
7.2.150.0050.01016.11
7.2.140.0080.00816.03
7.2.130.0090.00416.03
7.2.120.0080.00816.10
7.2.110.0100.00616.03
7.2.100.0060.01116.14
7.2.90.0080.00816.14
7.2.80.0090.00616.09
7.2.70.0100.00816.09
7.2.60.0110.00716.07
7.2.50.0120.00815.94
7.2.40.0160.00615.97
7.2.30.0050.01516.16
7.2.20.0120.00716.25
7.2.10.0050.01216.15
7.2.00.0060.01116.17
7.1.330.0090.00615.75
7.1.320.0030.01415.89
7.1.310.0110.00415.88
7.1.300.0080.00914.88
7.1.290.0080.00615.08
7.1.280.0140.00215.03
7.1.270.0070.00714.88
7.1.260.0040.00714.92
7.1.250.0150.01215.03

preferences:
35.16 ms | 403 KiB | 5 Q