3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'application/vnd.github.full+json'; function match($string) { $pattern = '#(?P<maintype>[a-z].*)/(?P<fullsubtype>(?P<subtype>[a-z0-9.-]*)([+](?P<submediatype>[a-z]*))?)#i'; preg_match($pattern, $string, $matches); return $matches; } var_dump(match('application/vnd.github.full+json')); var_dump(match('text/html'));

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.0090.00618.84
8.3.30.0100.00318.67
8.3.20.0030.00518.73
8.3.10.0060.00320.48
8.3.00.0040.00419.38
8.2.170.0060.00822.96
8.2.160.0160.00020.52
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00720.96
8.2.110.0040.00419.39
8.2.100.0120.00017.78
8.2.90.0000.00818.98
8.2.80.0040.00419.41
8.2.70.0060.00317.63
8.2.60.0000.00817.91
8.2.50.0050.00318.07
8.2.40.0000.00718.09
8.2.30.0050.00217.88
8.2.20.0040.00517.39
8.2.10.0040.00417.52
8.2.00.0040.00417.60
8.1.270.0050.00323.99
8.1.260.0090.00626.35
8.1.250.0000.00728.09
8.1.240.0080.00323.65
8.1.230.0120.00420.88
8.1.220.0030.00618.77
8.1.210.0070.00019.10
8.1.200.0000.00817.23
8.1.190.0000.00717.39
8.1.180.0080.00018.88
8.1.170.0040.00418.86
8.1.160.0040.00418.75
8.1.150.0040.00418.46
8.1.140.0040.00417.36
8.1.130.0000.00717.76
8.1.120.0000.00717.23
8.1.110.0000.00817.30
8.1.100.0070.00017.32
8.1.90.0030.00517.30
8.1.80.0060.00317.16
8.1.70.0000.00717.27
8.1.60.0040.00417.27
8.1.50.0000.00717.31
8.1.40.0000.00817.30
8.1.30.0000.00817.39
8.1.20.0060.00317.36
8.1.10.0040.00417.42
8.1.00.0000.00717.35
8.0.300.0070.00019.81
8.0.290.0000.00716.63
8.0.280.0030.00318.32
8.0.270.0040.00417.08
8.0.260.0030.00316.80
8.0.250.0070.00016.84
8.0.240.0000.00716.97
8.0.230.0040.00416.96
8.0.220.0000.00616.82
8.0.210.0080.00016.86
8.0.200.0040.00416.87
8.0.190.0070.00016.94
8.0.180.0000.00716.78
8.0.170.0030.00616.78
8.0.160.0000.00816.85
8.0.150.0000.00716.86
8.0.140.0040.00716.81
8.0.130.0030.00313.36
8.0.120.0040.00416.77
8.0.110.0000.00716.94
8.0.100.0070.00016.99
8.0.90.0000.00716.85
8.0.80.0100.00716.91
8.0.70.0000.00716.74
8.0.60.0040.00416.68
8.0.50.0070.00016.77
8.0.30.0090.00916.97
8.0.20.0140.01016.81
8.0.10.0070.00016.95
8.0.00.0110.00716.73
7.4.330.0060.00013.02
7.4.320.0040.00416.61
7.4.300.0030.00316.81
7.4.290.0080.00016.74
7.4.280.0030.00616.87
7.4.270.0050.00316.80
7.4.260.0060.00013.39
7.4.250.0030.00616.77
7.4.240.0000.00816.74
7.4.230.0050.00216.62
7.4.220.0060.02016.82
7.4.210.0040.01116.92
7.4.200.0000.00716.82
7.4.190.0030.00316.97
7.4.160.0070.01616.75
7.4.150.0110.00716.48
7.4.140.0120.00616.52
7.4.130.0140.00416.47
7.4.120.0180.00016.50
7.4.110.0080.01016.87
7.4.100.0070.01116.67
7.4.90.0160.00716.61
7.4.80.0100.01319.39
7.4.70.0040.01616.49
7.4.60.0130.00316.68
7.4.50.0000.01016.70
7.4.40.0100.00716.65
7.4.30.0090.00616.52
7.4.10.0070.01314.92
7.4.00.0070.00915.13
7.3.330.0000.00713.29
7.3.320.0030.00313.27
7.3.310.0000.00716.46
7.3.300.0030.00316.41
7.3.290.0070.01016.45
7.3.280.0110.00816.42
7.3.270.0120.01216.91
7.3.260.0210.00416.36
7.3.250.0120.01016.49
7.3.240.0130.01016.72
7.3.230.0140.00616.61
7.3.210.0120.00616.41
7.3.200.0030.01916.81
7.3.190.0150.00316.40
7.3.180.0120.00616.71
7.3.170.0140.00316.43
7.3.160.0060.01016.68
7.3.130.0070.01314.94
7.3.120.0030.01314.98
7.3.110.0110.01114.97
7.3.100.0030.01215.20
7.3.90.0140.00014.89
7.3.80.0040.01114.91
7.3.70.0030.00914.71
7.3.60.0100.00714.92
7.3.50.0040.00814.85
7.3.40.0040.00814.80
7.3.30.0040.00814.86
7.3.20.0000.01416.68
7.3.10.0080.00416.58
7.3.00.0070.00716.79
7.2.330.0080.01116.58
7.2.320.0030.01416.70
7.2.310.0060.01316.54
7.2.300.0100.00616.41
7.2.290.0070.01016.38
7.2.260.0090.00915.19
7.2.250.0070.01115.05
7.2.240.0080.00815.00
7.2.230.0070.00715.14
7.2.220.0070.00715.00
7.2.210.0040.00715.09
7.2.200.0120.00315.15
7.2.190.0000.01314.94
7.2.180.0030.01014.79
7.2.170.0060.00914.89
7.2.160.0100.00315.05
7.2.150.0070.01016.93
7.2.140.0100.01016.89
7.2.130.0080.00416.69
7.2.120.0000.02016.74
7.2.110.0060.01316.69
7.2.100.0070.00716.67
7.2.90.0030.01016.69
7.2.80.0140.00416.97
7.2.70.0070.01117.08
7.2.60.0070.01016.98
7.2.50.0060.00916.89
7.2.40.0070.00416.99
7.2.30.0000.01716.94
7.2.20.0090.00616.97
7.2.10.0060.01316.99
7.2.00.0040.00818.17
7.1.330.0110.00415.96
7.1.320.0090.00315.79
7.1.310.0070.00416.04
7.1.300.0070.00315.67
7.1.290.0000.01115.79
7.1.280.0100.00316.07
7.1.270.0110.00716.00
7.1.260.0120.00315.93
7.1.250.0000.01115.86
7.1.240.0100.00715.85
7.1.230.0040.01416.04
7.1.220.0070.01015.74
7.1.210.0030.01015.81
7.1.200.0030.01516.02
7.1.190.0040.01116.04
7.1.180.0000.00915.86
7.1.170.0100.00615.90
7.1.160.0100.00315.87
7.1.150.0040.00815.82
7.1.140.0070.00715.86
7.1.130.0100.00315.97
7.1.120.0040.00815.75
7.1.110.0040.01116.08
7.1.100.0070.00617.08
7.1.90.0030.00615.76
7.1.80.0030.01015.71
7.1.70.0050.01016.50
7.1.60.0090.01017.58
7.1.50.0100.01016.49
7.1.40.0090.00615.86
7.1.30.0060.00615.59
7.1.20.0030.01016.02
7.1.10.0030.00715.84
7.1.00.0060.03919.11
7.0.330.0030.01215.52
7.0.320.0100.00315.49
7.0.310.0100.00015.61
7.0.300.0120.00315.34
7.0.290.0030.00615.46
7.0.280.0030.01015.15
7.0.270.0070.01015.57
7.0.260.0030.01415.67
7.0.250.0030.01415.33
7.0.240.0110.00415.43
7.0.230.0100.00715.70
7.0.220.0070.00715.54
7.0.210.0040.01115.39
7.0.200.0030.00816.13
7.0.190.0090.00615.16
7.0.180.0110.00415.42
7.0.170.0040.01115.72
7.0.160.0090.00315.52
7.0.150.0090.00315.38
7.0.140.0030.03818.72
7.0.130.0000.01715.61
7.0.120.0030.04218.96
7.0.110.0030.00715.75
7.0.100.0060.00615.65
7.0.90.0070.00715.58
7.0.80.0060.00315.23
7.0.70.0000.01415.66
7.0.60.0080.04117.69
7.0.50.0100.03016.81
7.0.40.0070.03716.80
7.0.30.0200.02716.81
7.0.20.0250.03616.85
7.0.10.0170.04316.77
7.0.00.0050.04516.87
5.6.400.0030.01614.21
5.6.390.0090.00014.50
5.6.380.0180.00014.43
5.6.370.0060.00914.61
5.6.360.0040.01114.09
5.6.350.0070.00714.59
5.6.340.0120.00314.31
5.6.330.0120.00314.31
5.6.320.0040.01214.18
5.6.310.0070.01014.47
5.6.300.0070.00713.94
5.6.290.0060.00914.47
5.6.280.0030.04417.70
5.6.270.0070.01014.10
5.6.260.0060.00614.09
5.6.250.0030.01014.49
5.6.240.0000.01614.35
5.6.230.0030.01014.25
5.6.220.0030.01014.18
5.6.210.0080.03817.62
5.6.200.0090.03916.37
5.6.190.0070.02317.28
5.6.180.0250.03817.23
5.6.170.0130.02717.34
5.6.160.0070.02817.31
5.6.150.0120.02516.19
5.6.140.0060.02816.31
5.6.130.0090.02716.13
5.6.120.0030.03417.77
5.6.110.0090.02217.73
5.6.100.0060.04117.61
5.6.90.0060.04617.64
5.6.80.0140.03717.32
5.6.70.0150.02517.29
5.6.60.0060.01214.22
5.6.50.0030.01514.43
5.6.40.0060.00914.20
5.6.30.0100.00314.23
5.6.20.0120.00314.15
5.6.10.0050.00514.06
5.6.00.0040.00414.20
5.5.380.0000.00914.27
5.5.370.0100.00314.32
5.5.360.0030.01414.01
5.5.350.0210.04117.23
5.5.340.0020.03215.88
5.5.330.0050.02717.18
5.5.320.0090.04517.11
5.5.310.0150.03017.15
5.5.300.0090.04215.98
5.5.290.0120.03716.15
5.5.280.0050.04717.54
5.5.270.0070.04217.45
5.5.260.0030.04717.68
5.5.250.0100.04317.30
5.5.240.0030.03317.05
5.5.230.0100.00614.34
5.5.220.0030.01314.20
5.5.210.0070.00714.26
5.5.200.0080.00513.88
5.5.190.0160.00014.07
5.5.180.0080.00314.23
5.5.170.0080.00513.87
5.5.160.0100.00614.29
5.5.150.0040.01113.90
5.5.140.0080.00814.29
5.5.130.0040.00713.87
5.5.120.0110.00413.77
5.5.110.0070.00314.25
5.5.100.0060.00913.89
5.5.90.0100.00714.00
5.5.80.0030.01114.23
5.5.70.0030.01014.36
5.5.60.0030.01013.89
5.5.50.0100.00314.01
5.5.40.0030.01314.36
5.5.30.0070.01013.96
5.5.20.0040.00814.11
5.5.10.0070.00714.28
5.5.00.0000.00913.75
5.4.450.0070.02315.22
5.4.440.0060.03515.20
5.4.430.0080.04215.06
5.4.420.0050.02215.06
5.4.410.0070.03815.23
5.4.400.0030.04215.02
5.4.390.0060.03414.96
5.4.380.0100.01815.17
5.4.370.0080.02315.04
5.4.360.0050.04014.90
5.4.350.0070.04214.99
5.4.340.0090.02815.08
5.4.330.0040.00710.68
5.4.320.0100.04015.04
5.4.310.0030.03714.77
5.4.300.0080.03914.77
5.4.290.0000.03114.95
5.4.280.0030.02814.91
5.4.270.0100.04215.06
5.4.260.0090.03814.99
5.4.250.0010.04115.02
5.4.240.0020.03715.05
5.4.230.0080.02514.95
5.4.220.0120.03715.08
5.4.210.0030.02914.94
5.4.200.0080.02315.08
5.4.190.0050.03914.96
5.4.180.0060.02714.98
5.4.170.0070.02515.06
5.4.160.0070.02415.08
5.4.150.0060.02914.92
5.4.140.0110.02713.74
5.4.130.0070.02013.78
5.4.120.0090.03513.87
5.4.110.0050.03613.83
5.4.100.0050.02113.72
5.4.90.0060.02113.65
5.4.80.0070.02013.70
5.4.70.0040.04013.64
5.4.60.0090.03513.77
5.4.50.0050.04013.80
5.4.40.0050.04213.70
5.4.30.0030.02613.78
5.4.20.0090.03713.57
5.4.10.0050.03613.81
5.4.00.0140.03013.52
5.3.290.0130.03212.67
5.3.280.0070.03012.63
5.3.270.0040.02712.64
5.3.260.0060.03812.60
5.3.250.0020.04012.71
5.3.240.0070.02512.64
5.3.230.0050.04212.71
5.3.220.0030.02212.63
5.3.210.0070.03912.62
5.3.200.0060.04012.63
5.3.190.0050.04312.63
5.3.180.0030.02512.64
5.3.170.0020.03712.62
5.3.160.0020.02912.64
5.3.150.0090.01912.70
5.3.140.0090.03912.69
5.3.130.0050.03112.63
5.3.120.0050.03812.62
5.3.110.0020.03612.60
5.3.100.0090.02712.38
5.3.90.0080.03812.38
5.3.80.0030.02112.43
5.3.70.0020.03912.29
5.3.60.0020.02512.32
5.3.50.0060.01912.31
5.3.40.0050.02012.38
5.3.30.0050.02312.26
5.3.20.0050.02112.27
5.3.10.0020.03312.19
5.3.00.0070.03012.18
5.2.170.0030.03011.16
5.2.160.0170.05011.20
5.2.150.0030.03011.20
5.2.140.0130.05711.11
5.2.130.0100.06011.13
5.2.120.0070.06011.16
5.2.110.0000.04011.11
5.2.100.0030.06311.26
5.2.90.0000.06711.12
5.2.80.0030.07011.13
5.2.70.0030.05711.16
5.2.60.0070.05011.05
5.2.50.0100.06311.02
5.2.40.0030.04710.93
5.2.30.0070.04310.99
5.2.20.0170.05310.92
5.2.10.0070.05710.90
5.2.00.0100.04010.72
5.1.60.0030.0279.90
5.1.50.0030.04010.13
5.1.40.0030.0309.88
5.1.30.0030.02710.26
5.1.20.0030.02710.31
5.1.10.0100.05010.09
5.1.00.0000.03710.09
5.0.50.0000.0309.75
5.0.40.0070.0409.75
5.0.30.0030.0609.75
5.0.20.0000.0409.75
5.0.10.0100.0339.75
5.0.00.0130.0509.75
4.4.90.0000.0379.75
4.4.80.0000.0209.75
4.4.70.0030.0209.75
4.4.60.0000.0209.75
4.4.50.0030.0379.75
4.4.40.0000.0579.75
4.4.30.0070.0209.75
4.4.20.0000.0179.75
4.4.10.0030.0339.75
4.4.00.0000.0439.75
4.3.110.0030.0309.75
4.3.100.0000.0239.75
4.3.90.0030.0339.75
4.3.80.0000.0409.75
4.3.70.0030.0279.75
4.3.60.0030.0339.75
4.3.50.0030.0379.75
4.3.40.0030.0409.75
4.3.30.0000.0309.75
4.3.20.0070.0339.75
4.3.10.0030.0139.75
4.3.00.0000.0239.75

preferences:
47.27 ms | 400 KiB | 5 Q