3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '<iframe width="640" height="360" src="http://www.youtube.com/embed/h9jOaIB1VGo?rel=0&wmode=transparent" frameborder="0" allowfullscreen></iframe>'; preg_match('#(?<=(?:v|i)=)[a-zA-Z0-9-]+(?=&)|(?<=(?:v|i)\/)[^&\n]+|(?<=embed\/)[^"&\n]+|(?<=‌​(?:v|i)=)[^&\n]+|(?<=youtu.be\/)[^&\n]+#', $string, $matches); var_dump($matches);

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.0120.00918.68
8.3.50.0070.01222.25
8.3.40.0110.00418.98
8.3.30.0000.01419.00
8.3.20.0040.00420.29
8.3.10.0030.00523.65
8.3.00.0040.00420.67
8.2.180.0110.00718.54
8.2.170.0100.00722.96
8.2.160.0030.01022.34
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00022.25
8.2.110.0040.00422.21
8.2.100.0130.00017.72
8.2.90.0060.00319.18
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0030.00517.80
8.2.50.0000.00818.07
8.2.40.0040.00418.16
8.2.30.0040.00417.95
8.2.20.0080.00017.74
8.2.10.0050.00317.84
8.2.00.0000.00817.65
8.1.280.0110.00425.92
8.1.270.0030.00623.97
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0040.00423.86
8.1.230.0110.00019.15
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0060.00317.25
8.1.190.0090.00017.40
8.1.180.0080.00018.10
8.1.170.0050.00318.62
8.1.160.0050.00221.98
8.1.150.0000.00718.67
8.1.140.0070.00017.47
8.1.130.0030.00317.74
8.1.120.0040.00417.55
8.1.110.0000.00717.61
8.1.100.0040.00417.46
8.1.90.0000.00717.61
8.1.80.0000.00717.63
8.1.70.0000.00717.38
8.1.60.0050.00517.66
8.1.50.0050.00317.59
8.1.40.0080.00017.66
8.1.30.0080.00017.68
8.1.20.0040.00417.73
8.1.10.0000.00817.64
8.1.00.0060.00317.59
8.0.300.0000.00718.77
8.0.290.0050.00217.05
8.0.280.0070.00018.35
8.0.270.0040.00417.24
8.0.260.0000.00816.82
8.0.250.0030.00516.99
8.0.240.0000.00717.06
8.0.230.0000.00717.07
8.0.220.0000.00716.99
8.0.210.0040.00416.89
8.0.200.0040.00416.98
8.0.190.0060.00316.94
8.0.180.0000.00716.84
8.0.170.0040.00417.05
8.0.160.0000.00816.88
8.0.150.0070.00017.02
8.0.140.0030.00516.91
8.0.130.0000.00513.41
8.0.120.0030.00516.88
8.0.110.0040.00416.97
8.0.100.0070.00016.91
8.0.90.0000.00816.82
8.0.80.0100.00616.90
8.0.70.0000.00717.04
8.0.60.0040.00416.81
8.0.50.0000.00817.02
8.0.30.0100.01017.33
8.0.20.0090.01317.46
8.0.10.0030.00617.14
8.0.00.0110.00716.94
7.4.330.0000.00515.02
7.4.320.0000.00716.68
7.4.300.0000.00616.79
7.4.290.0090.00016.78
7.4.280.0070.00016.77
7.4.270.0070.00016.81
7.4.260.0000.00716.74
7.4.250.0030.00316.70
7.4.240.0020.00516.72
7.4.230.0000.00716.55
7.4.220.0150.00416.73
7.4.210.0070.00816.66
7.4.200.0030.00316.51
7.4.190.0000.00716.57
7.4.160.0140.00816.46
7.4.150.0090.00917.40
7.4.140.0120.00617.86
7.4.130.0090.00916.65
7.4.120.0060.01116.74
7.4.110.0090.00916.68
7.4.100.0080.01216.48
7.4.90.0040.01516.74
7.4.80.0110.01116.61
7.4.70.0110.00516.64
7.4.60.0070.00916.76
7.4.50.0040.00416.62
7.4.40.0090.00322.77
7.4.30.0130.00316.69
7.4.00.0100.00314.76
7.3.330.0030.00313.12
7.3.320.0030.00313.09
7.3.310.0030.00316.12
7.3.300.0000.00716.31
7.3.290.0140.00416.35
7.3.280.0070.01216.28
7.3.270.0030.01417.40
7.3.260.0270.02716.79
7.3.250.0080.01216.32
7.3.240.0100.00716.54
7.3.230.0120.00816.43
7.3.210.0060.01016.31
7.3.200.0110.00819.39
7.3.190.0090.00916.36
7.3.180.0060.01516.21
7.3.170.0140.00316.58
7.3.160.0060.01016.63
7.3.120.0060.01014.79
7.2.330.0150.01116.54
7.2.320.0030.01316.62
7.2.310.0090.00916.53
7.2.300.0070.01716.48
7.2.290.0130.01016.54
7.1.70.0060.00317.43
7.1.60.0110.01419.27
7.1.50.0030.01216.80
7.1.00.0000.08022.54
7.0.200.0040.00816.94
7.0.140.0000.07722.04
7.0.60.0070.06021.72
7.0.50.0130.07017.79
7.0.40.0030.05720.23
7.0.30.0270.08720.02
7.0.20.0230.04720.13
7.0.10.0030.04320.14
7.0.00.0230.06720.15
5.6.280.0070.07021.06
5.6.210.0030.05720.47
5.6.200.0030.04018.18
5.6.190.0030.05720.67
5.6.180.0300.03720.67
5.6.170.0100.05720.34
5.6.160.0030.04320.70
5.6.150.0100.07318.07
5.6.140.0070.08018.21
5.6.130.0130.03318.11
5.6.120.0170.07321.09
5.6.110.0030.05021.10
5.6.100.0030.08320.95
5.6.90.0030.07721.09
5.6.80.0170.06720.43
5.5.350.0400.07020.39
5.5.340.0130.07018.00
5.5.330.0030.05320.21
5.5.320.0570.06320.26
5.5.310.0270.07720.27
5.5.300.0030.05018.01
5.5.290.0100.05717.91
5.5.280.0030.07320.86
5.5.270.0000.04320.88
5.5.260.0070.06720.86
5.5.250.0030.08020.69
5.5.240.0100.07320.28
5.4.450.4700.04019.52
5.4.440.3270.03319.48
5.4.430.3930.03319.36
5.4.420.3730.04719.49
5.4.410.3430.03019.08
5.4.400.4130.02719.16
5.4.390.3830.04319.07
5.4.380.3630.04019.16
5.4.370.3330.03719.16
5.4.360.4570.03718.97
5.4.350.3930.03319.16
5.4.340.3900.03718.89
5.4.320.3830.04019.09
5.4.310.3600.04019.16
5.4.300.4100.04319.24
5.4.290.3630.03318.87
5.4.280.3600.03319.04
5.4.270.3570.03718.87
5.4.260.3570.03318.96
5.4.250.3600.02719.20
5.4.240.3570.03319.15
5.4.230.4970.03719.16
5.4.220.4700.03319.18
5.4.210.4200.03319.03
5.4.200.3770.04019.25
5.4.190.4100.04319.14
5.4.180.0000.05018.88
5.4.170.4500.03319.03
5.4.160.3600.04319.04
5.4.150.3900.04719.14
5.4.140.3900.03316.32
5.4.130.3730.04016.34
5.4.120.3800.03016.49
5.4.110.4300.03316.46
5.4.100.4330.04016.38
5.4.90.4300.03716.42
5.4.80.0000.04016.15
5.4.70.0870.03716.52
5.4.60.4270.04016.23
5.4.50.4530.03316.39
5.4.40.3930.03016.36
5.4.30.3770.03316.46
5.4.20.4600.03016.46
5.4.10.3870.03716.44
5.4.00.3400.03015.76
5.3.290.3570.04014.61
5.3.280.4400.04014.55
5.3.270.2000.05714.53
5.3.260.3830.03714.53
5.3.250.3770.04314.55
5.3.240.3770.04314.54
5.3.230.4000.03014.52
5.3.220.3830.03714.49
5.3.210.4230.04314.54
5.3.200.4130.04314.65
5.3.190.4370.04014.53
5.3.180.1230.04314.57
5.3.170.0000.05314.48
5.3.160.3900.04014.52
5.3.150.4300.04014.51
5.3.140.5330.04014.34
5.3.130.3970.03714.46
5.3.120.4270.04014.33
5.3.110.3830.04714.44
5.3.100.3870.03013.91
5.3.90.3900.03713.96
5.3.80.3830.03713.83
5.3.70.3700.03014.03
5.3.60.3970.03013.95
5.3.50.4000.03713.76
5.3.40.4400.02313.86
5.3.30.3630.04313.71
5.3.20.3870.03313.78
5.3.10.4300.04313.62
5.3.00.5530.04013.46
5.2.170.3600.03011.11
5.2.160.3670.02711.13
5.2.150.3430.03311.14
5.2.140.3330.03311.04
5.2.130.3400.03011.09
5.2.120.4070.02711.09
5.2.110.3700.02311.18
5.2.100.3700.02711.04
5.2.90.3530.03011.19
5.2.80.3330.02710.97
5.2.70.3170.03311.07
5.2.60.3230.04011.03
5.2.50.3300.02710.91
5.2.40.2730.03010.93
5.2.30.2730.02711.05
5.2.20.2900.03010.81
5.2.10.2830.03010.85
5.2.00.3000.02310.70
5.1.60.2970.0239.89
5.1.50.2830.02310.01
5.1.40.2530.0309.92
5.1.30.2800.03010.30
5.1.20.2870.03010.39
5.1.10.3200.02310.07
5.1.00.3200.02310.13
5.0.50.1800.0178.69
5.0.40.1800.0238.38
5.0.30.1430.0278.28
5.0.20.1600.0208.34
5.0.10.1370.0178.13
5.0.00.1300.0308.16
4.4.90.1570.0175.88
4.4.80.1500.0205.88
4.4.70.1300.0175.89
4.4.60.1530.0205.88
4.4.50.1170.0175.88
4.4.40.1670.0275.88
4.4.30.1630.0135.88
4.4.20.1570.0135.88
4.4.10.1800.0175.88
4.4.00.1870.0235.89
4.3.110.1830.0135.88
4.3.100.1630.0175.88
4.3.90.1570.0175.88
4.3.80.1570.0235.88
4.3.70.1330.0175.88
4.3.60.1300.0135.88
4.3.50.1470.0175.88
4.3.40.1270.0205.88
4.3.30.0600.0175.88
4.3.20.0630.0135.88
4.3.10.0830.0205.88
4.3.00.0770.0135.88

preferences:
67.28 ms | 401 KiB | 5 Q