3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches=array(); $string = 'This is a [templateVar]'; preg_match_all("^[^1,2,3]/", $string, $matches); var_dump($matches);

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.70.0150.00418.68
8.3.60.0030.01018.43
8.3.50.0150.00522.10
8.3.40.0110.00418.73
8.3.30.0150.00018.96
8.3.20.0050.00320.26
8.3.10.0030.00620.48
8.3.00.0030.00619.26
8.2.180.0060.01216.60
8.2.170.0040.01122.96
8.2.160.0100.00320.39
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0080.00022.10
8.2.110.0030.00721.12
8.2.100.0080.00417.71
8.2.90.0040.00417.66
8.2.80.0000.00817.97
8.2.70.0000.00917.50
8.2.60.0000.00917.91
8.2.50.0000.01018.07
8.2.40.0000.00818.22
8.2.30.0040.00719.11
8.2.20.0000.00817.55
8.2.10.0020.00518.04
8.2.00.0070.00017.48
8.1.280.0040.01125.92
8.1.270.0080.00023.92
8.1.260.0000.00726.35
8.1.250.0060.00328.09
8.1.240.0060.00322.53
8.1.230.0060.00620.95
8.1.220.0040.00417.74
8.1.210.0080.00318.85
8.1.200.0030.00617.22
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0030.00618.51
8.1.160.0070.00021.80
8.1.150.0020.00518.69
8.1.140.0050.00217.33
8.1.130.0000.00717.79
8.1.120.0040.00417.29
8.1.110.0050.00317.47
8.1.100.0070.00017.40
8.1.90.0040.00417.40
8.1.80.0000.00717.28
8.1.70.0030.00517.38
8.1.60.0060.00317.54
8.1.50.0040.00417.41
8.1.40.0000.00817.30
8.1.30.0040.00417.63
8.1.20.0040.00417.52
8.1.10.0040.00417.48
8.1.00.0030.00617.50
8.0.300.0000.00819.81
8.0.290.0000.00716.75
8.0.280.0040.00418.41
8.0.270.0000.00717.25
8.0.260.0060.00017.17
8.0.250.0000.00716.86
8.0.240.0030.00316.93
8.0.230.0070.00016.96
8.0.220.0040.00416.77
8.0.210.0000.00716.91
8.0.200.0000.00616.83
8.0.190.0000.00716.93
8.0.180.0070.00016.99
8.0.170.0050.00316.88
8.0.160.0000.00716.74
8.0.150.0030.00316.82
8.0.140.0040.00316.81
8.0.130.0050.00013.34
8.0.120.0040.00416.73
8.0.110.0000.00716.79
8.0.100.0040.00416.67
8.0.90.0040.00416.75
8.0.80.0100.01016.84
8.0.70.0000.00816.77
8.0.60.0030.00516.91
8.0.50.0070.00016.92
8.0.30.0130.00816.96
8.0.20.0100.01417.40
8.0.10.0050.00216.89
8.0.00.0070.01416.63
7.4.330.0030.00315.16
7.4.320.0000.00616.45
7.4.300.0070.00016.40
7.4.290.0000.00716.34
7.4.280.0030.00716.31
7.4.270.0040.00416.43
7.4.260.0040.00416.42
7.4.250.0030.00516.53
7.4.240.0040.00416.44
7.4.230.0040.00416.41
7.4.220.0140.00316.55
7.4.210.0100.00316.45
7.4.200.0030.00316.55
7.4.160.0140.00716.43
7.4.150.0090.00917.40
7.4.140.0100.00717.86
7.4.130.0090.00816.46
7.4.120.0030.01416.35
7.4.110.0070.01016.52
7.4.100.0070.01116.27
7.4.90.0090.00616.36
7.4.80.0100.00719.37
7.4.70.0060.01116.34
7.4.60.0120.00616.45
7.4.50.0000.00416.01
7.4.40.0040.01116.58
7.4.30.0130.00716.48
7.4.00.0030.01014.97
7.3.330.0040.00413.10
7.3.320.0020.00213.10
7.3.310.0030.00316.18
7.3.300.0040.00416.18
7.3.290.0060.00116.18
7.3.280.0110.00816.21
7.3.270.0130.00917.40
7.3.260.0120.01216.19
7.3.250.0140.00416.14
7.3.240.0060.01016.16
7.3.230.0130.00416.39
7.3.210.0100.00716.20
7.3.200.0060.01019.39
7.3.190.0120.00416.52
7.3.180.0040.01116.26
7.3.170.0060.00916.27
7.3.160.0060.01116.18
7.3.120.0000.01814.32
7.3.110.0030.01114.88
7.3.100.0110.00414.58
7.3.90.0000.01114.69
7.3.80.0070.00714.71
7.3.70.0060.00914.75
7.3.60.0080.00414.54
7.3.50.0030.00914.82
7.3.40.0080.00814.51
7.3.30.0040.00714.39
7.3.20.0040.01116.36
7.3.10.0030.01316.46
7.3.00.0030.01316.76
7.2.330.0070.01016.35
7.2.320.0190.00016.27
7.2.310.0090.00916.47
7.2.300.0070.01016.55
7.2.290.0060.01116.24
7.2.240.0000.01415.03
7.2.230.0000.01414.57
7.2.220.0060.00914.52
7.2.210.0090.00614.67
7.2.200.0000.01615.02
7.2.190.0060.00914.68
7.2.180.0030.01414.75
7.2.170.0030.01014.86
7.2.160.0030.01314.66
7.2.150.0040.01116.77
7.2.140.0060.01016.52
7.2.130.0100.00716.78
7.2.120.0080.00416.71
7.2.110.0070.01016.50
7.2.100.0040.01216.52
7.2.90.0080.00416.73
7.2.80.0000.01816.74
7.2.70.0030.01316.89
7.2.60.0100.00516.69
7.2.50.0040.00716.81
7.2.40.0000.01416.60
7.2.30.0040.01116.80
7.2.20.0000.00916.68
7.2.10.0080.00616.75
7.2.00.0060.01017.90
7.1.330.0060.00615.84
7.1.320.0060.01015.75
7.1.310.0070.00715.77
7.1.300.0070.00715.69
7.1.290.0050.00515.75
7.1.280.0000.01515.75
7.1.270.0030.01015.75
7.1.260.0030.01115.69
7.1.250.0130.00315.72
7.1.200.0000.01415.41
7.1.100.0000.01117.81
7.1.70.0070.00016.80
7.1.60.0160.00719.32
7.1.50.0160.00616.81
7.1.00.0000.08022.41
7.0.200.0030.00716.39
7.0.140.0100.06721.99
7.0.60.0070.05719.91
7.0.50.0130.04317.84
7.0.40.0070.09320.24
7.0.30.0630.07020.30
7.0.20.0300.06720.19
7.0.10.0230.04020.33
7.0.00.0170.07320.09
5.6.280.0000.07721.11
5.6.210.0130.07320.56
5.6.200.0100.04718.22
5.6.190.0070.05020.49
5.6.180.2930.04320.39
5.6.170.0330.07720.45
5.6.160.0000.04320.51
5.6.150.0070.08018.13
5.6.140.0070.08318.19
5.6.130.0070.08718.12
5.6.120.0130.08021.11
5.6.110.0100.09021.10
5.6.100.0130.07721.00
5.6.90.0100.05720.94
5.6.80.0100.08020.48
5.6.70.4430.04320.23
5.5.350.0270.08320.41
5.5.340.0100.05017.96
5.5.330.0130.07720.21
5.5.320.0230.05320.20
5.5.310.0200.04320.34
5.5.300.0000.06317.98
5.5.290.0130.03317.98
5.5.280.0070.06320.86
5.5.270.0100.04720.67
5.5.260.0000.04720.86
5.5.250.0030.06720.57
5.5.240.0030.08320.03
5.4.450.0930.04019.41
5.4.440.0500.05319.33
5.4.430.0700.06719.16
5.4.420.0630.00019.15
5.4.410.0630.00019.37
5.4.400.0700.00019.13
5.4.390.0630.00019.18
5.4.380.0670.00019.00
5.4.370.0830.00019.14
5.4.360.0770.00019.15
5.4.350.0630.00018.96
5.4.340.0630.00019.06
5.4.320.0080.03812.45
5.4.310.0070.03912.45
5.4.300.0040.04012.45
5.4.290.0080.03712.45
5.4.280.0070.03612.35
5.4.270.0040.03912.34
5.4.260.0090.03712.35
5.4.250.0040.03812.35
5.4.240.0060.03912.35
5.4.230.0050.04012.34
5.4.220.0060.03512.34
5.4.210.0070.03312.34
5.4.200.0060.03612.34
5.4.190.0060.03512.33
5.4.180.0050.04512.33
5.4.170.0040.03712.34
5.4.160.0060.03612.34
5.4.150.0040.04612.34
5.4.140.0100.03812.02
5.4.130.0090.03212.01
5.4.120.0070.03311.97
5.4.110.0040.03611.97
5.4.100.0100.02911.96
5.4.90.0080.03411.96
5.4.80.0030.03911.96
5.4.70.0020.03811.96
5.4.60.0050.03711.96
5.4.50.0050.03511.96
5.4.40.0030.03711.95
5.4.30.0050.03611.95
5.4.20.0100.03011.95
5.4.10.0030.03611.95
5.4.00.0110.03011.43
5.3.290.0090.04312.80
5.3.280.0100.03312.71
5.3.270.0080.03612.73
5.3.260.0050.03912.72
5.3.250.0030.03812.72
5.3.240.0070.04412.72
5.3.230.0060.03612.71
5.3.220.0050.03712.68
5.3.210.0090.03512.68
5.3.200.0080.03412.68
5.3.190.0020.04012.67
5.3.180.0070.03412.67
5.3.170.0100.03112.67
5.3.160.0070.03512.68
5.3.150.0050.03712.68
5.3.140.0050.03712.66
5.3.130.0090.03712.65
5.3.120.0110.03312.66
5.3.110.0070.03712.66
5.3.100.0080.03312.12
5.3.90.0060.03512.08
5.3.80.0070.04212.07
5.3.70.0050.03712.07
5.3.60.0040.03812.06
5.3.50.0080.04112.00
5.3.40.0070.03412.00
5.3.30.0060.03211.94
5.3.20.0060.03811.72
5.3.10.0060.03811.69
5.3.00.0080.03311.67
5.2.170.0030.0389.18
5.2.160.0070.0289.18
5.2.150.0030.0319.18
5.2.140.0060.0289.17
5.2.130.0040.0299.14
5.2.120.0060.0299.13
5.2.110.0070.0269.14
5.2.100.0060.0269.14
5.2.90.0030.0299.14
5.2.80.0050.0299.13
5.2.70.0070.0279.13
5.2.60.0070.0269.08
5.2.50.0050.0289.05
5.2.40.0070.0339.03
5.2.30.0060.0319.00
5.2.20.0080.0269.00
5.2.10.0040.0348.91
5.2.00.0030.0318.78
5.1.60.0080.0228.06
5.1.50.0030.0268.06
5.1.40.0060.0328.04
5.1.30.0060.0248.39
5.1.20.0050.0298.41
5.1.10.0040.0318.13
5.1.00.0030.0308.14
5.0.50.0030.0306.62
5.0.40.0030.0196.47
5.0.30.0060.0286.29
5.0.20.0040.0206.26
5.0.10.0020.0206.23
5.0.00.0040.0306.22
4.4.90.0030.0234.78
4.4.80.0060.0164.75
4.4.70.0030.0154.75
4.4.60.0040.0134.75
4.4.50.0000.0174.77
4.4.40.0040.0234.71
4.4.30.0030.0174.76
4.4.20.0040.0154.84
4.4.10.0020.0184.85
4.4.00.0050.0224.75
4.3.110.0030.0154.67
4.3.100.0010.0244.67
4.3.90.0040.0144.63
4.3.80.0030.0244.58
4.3.70.0040.0134.63
4.3.60.0040.0134.63
4.3.50.0010.0174.63
4.3.40.0020.0244.54
4.3.30.0010.0183.28
4.3.20.0020.0163.26
4.3.10.0030.0143.22
4.3.00.0370.01314.30

preferences:
55.42 ms | 401 KiB | 5 Q