3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lib_path = 'core/modules/statistics/statistics.js'; $re = '/(<script src=").*?(' . preg_quote($lib_path, '/.') . ').*?(">)/is'; $content = 'Some content <script src="http://example.com/core/modules/statistics/statistics.js"></script> Etc.'; echo preg_quote($lib_path); var_dump(preg_match($re, $content));

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.0140.00718.43
8.3.50.0130.00521.20
8.3.40.0110.00418.98
8.3.30.0000.01420.35
8.3.20.0000.00720.33
8.3.10.0040.00421.92
8.3.00.0030.00522.52
8.2.180.0090.00618.30
8.2.170.0100.01022.96
8.2.160.0030.01020.38
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00821.04
8.2.110.0030.00622.41
8.2.100.0120.00018.03
8.2.90.0000.00819.17
8.2.80.0040.00417.97
8.2.70.0060.00317.75
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0000.00818.25
8.2.30.0040.00418.16
8.2.20.0000.00717.70
8.2.10.0040.00417.96
8.2.00.0030.00517.83
8.1.280.0080.00825.92
8.1.270.0030.00523.99
8.1.260.0060.00326.35
8.1.250.0000.00828.09
8.1.240.0060.00324.00
8.1.230.0040.00819.01
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0050.00317.55
8.1.180.0030.00518.10
8.1.170.0040.00418.70
8.1.160.0000.00922.08
8.1.150.0030.00618.87
8.1.140.0040.00417.65
8.1.130.0040.00417.78
8.1.120.0040.00417.63
8.1.110.0000.00817.54
8.1.100.0000.00817.67
8.1.90.0040.00417.51
8.1.80.0040.00417.60
8.1.70.0030.00317.51
8.1.60.0000.00817.63
8.1.50.0030.00517.63
8.1.40.0070.00017.59
8.1.30.0000.00917.64
8.1.20.0000.00817.85
8.1.10.0000.00817.57
8.1.00.0000.01017.65
8.0.300.0040.00418.77
8.0.290.0000.00817.30
8.0.280.0000.00718.54
8.0.270.0030.00317.20
8.0.260.0030.00316.98
8.0.250.0070.00017.14
8.0.240.0030.00517.12
8.0.230.0030.00317.08
8.0.220.0040.00416.97
8.0.210.0000.00717.07
8.0.200.0030.00317.08
8.0.190.0030.00516.95
8.0.180.0030.00416.95
8.0.170.0070.00017.04
8.0.160.0040.00417.04
8.0.150.0050.00216.97
8.0.140.0040.00417.03
8.0.130.0060.00013.45
8.0.120.0000.00716.90
8.0.110.0040.00417.07
8.0.100.0040.00417.08
8.0.90.0030.00617.04
8.0.80.0080.00616.96
8.0.70.0040.00416.94
8.0.60.0050.00316.87
8.0.50.0030.00616.97
8.0.30.0120.00717.29
8.0.20.0130.00617.40
8.0.10.0030.00617.09
8.0.00.0090.01016.93
7.4.330.0000.00515.16
7.4.320.0030.00316.68
7.4.300.0040.00416.66
7.4.290.0000.00716.67
7.4.280.0070.00016.57
7.4.270.0070.00016.75
7.4.260.0000.00513.45
7.4.250.0040.00416.62
7.4.240.0020.00616.70
7.4.230.0070.00016.56
7.4.220.0060.01116.62
7.4.210.0040.01016.69
7.4.200.0040.00416.63
7.4.190.0000.00716.61
7.4.160.0120.00316.59
7.4.150.0140.00317.40
7.4.140.0060.01617.86
7.4.130.0050.01216.64
7.4.120.0090.01116.68
7.4.110.0070.01016.54
7.4.100.0070.01016.75
7.4.90.0090.00916.55
7.4.80.0100.00719.39
7.4.70.0040.01216.83
7.4.60.0060.00916.73
7.4.50.0090.00016.62
7.4.40.0070.00722.77
7.4.30.0090.00616.61
7.4.00.0100.00614.98
7.3.330.0050.00013.19
7.3.320.0000.00613.25
7.3.310.0070.00016.19
7.3.300.0000.00716.40
7.3.290.0090.00616.46
7.3.280.0080.00716.37
7.3.270.0110.00717.40
7.3.260.0110.00616.29
7.3.250.0120.00816.54
7.3.240.0060.01016.70
7.3.230.0140.00416.39
7.3.210.0060.01316.39
7.3.200.0120.00819.39
7.3.190.0140.00416.43
7.3.180.0110.00516.79
7.3.170.0060.01216.82
7.3.160.0090.00616.35
7.3.120.0100.00314.71
7.2.330.0070.01116.70
7.2.320.0080.01116.76
7.2.310.0160.00016.47
7.2.300.0070.01616.79
7.2.290.0150.00716.84
7.2.00.0080.00819.72
7.1.100.0070.01018.30
7.1.70.0030.00617.40
7.1.60.0060.01819.32
7.1.50.0100.01016.97
7.1.00.0030.07722.50
7.0.200.0030.00517.02
7.0.140.0000.07322.08
7.0.60.0030.06320.01
7.0.50.0070.09017.83
7.0.40.0070.05720.26
7.0.30.0300.06020.05
7.0.20.0300.07320.31
7.0.10.0270.06320.01
7.0.00.0070.07720.18
5.6.280.0000.07721.07
5.6.210.0100.06720.76
5.6.200.0030.09318.17
5.6.190.0100.05320.61
5.6.180.0230.08320.27
5.6.170.0400.03320.33
5.6.160.0070.05020.37
5.6.150.0030.05718.12
5.6.140.0030.04318.14
5.6.130.0030.08018.07
5.6.120.0070.08721.14
5.6.110.0170.08020.95
5.6.100.0100.06721.00
5.6.90.0170.06721.12
5.6.80.0030.05320.50
5.5.350.0070.07720.42
5.5.340.0030.09317.96
5.5.330.0070.04020.37
5.5.320.0070.07320.14
5.5.310.0130.05020.27
5.5.300.0100.07017.92
5.5.290.0100.07317.89
5.5.280.0030.04320.87
5.5.270.0030.05020.87
5.5.260.0100.07020.86
5.5.250.0000.04320.59
5.5.240.0130.07320.11
5.4.450.0130.06719.58
5.4.440.0270.06719.13
5.4.430.0170.05319.25
5.4.420.0170.08019.41
5.4.410.0430.04019.43
5.4.400.0230.03719.06
5.4.390.0100.05318.93
5.4.380.0300.03719.09
5.4.370.0230.03319.13
5.4.360.0270.04318.80
5.4.350.0270.04319.25
5.4.340.0300.04719.08
5.4.320.0100.08319.25
5.4.310.0300.03719.23
5.4.300.0100.05318.91
5.4.290.0270.07018.79
5.4.280.0230.07319.09
5.4.270.0130.08319.12
5.4.260.0170.07019.09
5.4.250.0230.06318.91
5.4.240.0270.05318.92
5.4.230.0170.06719.07
5.4.220.0200.07318.92
5.4.210.0270.07018.87
5.4.200.0200.04718.80
5.4.190.0230.07019.23
5.4.180.0300.06718.94
5.4.170.0270.03318.87
5.4.160.0200.05019.11
5.4.150.0330.05719.11
5.4.140.0200.07716.45
5.4.130.0200.04716.31
5.4.120.0200.04016.31
5.4.110.0200.07016.47
5.4.100.0230.07316.38
5.4.90.0230.06716.34
5.4.80.0200.03716.37
5.4.70.0200.06716.48
5.4.60.0230.07016.17
5.4.50.0200.07016.40
5.4.40.0270.05716.40
5.4.30.0200.04316.41
5.4.20.0170.04316.03
5.4.10.0200.05716.38
5.4.00.0200.07015.74
5.3.290.0230.06014.52
5.3.280.0170.03714.42
5.3.270.0200.03314.70
5.3.260.0200.03714.55
5.3.250.0200.07314.48
5.3.240.0170.06014.43
5.3.230.0270.07014.46
5.3.220.0270.06714.50
5.3.210.0230.05014.50
5.3.200.0230.07314.49
5.3.190.0200.07314.49
5.3.180.0200.07014.51
5.3.170.0130.04314.49
5.3.160.0130.06014.50
5.3.150.0230.07314.41
5.3.140.0270.06714.41
5.3.130.0170.04014.50
5.3.120.0230.05714.38
5.3.110.0270.06714.39
5.3.100.0300.05013.98
5.3.90.0170.06713.87
5.3.80.0230.07013.81
5.3.70.0200.07314.06
5.3.60.0170.06313.86
5.3.50.0200.07314.03
5.3.40.0230.04713.90
5.3.30.0200.07014.02
5.3.20.0200.05313.50
5.3.10.0170.06013.74
5.3.00.0230.04013.49
5.2.170.0130.04312.04
5.2.160.0200.05712.04
5.2.150.0200.05312.04
5.2.140.0200.05712.04
5.2.130.0170.03012.04
5.2.120.0170.04712.04
5.2.110.0200.05712.04
5.2.100.0170.04712.04
5.2.90.0200.06312.04
5.2.80.0230.04312.04
5.2.70.0130.05712.04
5.2.60.0100.03312.04
5.2.50.0130.05312.04
5.2.40.0100.06012.04
5.2.30.0230.05012.04
5.2.20.0100.04312.04
5.2.10.0170.05312.04
5.2.00.0100.05012.04
5.1.60.0200.05012.04
5.1.50.0100.04012.04
5.1.40.0200.04012.04
5.1.30.0170.05012.04
5.1.20.0170.06012.04
5.1.10.0170.05312.04
5.1.00.0170.05312.04
5.0.50.0070.04712.04
5.0.40.0130.04012.04
5.0.30.0030.05012.04
5.0.20.0100.03312.04
5.0.10.0070.04312.04
5.0.00.0070.05312.04
4.4.90.0070.02712.04
4.4.80.0100.02712.04
4.4.70.0100.03012.04
4.4.60.0070.04012.04
4.4.50.0070.03012.04
4.4.40.0100.03012.04
4.4.30.0030.03712.04
4.4.20.0030.02012.04
4.4.10.0100.01312.04
4.4.00.0100.05012.04
4.3.110.0100.03012.04
4.3.100.0100.03012.04
4.3.90.0000.04012.04
4.3.80.0170.04312.04
4.3.70.0100.02312.04
4.3.60.0070.03712.04
4.3.50.0100.03312.04
4.3.40.0070.05312.04
4.3.30.0100.03012.04
4.3.20.0000.04012.04
4.3.10.0100.03012.04
4.3.00.0030.03712.04

preferences:
44.83 ms | 401 KiB | 5 Q