3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = 'text text http://site.ru/bla/bla/index.html text text'; preg_replace('/http:.*?\.html/i', '<a href=\'$0\'></a>', $content); print_r($array);

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.0070.01019.12
8.3.30.0100.00718.92
8.3.20.0120.00620.29
8.3.10.0090.00622.05
8.3.00.0040.00420.77
8.2.170.0140.00722.96
8.2.160.0070.00719.21
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0050.00226.16
8.2.120.0050.00319.61
8.2.110.0040.00422.20
8.2.100.0040.00719.34
8.2.90.0030.00619.05
8.2.80.0040.00419.21
8.2.70.0050.00317.63
8.2.60.0040.00417.80
8.2.50.0050.00318.07
8.2.40.0070.00018.22
8.2.30.0000.00718.08
8.2.20.0000.00817.89
8.2.10.0040.00417.77
8.2.00.0070.00317.93
8.1.270.0120.00622.05
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00423.88
8.1.230.0070.00719.04
8.1.220.0050.00317.79
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0050.00317.41
8.1.180.0000.00818.40
8.1.170.0000.00818.67
8.1.160.0000.00722.15
8.1.150.0050.00218.72
8.1.140.0050.00217.48
8.1.130.0030.00317.84
8.1.120.0070.00017.59
8.1.110.0000.00817.46
8.1.100.0000.00717.54
8.1.90.0000.00717.54
8.1.80.0030.00317.57
8.1.70.0070.00017.38
8.1.60.0080.00017.64
8.1.50.0000.00817.66
8.1.40.0040.00417.57
8.1.30.0050.00217.77
8.1.20.0000.00817.68
8.1.10.0000.00917.53
8.1.00.0070.00017.41
8.0.300.0000.00718.77
8.0.290.0040.00417.16
8.0.280.0000.00718.40
8.0.270.0000.00717.21
8.0.260.0030.00317.00
8.0.250.0070.00016.97
8.0.240.0070.00017.11
8.0.230.0000.00716.98
8.0.220.0030.00317.05
8.0.210.0040.00416.96
8.0.200.0030.00317.15
8.0.190.0040.00417.10
8.0.180.0000.00717.10
8.0.170.0040.00416.99
8.0.160.0000.00817.06
8.0.150.0040.00416.84
8.0.140.0000.00817.01
8.0.130.0070.00013.42
8.0.120.0060.00316.99
8.0.110.0030.00517.06
8.0.100.0040.00417.06
8.0.90.0000.00717.05
8.0.80.0090.00617.07
8.0.70.0060.00317.07
8.0.60.0000.00716.90
8.0.50.0040.00417.07
8.0.30.0090.01017.18
8.0.20.0140.00417.43
8.0.10.0000.00717.26
8.0.00.0060.01316.77
7.4.330.0050.00015.00
7.4.320.0030.00316.68
7.4.300.0060.00016.75
7.4.290.0030.00316.65
7.4.280.0030.00316.67
7.4.270.0070.00016.66
7.4.260.0030.00616.66
7.4.250.0000.00816.55
7.4.240.0050.00216.60
7.4.230.0070.00016.64
7.4.220.0090.00916.72
7.4.210.0090.01016.75
7.4.200.0000.00816.54
7.4.190.0030.00316.78
7.4.160.0200.00316.40
7.4.150.0110.00717.40
7.4.140.0110.00717.86
7.4.130.0120.00516.57
7.4.120.0120.00616.62
7.4.110.0130.00316.57
7.4.100.0160.00616.61
7.4.90.0110.00716.78
7.4.80.0070.01419.39
7.4.70.0000.01816.73
7.4.60.0170.00316.59
7.4.50.0000.00816.53
7.4.40.0040.00822.77
7.4.30.0120.00916.75
7.4.00.0050.01415.08
7.3.330.0050.00013.27
7.3.320.0000.00513.03
7.3.310.0040.00416.42
7.3.300.0030.00316.37
7.3.290.0070.00716.42
7.3.280.0070.01116.43
7.3.270.0140.00317.40
7.3.260.0150.00316.38
7.3.250.0120.00716.46
7.3.240.0180.00316.50
7.3.230.0100.01016.48
7.3.210.0070.01016.43
7.3.200.0090.01216.61
7.3.190.0070.01016.29
7.3.180.0080.00816.50
7.3.170.0040.01316.69
7.3.160.0090.00916.44
7.3.120.0070.00914.92
7.3.110.0030.01414.88
7.3.100.0080.00615.11
7.3.90.0120.00614.73
7.3.80.0110.00415.12
7.3.70.0090.00614.86
7.3.60.0090.00014.68
7.3.50.0040.01114.41
7.3.40.0060.00614.56
7.3.30.0110.00414.55
7.3.20.0030.01016.78
7.3.10.0030.01016.58
7.3.00.0030.01016.83
7.2.330.0040.01516.61
7.2.320.0100.01016.67
7.2.310.0070.01016.55
7.2.300.0110.00716.59
7.2.290.0000.01616.39
7.2.250.0110.00715.06
7.2.240.0070.01315.06
7.2.230.0060.01215.01
7.2.220.0040.01414.95
7.2.210.0110.00714.81
7.2.200.0000.01015.16
7.2.190.0080.00414.76
7.2.180.0110.00414.93
7.2.170.0000.01214.71
7.2.60.0100.00316.50
7.2.00.0000.01619.51
7.1.330.0000.01216.11
7.1.320.0080.00815.71
7.1.310.0140.00315.62
7.1.300.0090.00616.02
7.1.290.0030.00915.71
7.1.280.0030.00915.70
7.1.270.0030.00915.89
7.1.260.0060.00315.72
7.1.200.0090.00615.77
7.1.100.0060.00618.27
7.1.70.0050.00217.39
7.1.60.0070.00317.38
7.1.50.0070.01717.07
7.1.00.0000.05722.52
7.0.200.0080.00816.91
7.0.140.0000.08022.18
7.0.60.0030.04019.82
7.0.50.0070.03717.91
7.0.40.0100.05320.32
7.0.30.0270.07720.35
7.0.20.0230.05720.35
7.0.10.0100.09020.35
7.0.00.0070.04320.20
5.6.280.0000.07721.07
5.6.210.0100.03720.69
5.6.200.0100.07718.16
5.6.190.0170.08020.32
5.6.180.0300.06720.77
5.6.170.0300.06020.33
5.6.160.0070.08020.44
5.6.150.0130.07718.13
5.6.140.0100.07318.13
5.6.130.0070.05318.18
5.6.120.0000.08720.97
5.6.110.0100.06720.96
5.6.100.0130.07321.10
5.6.90.0000.08721.02
5.6.80.0100.07320.52
5.6.70.4470.04320.52
5.5.350.0100.06720.46
5.5.340.0070.06317.99
5.5.330.0130.07720.21
5.5.320.0230.08020.13
5.5.310.0200.05320.18
5.5.300.0070.07717.98
5.5.290.0030.08017.91
5.5.280.0070.07020.89
5.5.270.0070.03720.75
5.5.260.0100.08020.64
5.5.250.0100.08020.54
5.5.240.0070.07320.27
5.4.450.0370.05719.48
5.4.440.0730.06319.54
5.4.430.0770.06319.54
5.4.420.0130.05019.25
5.4.410.0600.06019.36
5.4.400.0300.08018.50
5.4.390.0530.04718.67
5.4.380.0200.05718.71
5.4.370.0230.04318.56
5.4.360.0370.04018.67
5.4.350.0130.07718.67
5.4.340.0200.06018.65
5.4.320.0060.04812.45
5.4.310.0070.04012.45
5.4.300.0080.03512.45
5.4.290.0100.04112.45
5.4.280.0110.03812.34
5.4.270.0100.03712.35
5.4.260.0070.06718.79
5.4.250.0170.07018.80
5.4.240.0130.05018.79
5.4.230.0070.05718.85
5.4.220.0230.06018.64
5.4.210.0130.05718.65
5.4.200.0170.05718.98
5.4.190.0030.05718.75
5.4.180.0070.05318.74
5.4.170.0200.04318.82
5.4.160.0100.05318.63
5.4.150.0070.05718.79
5.4.140.0030.05716.27
5.4.130.0200.04716.27
5.4.120.0100.05316.24
5.4.110.0200.06016.45
5.4.100.0170.05316.27
5.4.90.0100.05016.13
5.4.80.0070.07716.29
5.4.70.0230.06316.36
5.4.60.0070.07316.13
5.4.50.0100.07016.41
5.4.40.0230.05316.23
5.4.30.0100.07316.44
5.4.20.0000.07016.23
5.4.10.0100.06716.20
5.4.00.0200.05315.98
5.3.290.0080.04012.80
5.3.280.0100.06714.60
5.3.270.0130.05714.52
5.3.260.0070.08014.64
5.3.250.0130.07314.63
5.3.240.0100.07314.30
5.3.230.0070.07314.60
5.3.220.0130.07014.45
5.3.210.0100.06014.61
5.3.200.0030.06014.58
5.3.190.0100.06714.71
5.3.180.0130.07014.26
5.3.170.0130.06314.62
5.3.160.0130.04314.71
5.3.150.0170.05314.60
5.3.140.0070.06314.60
5.3.130.0100.06314.55
5.3.120.0030.06014.24
5.3.110.0130.06714.39
5.3.100.0100.06014.12
5.3.90.0170.04713.71
5.3.80.0130.05013.86
5.3.70.0170.06013.87
5.3.60.0130.06714.01
5.3.50.0200.05313.80
5.3.40.0270.04713.89
5.3.30.0130.06013.82
5.3.20.0100.05713.61
5.3.10.0170.03713.79
5.3.00.0170.05313.50
5.2.170.0100.05711.15
5.2.160.0030.04711.05
5.2.150.0070.06011.04
5.2.140.0170.04710.89
5.2.130.0030.06011.10
5.2.120.0070.05710.98
5.2.110.0000.04311.00
5.2.100.0030.05010.98
5.2.90.0100.04311.10
5.2.80.0070.05010.97
5.2.70.0130.04311.08
5.2.60.0100.05310.96
5.2.50.0030.05710.92
5.2.40.0070.04310.91
5.2.30.0170.04710.99
5.2.20.0100.04711.11
5.2.10.0100.05011.07
5.2.00.0100.04310.79
5.1.60.0070.03310.14
5.1.50.0170.03310.02
5.1.40.0070.05010.12
5.1.30.0170.03010.40
5.1.20.0130.04310.23
5.1.10.0100.0439.83
5.1.00.0030.05010.09
5.0.50.0030.0408.60
5.0.40.0070.0338.48
5.0.30.0030.0608.40
5.0.20.0170.0278.38
5.0.10.0070.0338.25
5.0.00.0000.0478.30
4.4.90.0070.0177.47
4.4.80.0000.0337.47
4.4.70.0030.0237.47
4.4.60.0070.0207.47
4.4.50.0070.0177.47
4.4.40.0070.0337.47
4.4.30.0030.0237.47
4.4.20.0000.0277.47
4.4.10.0000.0337.47
4.4.00.0030.0307.47
4.3.110.0030.0277.47
4.3.100.0000.0277.47
4.3.90.0070.0177.47
4.3.80.0030.0377.47
4.3.70.0000.0307.47
4.3.60.0030.0307.47
4.3.50.0070.0307.47
4.3.40.0030.0337.47
4.3.30.0000.0307.47
4.3.20.0030.0307.47
4.3.10.0000.0437.47
4.3.00.0170.0177.27

preferences:
39.53 ms | 400 KiB | 5 Q