3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lib_path = 'core/modules/statistics/statistics.js'; $re = '/(<script src=").*?(' . $lib_path . ').*?(">)/is'; $content = 'Some content <script src="http://example.com/core/modules/statistics/statistics.js"></script> Etc.'; 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.0120.00616.88
8.3.50.0080.00721.94
8.3.40.0140.00418.76
8.3.30.0080.00618.70
8.3.20.0070.00020.21
8.3.10.0000.00823.39
8.3.00.0000.00822.44
8.2.180.0040.01416.50
8.2.170.0150.00022.96
8.2.160.0070.00720.43
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0070.00022.29
8.2.110.0080.00422.08
8.2.100.0060.00617.91
8.2.90.0040.00419.11
8.2.80.0030.00517.97
8.2.70.0030.00517.63
8.2.60.0050.00317.90
8.2.50.0050.00318.07
8.2.40.0030.00618.09
8.2.30.0050.00318.04
8.2.20.0000.00717.53
8.2.10.0000.00819.45
8.2.00.0040.00417.73
8.1.280.0110.00425.92
8.1.270.0030.00523.97
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0080.00023.92
8.1.230.0000.01119.15
8.1.220.0040.00417.78
8.1.210.0060.00318.77
8.1.200.0060.00317.25
8.1.190.0000.00817.53
8.1.180.0040.00418.10
8.1.170.0040.00418.48
8.1.160.0050.00521.88
8.1.150.0000.00718.68
8.1.140.0000.00817.48
8.1.130.0030.00317.81
8.1.120.0080.00017.45
8.1.110.0040.00417.46
8.1.100.0040.00417.33
8.1.90.0040.00417.44
8.1.80.0000.00717.45
8.1.70.0080.00017.41
8.1.60.0040.00417.48
8.1.50.0030.00517.54
8.1.40.0040.00417.47
8.1.30.0040.00417.58
8.1.20.0040.00417.60
8.1.10.0050.00317.42
8.1.00.0040.00417.32
8.0.300.0030.00318.77
8.0.290.0000.00717.25
8.0.280.0030.00318.43
8.0.270.0040.00417.25
8.0.260.0060.00016.93
8.0.250.0050.00216.91
8.0.240.0030.00316.97
8.0.230.0030.00616.96
8.0.220.0030.00316.82
8.0.210.0000.00716.84
8.0.200.0000.00717.04
8.0.190.0030.00716.88
8.0.180.0040.00416.89
8.0.170.0000.00716.88
8.0.160.0040.00416.89
8.0.150.0040.00416.88
8.0.140.0030.00316.96
8.0.130.0060.00013.28
8.0.120.0040.00416.85
8.0.110.0000.00716.83
8.0.100.0030.00617.00
8.0.90.0000.00816.83
8.0.80.0080.00816.89
8.0.70.0000.00716.81
8.0.60.0040.00416.66
8.0.50.0040.00416.77
8.0.30.0130.01117.03
8.0.20.0110.00617.40
8.0.10.0030.00516.88
8.0.00.0080.01416.61
7.4.330.0000.00515.05
7.4.320.0050.00216.48
7.4.300.0060.00016.36
7.4.290.0000.00816.43
7.4.280.0040.00416.43
7.4.270.0000.00716.45
7.4.260.0000.00616.48
7.4.250.0040.00416.25
7.4.240.0030.00316.42
7.4.230.0030.00316.34
7.4.220.0100.01116.44
7.4.210.0100.00516.50
7.4.200.0070.00016.27
7.4.190.0000.00716.40
7.4.160.0060.00916.50
7.4.150.0170.00017.40
7.4.140.0090.01117.86
7.4.130.0090.00816.28
7.4.120.0060.01016.59
7.4.110.0100.00616.43
7.4.100.0120.00816.29
7.4.90.0110.00616.54
7.4.80.0060.01319.39
7.4.70.0130.00316.62
7.4.60.0080.00816.32
7.4.50.0000.00616.48
7.4.40.0060.00822.77
7.4.30.0100.00616.64
7.4.00.0070.01014.77
7.3.330.0000.00513.16
7.3.320.0030.00313.25
7.3.310.0030.00316.46
7.3.300.0050.00216.36
7.3.290.0060.01116.20
7.3.280.0100.00816.29
7.3.270.0060.01217.40
7.3.260.0160.00016.35
7.3.250.0140.00516.42
7.3.240.0150.00716.33
7.3.230.0130.00316.39
7.3.210.0110.00616.43
7.3.200.0130.00419.39
7.3.190.0130.00716.39
7.3.180.0090.00916.45
7.3.170.0000.01516.27
7.3.160.0040.01216.33
7.3.120.0060.01114.88
7.3.110.0050.01114.74
7.3.100.0090.00514.83
7.3.90.0050.00814.85
7.3.80.0020.01014.74
7.3.70.0040.00914.70
7.3.60.0030.00814.76
7.3.50.0050.00914.84
7.3.40.0030.00814.71
7.3.30.0030.01214.88
7.3.20.0070.00716.58
7.3.10.0020.01116.63
7.3.00.0050.00716.62
7.2.330.0100.00716.45
7.2.320.0100.00616.57
7.2.310.0090.00816.67
7.2.300.0090.01216.67
7.2.290.0100.00616.64
7.2.250.0080.00714.87
7.2.240.0130.00614.79
7.2.230.0070.01014.74
7.2.220.0040.00915.17
7.2.210.0070.00914.75
7.2.200.0030.01314.97
7.2.190.0030.01114.93
7.2.180.0050.00814.85
7.2.170.0050.01015.00
7.2.60.0070.00716.50
7.2.00.0070.00719.41
7.1.330.0080.00615.79
7.1.320.0080.00515.86
7.1.310.0060.01015.73
7.1.300.0080.00515.52
7.1.290.0050.00715.66
7.1.280.0080.00615.76
7.1.270.0050.00815.73
7.1.260.0080.00715.65
7.1.200.0110.00315.81
7.1.100.0030.01018.22
7.1.70.0060.00917.20
7.1.60.0140.01019.29
7.1.50.0300.00734.67
7.1.00.0070.07322.48
7.0.200.0030.00716.68
7.0.140.0000.07721.95
7.0.60.0100.07019.86
7.0.50.0100.08017.90
7.0.40.0070.04719.98
7.0.30.0330.07320.13
7.0.20.0230.04320.21
7.0.10.0070.06720.21
7.0.00.0070.05720.16
5.6.280.0000.07720.86
5.6.210.0030.07720.70
5.6.200.0100.04718.11
5.6.190.0070.08320.33
5.6.180.0130.07720.77
5.6.170.0270.03720.38
5.6.160.0070.08720.32
5.6.150.0030.07318.15
5.6.140.0100.07018.09
5.6.130.0030.08018.21
5.6.120.0070.05321.00
5.6.110.0170.07320.89
5.6.100.0030.08021.00
5.6.90.0100.07321.09
5.6.80.0030.07720.48
5.5.350.0000.08020.38
5.5.340.0070.08318.02
5.5.330.0070.04020.23
5.5.320.0270.05320.32
5.5.310.0270.08320.33
5.5.300.0170.07017.91
5.5.290.0030.08717.92
5.5.280.0030.04320.77
5.5.270.0070.05320.76
5.5.260.0130.07720.75
5.5.250.0030.04020.78
5.5.240.0030.07320.16
5.4.450.1370.03319.41
5.4.440.0970.05719.40
5.4.430.0130.05319.41
5.4.420.0700.05719.13
5.4.410.1070.06319.39
5.4.400.0430.06318.92
5.4.390.0600.06019.12
5.4.380.0070.06018.56
5.4.370.0330.05318.73
5.4.360.0300.08018.73
5.4.350.0400.07718.40
5.4.340.0330.06318.54
5.4.320.0050.03812.45
5.4.310.0040.04112.45
5.4.300.0070.04612.45
5.4.290.0050.04012.45
5.4.280.0050.04312.35
5.4.270.0070.04812.34
5.4.260.0040.03912.35
5.4.250.0060.03712.34
5.4.240.0090.03412.32
5.4.230.0040.03912.31
5.4.220.0050.03712.31
5.4.210.0060.03412.31
5.4.200.0050.04912.31
5.4.190.0030.03812.30
5.4.180.0090.03212.30
5.4.170.0080.03312.32
5.4.160.0080.03312.31
5.4.150.0070.03512.30
5.4.140.0060.03611.99
5.4.130.0040.03611.98
5.4.120.0050.03511.94
5.4.110.0090.03011.93
5.4.100.0020.03811.93
5.4.90.0040.03711.93
5.4.80.0070.03511.94
5.4.70.0020.03811.93
5.4.60.0030.03711.93
5.4.50.0060.03511.93
5.4.40.0050.03411.92
5.4.30.0040.03711.91
5.4.20.0060.03511.91
5.4.10.0040.03611.92
5.4.00.0060.03611.40
5.3.290.0070.05012.80
5.3.280.0040.03912.71
5.3.270.0040.04012.72
5.3.260.0060.04312.72
5.3.250.0040.03812.72
5.3.240.0040.03812.72
5.3.230.0050.03712.70
5.3.220.0070.03712.68
5.3.210.0090.03612.68
5.3.200.0090.03512.68
5.3.190.0070.03512.68
5.3.180.0090.03812.68
5.3.170.0080.03712.67
5.3.160.0090.03612.67
5.3.150.0070.04012.67
5.3.140.0040.03712.66
5.3.130.0060.04212.66
5.3.120.0040.03912.66
5.3.110.0050.03912.66
5.3.100.0070.04112.12
5.3.90.0050.03612.09
5.3.80.0060.03512.07
5.3.70.0040.03712.07
5.3.60.0070.03912.07
5.3.50.0050.03912.00
5.3.40.0040.04112.00
5.3.30.0080.04211.93
5.3.20.0030.03811.69
5.3.10.0060.03311.65
5.3.00.0060.04211.64
5.2.170.0060.0359.14
5.2.160.0040.0289.14
5.2.150.0050.0299.14
5.2.140.0030.0319.13
5.2.130.0050.0319.09
5.2.120.0110.0289.10
5.2.110.0030.0299.10
5.2.100.0040.0399.10
5.2.90.0030.0349.10
5.2.80.0070.0299.09
5.2.70.0020.0339.09
5.2.60.0050.0299.05
5.2.50.0070.0329.02
5.2.40.0050.0359.00
5.2.30.0060.0308.96
5.2.20.0070.0348.96
5.2.10.0030.0338.88
5.2.00.0040.0288.74
5.1.60.0020.0268.02
5.1.50.0030.0328.02
5.1.40.0060.0278.01
5.1.30.0070.0278.35
5.1.20.0030.0268.38
5.1.10.0050.0328.11
5.1.00.0020.0268.10
5.0.50.0030.0236.58
5.0.40.0020.0266.43
5.0.30.0040.0296.25
5.0.20.0020.0206.22
5.0.10.0040.0216.20
5.0.00.0040.0356.19
4.4.90.0030.0244.78
4.4.80.0050.0124.75
4.4.70.0020.0164.76
4.4.60.0010.0164.76
4.4.50.0030.0154.77
4.4.40.0020.0254.70
4.4.30.0010.0174.75
4.4.20.0010.0164.84
4.4.10.0010.0264.85
4.4.00.0020.0254.76
4.3.110.0030.0204.67
4.3.100.0010.0214.66
4.3.90.0060.0134.63
4.3.80.0050.0224.58
4.3.70.0030.0144.63
4.3.60.0020.0154.63
4.3.50.0030.0154.63
4.3.40.0030.0234.54
4.3.30.0010.0163.27
4.3.20.0040.0143.24
4.3.10.0030.0143.20
4.3.00.0000.01313.14

preferences:
37.37 ms | 401 KiB | 5 Q