3v4l.org

run code in 300+ PHP versions simultaneously
<?php function callbackFunction( $matches) { print_r($matches); return 'lol'; } $pattern = '@\\<img src\\="http\\://((i\\.imgur\\.com))/.+?"@u'; $subject = '[13-Jul-2014 14:07:07 UTC] sdfsdfsdfesdwsasdvesfdrsad<br>&nbsp;<br>&nbsp;<br><img src="http://i.imgur.com/xhQHD6w.gif" alt="xhQHD6w.gif">sdsdfsasfdasfasdas<br>&nbsp;<br><img src="http://i.imgur.com/xhQHD6w.gif" alt="xhQHD6w.gif"><br><img src="http://i.img1ur.com/xhQHD6w.gif" alt="xhQHD6w.gif">'; print_r( preg_replace_callback($pattern, 'callbackFunction', $subject, -1 ) );

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.40.0150.00018.82
8.3.30.0000.01518.96
8.3.20.0040.00420.34
8.3.10.0040.00423.48
8.3.00.0060.00320.81
8.2.170.0110.00422.96
8.2.160.0070.01020.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0080.00021.04
8.2.110.0060.00322.29
8.2.100.0030.00917.69
8.2.90.0000.00819.21
8.2.80.0000.00817.97
8.2.70.0000.00817.75
8.2.60.0100.00017.80
8.2.50.0080.00018.07
8.2.40.0040.00420.07
8.2.30.0110.00018.20
8.2.20.0040.00417.89
8.2.10.0040.00418.00
8.2.00.0000.00717.88
8.1.270.0030.00623.71
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.95
8.1.230.0090.00318.99
8.1.220.0000.00817.76
8.1.210.0040.00418.77
8.1.200.0040.00817.48
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0000.00818.46
8.1.160.0000.00822.05
8.1.150.0000.01218.71
8.1.140.0000.00717.48
8.1.130.0070.00317.82
8.1.120.0000.00817.58
8.1.110.0000.00817.54
8.1.100.0000.00717.56
8.1.90.0040.00417.40
8.1.80.0050.00317.57
8.1.70.0040.00417.50
8.1.60.0040.00417.69
8.1.50.0040.00417.56
8.1.40.0040.00417.59
8.1.30.0080.00017.73
8.1.20.0050.00317.76
8.1.10.0040.00417.61
8.1.00.0050.00217.54
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.32
8.0.270.0040.00417.23
8.0.260.0000.00617.13
8.0.250.0060.00017.10
8.0.240.0030.00317.02
8.0.230.0050.00316.94
8.0.220.0070.00016.87
8.0.210.0040.00416.95
8.0.200.0000.00617.01
8.0.190.0000.00817.03
8.0.180.0090.00017.07
8.0.170.0080.00016.97
8.0.160.0030.00417.17
8.0.150.0040.00416.97
8.0.140.0070.00316.89
8.0.130.0030.00313.44
8.0.120.0040.00417.01
8.0.110.0000.00716.86
8.0.100.0050.00316.98
8.0.90.0070.00016.84
8.0.80.0090.01217.00
8.0.70.0000.00816.84
8.0.60.0040.00416.98
8.0.50.0040.00417.04
8.0.30.0080.01217.25
8.0.20.0070.01217.40
8.0.10.0040.00417.14
8.0.00.0050.01317.00
7.4.330.0020.00215.00
7.4.320.0040.00416.60
7.4.300.0030.00316.75
7.4.290.0000.00716.67
7.4.280.0050.00216.70
7.4.270.0050.00316.66
7.4.260.0040.00416.65
7.4.250.0080.00016.54
7.4.240.0020.00516.60
7.4.230.0000.00716.64
7.4.220.0070.01016.74
7.4.210.0040.01116.82
7.4.200.0000.00816.45
7.4.160.0070.01416.35
7.4.150.0140.00517.40
7.4.140.0070.01017.86
7.4.130.0060.01116.56
7.4.120.0090.00816.61
7.4.110.0110.00616.70
7.4.100.0060.01116.76
7.4.90.0060.01016.68
7.4.80.0070.01319.39
7.4.70.0060.01016.72
7.4.60.0120.01016.95
7.4.50.0020.00216.48
7.4.40.0060.00916.75
7.4.30.0000.01716.38
7.4.00.0090.00615.20
7.3.330.0000.00513.25
7.3.320.0030.00313.20
7.3.310.0000.00716.24
7.3.300.0030.00316.43
7.3.290.0040.01116.38
7.3.280.0060.01216.39
7.3.270.0070.01117.40
7.3.260.0060.01016.62
7.3.250.0150.00816.47
7.3.240.0160.01016.59
7.3.230.0120.01216.39
7.3.210.0170.00716.50
7.3.200.0030.01419.39
7.3.190.0100.00616.49
7.3.180.0030.01216.38
7.3.170.0030.01716.34
7.3.160.0040.01116.51
7.3.120.0060.00614.90
7.2.330.0180.00916.50
7.2.320.0060.01216.55
7.2.310.0100.00616.53
7.2.300.0100.00716.80
7.2.290.0130.01016.46
7.1.70.0070.00417.25
7.1.60.0130.01019.70
7.1.50.0030.02217.03
7.1.00.0100.07022.30
7.0.200.0050.00316.77
7.0.140.0030.07322.07
7.0.60.0100.08020.00
7.0.50.0070.08017.89
7.0.40.0130.06020.16
7.0.30.0500.07020.28
7.0.20.0230.07020.13
7.0.10.0170.04720.25
7.0.00.0070.08020.31
5.6.280.0070.07020.83
5.6.210.0030.04020.76
5.6.200.0030.04018.22
5.6.190.0000.06020.63
5.6.180.0330.07720.42
5.6.170.0270.04320.52
5.6.160.0030.05020.55
5.6.150.0030.08018.12
5.6.140.0030.04018.11
5.6.130.0100.03718.18
5.6.120.0030.04020.91
5.6.110.0000.04721.14
5.6.100.0100.07021.09
5.6.90.0130.07321.04
5.6.80.0070.08320.40
5.6.70.0270.04720.48
5.5.350.0270.07320.39
5.5.340.0030.04018.09
5.5.330.0130.08020.31
5.5.320.0270.08320.20
5.5.310.0330.06720.30
5.5.300.0000.05717.98
5.5.290.0100.07717.94
5.5.280.0000.08720.88
5.5.270.0070.04720.95
5.5.260.0030.04020.88
5.5.250.0030.04020.68
5.5.240.0070.06020.34
5.4.450.0770.07019.21
5.4.440.1030.07719.70
5.4.430.0870.05019.62
5.4.420.0630.00019.37
5.4.410.0100.05718.81
5.4.400.0470.06318.62
5.4.390.0230.06018.76
5.4.380.0270.05318.76
5.4.370.0100.05318.62
5.4.360.0170.04318.74
5.4.350.0050.04812.02
5.4.340.0060.04212.02
5.4.320.0070.03912.50
5.4.310.0090.04312.50
5.4.300.0080.04012.50
5.4.290.0100.03912.50
5.4.280.0040.04512.40
5.4.270.0050.04512.40
5.4.260.0070.04012.40
5.4.250.0090.03612.40
5.4.240.0050.03812.40
5.4.230.0060.03912.39
5.4.220.0070.03712.39
5.4.210.0080.03912.39
5.4.200.0030.04212.39
5.4.190.0080.03712.39
5.4.180.0080.03812.39
5.4.170.0060.04112.39
5.4.160.0070.03812.39
5.4.150.0070.03812.39
5.4.140.0050.04112.07
5.4.130.0070.03612.05
5.4.120.0080.03612.02
5.4.110.0080.03512.01
5.4.100.0070.03712.02
5.4.90.0100.03612.01
5.4.80.0050.04012.01
5.4.70.0050.03812.01
5.4.60.0060.03512.01
5.4.50.0080.04112.01
5.4.40.0080.04112.00
5.4.30.0090.03711.99
5.4.20.0080.03411.99
5.4.10.0060.03612.00
5.4.00.0050.04311.48
5.3.290.0060.04012.80
5.3.280.0080.03712.71
5.3.270.0100.03812.72
5.3.260.0130.03412.72
5.3.250.0020.04212.72
5.3.240.0070.03812.72
5.3.230.0080.03712.71
5.3.220.0060.04612.68
5.3.210.0120.04012.68
5.3.200.0070.04112.68
5.3.190.0110.03512.68
5.3.180.0060.03912.68
5.3.170.0080.03612.67
5.3.160.0100.03512.68
5.3.150.0070.03812.67
5.3.140.0080.03712.66
5.3.130.0060.04212.65
5.3.120.0090.04012.66
5.3.110.0100.03612.66
5.3.100.0080.03612.13
5.3.90.0030.04112.11
5.3.80.0090.03912.10
5.3.70.0090.03412.10
5.3.60.0050.03712.09
5.3.50.0120.03112.03
5.3.40.0070.03812.03
5.3.30.0080.03711.99
5.3.20.0050.03611.78
5.3.10.0050.03711.74
5.3.00.0060.04011.72
5.2.170.0060.0299.24
5.2.160.0090.0289.23
5.2.150.0070.0319.23
5.2.140.0050.0339.23
5.2.130.0040.0309.18
5.2.120.0050.0299.19
5.2.110.0030.0319.20
5.2.100.0080.0279.19
5.2.90.0050.0419.19
5.2.80.0050.0429.19
5.2.70.0100.0369.18
5.2.60.0110.0349.13
5.2.50.0070.0409.10
5.2.40.0050.0409.09
5.2.30.0090.0379.06
5.2.20.0100.0349.06
5.2.10.0090.0358.94
5.2.00.0070.0378.80
5.1.60.0060.0328.08
5.1.50.0120.0298.08
5.1.40.0070.0338.06
5.1.30.0050.0368.41
5.1.20.0050.0358.43
5.1.10.0100.0288.16
5.1.00.0050.0288.16
5.0.50.0090.0186.63
5.0.40.0060.0196.50
5.0.30.0050.0386.31
5.0.20.0070.0236.28
5.0.10.0040.0276.26
5.0.00.0060.0376.25
4.4.90.0050.0214.78
4.4.80.0050.0214.75
4.4.70.0050.0204.75
4.4.60.0040.0214.76
4.4.50.0030.0224.77
4.4.40.0050.0314.71
4.4.30.0030.0224.76
4.4.20.0050.0224.84
4.4.10.0070.0194.85
4.4.00.0040.0324.76
4.3.110.0040.0224.67
4.3.100.0030.0234.67
4.3.90.0030.0224.64
4.3.80.0040.0324.59
4.3.70.0050.0254.63
4.3.60.0040.0244.63
4.3.50.0080.0304.63
4.3.40.0050.0374.54
4.3.30.0040.0233.30
4.3.20.0030.0253.27
4.3.10.0060.0243.24
4.3.00.0170.0206.61

preferences:
46.92 ms | 400 KiB | 5 Q