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.60.0130.01016.63
8.3.50.0080.00722.07
8.3.40.0070.00718.97
8.3.30.0100.00718.92
8.3.20.0000.00720.20
8.3.10.0040.00423.48
8.3.00.0050.00320.95
8.2.180.0130.00316.63
8.2.170.0110.00422.96
8.2.160.0140.00420.44
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0100.00026.16
8.2.120.0080.00021.11
8.2.110.0030.00722.38
8.2.100.0110.00019.39
8.2.90.0080.00019.23
8.2.80.0040.00417.97
8.2.70.0030.00717.75
8.2.60.0000.00917.80
8.2.50.0000.00818.07
8.2.40.0050.00320.07
8.2.30.0040.00718.18
8.2.20.0000.00817.89
8.2.10.0080.00018.08
8.2.00.0040.00417.89
8.1.280.0170.00725.92
8.1.270.0030.00622.07
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00323.72
8.1.230.0120.00019.08
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0000.00818.56
8.1.160.0070.00021.89
8.1.150.0000.00918.63
8.1.140.0040.00417.45
8.1.130.0110.00017.86
8.1.120.0000.00717.58
8.1.110.0000.00817.44
8.1.100.0000.00717.53
8.1.90.0040.00417.42
8.1.80.0050.00217.58
8.1.70.0030.00317.40
8.1.60.0040.00417.67
8.1.50.0030.00517.58
8.1.40.0080.00017.51
8.1.30.0030.00617.71
8.1.20.0030.00517.61
8.1.10.0050.00217.65
8.1.00.0040.00417.48
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0070.00018.32
8.0.270.0030.00317.20
8.0.260.0030.00317.08
8.0.250.0040.00417.13
8.0.240.0030.00316.98
8.0.230.0000.00716.96
8.0.220.0000.00717.03
8.0.210.0000.00716.97
8.0.200.0030.00317.07
8.0.190.0040.00417.10
8.0.180.0050.00316.99
8.0.170.0040.00416.95
8.0.160.0040.00417.01
8.0.150.0000.00717.06
8.0.140.0060.00317.06
8.0.130.0030.00313.47
8.0.120.0080.00016.96
8.0.110.0070.00016.97
8.0.100.0040.00417.10
8.0.90.0000.00717.06
8.0.80.0110.00616.92
8.0.70.0050.00317.11
8.0.60.0030.00316.98
8.0.50.0040.00416.96
8.0.30.0150.00417.04
8.0.20.0080.01117.40
8.0.10.0040.00416.91
8.0.00.0050.01216.88
7.4.330.0050.00015.04
7.4.320.0000.00616.51
7.4.300.0000.00816.73
7.4.290.0000.00716.78
7.4.280.0000.00816.64
7.4.270.0040.00416.73
7.4.260.0000.00916.72
7.4.250.0070.00016.70
7.4.240.0020.00516.65
7.4.230.0040.00416.40
7.4.220.0140.00316.71
7.4.210.0030.01416.71
7.4.200.0080.00016.66
7.4.160.0040.01216.48
7.4.150.0060.01017.40
7.4.140.0070.01017.86
7.4.130.0080.00916.53
7.4.120.0080.01316.68
7.4.110.0130.00316.76
7.4.100.0090.00916.46
7.4.90.0100.00716.48
7.4.80.0070.01319.39
7.4.70.0100.01016.62
7.4.60.0090.00916.65
7.4.50.0000.00816.39
7.4.40.0100.00716.44
7.4.30.0080.01416.62
7.4.00.0110.00415.06
7.3.330.0030.00313.36
7.3.320.0000.00613.18
7.3.310.0000.00716.42
7.3.300.0070.00016.34
7.3.290.0100.00916.39
7.3.280.0100.00616.40
7.3.270.0110.00717.40
7.3.260.0140.00416.32
7.3.250.0090.01016.60
7.3.240.0100.00716.39
7.3.230.0100.00716.41
7.3.210.0320.02816.39
7.3.200.0120.00419.39
7.3.190.0130.01016.61
7.3.180.0160.00616.40
7.3.170.0070.01016.63
7.3.160.0080.00816.22
7.3.120.0090.00614.79
7.3.10.0100.00616.70
7.3.00.0070.00716.38
7.2.330.0140.00716.79
7.2.320.0110.00816.65
7.2.310.0100.00716.60
7.2.300.0080.00816.78
7.2.290.0070.01416.59
7.2.130.0040.01216.89
7.2.120.0030.01016.92
7.2.110.0030.00716.79
7.2.100.0000.01317.01
7.2.90.0080.00416.74
7.2.80.0030.01317.16
7.2.70.0040.01116.97
7.2.60.0040.01117.09
7.2.50.0100.00316.92
7.2.40.0080.00616.87
7.2.30.0060.00916.97
7.2.20.0030.00716.93
7.2.10.0060.00917.05
7.2.00.0020.01318.17
7.1.250.0070.00715.96
7.1.100.0130.00318.05
7.1.70.0060.00917.27
7.1.60.0040.01119.70
7.1.50.0090.01217.09
7.1.00.0000.08022.49
7.0.200.0030.00616.89
7.0.140.0030.07722.04
7.0.60.0070.05319.95
7.0.50.0070.09017.75
7.0.40.0100.08020.34
7.0.30.0270.07720.12
7.0.20.0400.04020.22
7.0.10.0170.05320.25
7.0.00.0030.04720.16
5.6.280.0100.06721.08
5.6.210.0000.04720.71
5.6.200.0030.05018.18
5.6.190.0130.07320.39
5.6.180.0330.03720.30
5.6.170.0370.05020.54
5.6.160.0030.04720.71
5.6.150.0100.07718.27
5.6.140.0000.04018.20
5.6.130.0100.07718.14
5.6.120.0130.04021.15
5.6.110.0070.04021.12
5.6.100.0100.05020.98
5.6.90.0100.08021.04
5.6.80.0030.08020.40
5.6.70.0070.04320.53
5.5.350.0200.03320.43
5.5.340.0030.04718.05
5.5.330.0030.08720.32
5.5.320.0330.04020.25
5.5.310.0230.04320.35
5.5.300.0100.03318.03
5.5.290.0030.08317.93
5.5.280.0130.05720.87
5.5.270.0070.03720.87
5.5.260.0070.03720.80
5.5.250.0030.04320.69
5.5.240.0130.07020.04
5.4.450.0070.06719.61
5.4.440.1000.06319.58
5.4.430.0700.06019.61
5.4.420.0670.00019.52
5.4.410.0100.05718.92
5.4.400.0330.06718.77
5.4.390.0370.04718.84
5.4.380.0170.06018.63
5.4.370.0100.06318.62
5.4.360.0000.04718.61
5.4.350.0050.03912.02
5.4.340.0050.04412.02
5.4.320.0120.03412.50
5.4.310.0120.03812.50
5.4.300.0080.03612.51
5.4.290.0030.04412.50
5.4.280.0050.04112.40
5.4.270.0050.03912.40
5.4.260.0080.04612.40
5.4.250.0100.03712.40
5.4.240.0060.04012.40
5.4.230.0070.03712.39
5.4.220.0080.03612.39
5.4.210.0040.04012.39
5.4.200.0070.04012.39
5.4.190.0070.03912.38
5.4.180.0040.03912.39
5.4.170.0060.03812.39
5.4.160.0040.03812.39
5.4.150.0040.03912.39
5.4.140.0060.03812.07
5.4.130.0070.03612.05
5.4.120.0100.04112.02
5.4.110.0100.04312.02
5.4.100.0040.03912.01
5.4.90.0120.04112.02
5.4.80.0130.04712.02
5.4.70.0130.04412.01
5.4.60.0050.03912.01
5.4.50.0080.05012.00
5.4.40.0060.05012.00
5.4.30.0080.04311.99
5.4.20.0080.03511.99
5.4.10.0030.03711.99
5.4.00.0050.03711.48
5.3.290.0070.04512.80
5.3.280.0070.03912.71
5.3.270.0060.04312.73
5.3.260.0080.03812.72
5.3.250.0090.03612.71
5.3.240.0040.04112.72
5.3.230.0070.03812.71
5.3.220.0050.03912.68
5.3.210.0080.03712.68
5.3.200.0050.03712.68
5.3.190.0050.03912.68
5.3.180.0070.03612.68
5.3.170.0080.03512.67
5.3.160.0060.03912.67
5.3.150.0060.03712.67
5.3.140.0100.03412.66
5.3.130.0050.04012.66
5.3.120.0050.04412.66
5.3.110.0070.04212.66
5.3.100.0070.03712.13
5.3.90.0070.03812.11
5.3.80.0040.03812.10
5.3.70.0080.03512.10
5.3.60.0070.04312.09
5.3.50.0090.03412.04
5.3.40.0060.03712.03
5.3.30.0080.03411.99
5.3.20.0060.03611.78
5.3.10.0080.03311.74
5.3.00.0040.03911.73
5.2.170.0060.0309.23
5.2.160.0060.0309.22
5.2.150.0040.0329.23
5.2.140.0070.0309.23
5.2.130.0040.0309.18
5.2.120.0040.0299.19
5.2.110.0060.0289.19
5.2.100.0050.0299.19
5.2.90.0080.0259.18
5.2.80.0070.0289.18
5.2.70.0070.0289.18
5.2.60.0020.0339.13
5.2.50.0060.0339.11
5.2.40.0030.0319.08
5.2.30.0060.0289.06
5.2.20.0060.0299.06
5.2.10.0050.0308.94
5.2.00.0070.0288.80
5.1.60.0030.0258.08
5.1.50.0060.0288.09
5.1.40.0050.0258.06
5.1.30.0040.0288.42
5.1.20.0030.0288.43
5.1.10.0050.0298.16
5.1.00.0040.0268.16
5.0.50.0040.0206.64
5.0.40.0020.0216.50
5.0.30.0050.0306.30
5.0.20.0050.0246.28
5.0.10.0030.0206.26
5.0.00.0060.0316.25
4.4.90.0020.0164.78
4.4.80.0020.0164.75
4.4.70.0050.0134.75
4.4.60.0020.0164.76
4.4.50.0020.0164.77
4.4.40.0030.0274.71
4.4.30.0030.0174.76
4.4.20.0020.0174.84
4.4.10.0030.0164.85
4.4.00.0010.0284.76
4.3.110.0030.0154.67
4.3.100.0040.0134.66
4.3.90.0020.0154.63
4.3.80.0070.0224.58
4.3.70.0030.0164.63
4.3.60.0030.0164.63
4.3.50.0050.0144.63
4.3.40.0030.0244.54
4.3.30.0020.0173.30
4.3.20.0020.0163.28
4.3.10.0030.0153.24
4.3.00.0130.0206.61

preferences:
39.69 ms | 401 KiB | 5 Q