3v4l.org

run code in 300+ PHP versions simultaneously
<?php $params = array("full"); $route = "/user/[a-z0-9:username]+"; $path = "/user/l33t"; $reg = str_replace('/','\/',preg_replace_callback('~\[([a-z0-9\.\-_\+]+)\:([a-z0-9\_]+)\](\+|\*|\{[0-9]+(?:,[0-9]+)?\})?~', function($matches) use(&$params) { $params[] = $matches[2]; return '([' . $matches[1] . ']' . $matches[3] . ')'; }, $route)); var_dump(preg_match('~^' . $reg . '$~',$path, $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.60.0120.00316.75
8.3.50.0030.01222.08
8.3.40.0110.00719.08
8.3.30.0140.00019.21
8.3.20.0080.00020.34
8.3.10.0080.00023.56
8.3.00.0030.00519.05
8.2.180.0040.01218.41
8.2.170.0180.00322.96
8.2.160.0030.01720.57
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0040.00421.05
8.2.110.0030.00622.39
8.2.100.0040.00818.03
8.2.90.0040.00419.22
8.2.80.0040.00417.97
8.2.70.0050.00317.75
8.2.60.0060.00618.05
8.2.50.0000.00818.07
8.2.40.0030.00620.00
8.2.30.0040.00418.23
8.2.20.0080.00017.84
8.2.10.0030.00518.12
8.2.00.0040.00417.98
8.1.280.0110.00725.92
8.1.270.0040.00423.96
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0090.00023.96
8.1.230.0040.00719.02
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0000.01017.35
8.1.190.0060.00317.48
8.1.180.0000.00918.10
8.1.170.0050.00318.73
8.1.160.0030.00622.11
8.1.150.0040.00418.71
8.1.140.0040.00417.57
8.1.130.0000.00817.86
8.1.120.0000.00817.50
8.1.110.0000.00817.58
8.1.100.0000.00717.62
8.1.90.0040.00417.64
8.1.80.0070.00017.52
8.1.70.0070.00017.61
8.1.60.0000.01217.75
8.1.50.0060.00317.71
8.1.40.0000.00817.57
8.1.30.0000.00817.74
8.1.20.0000.00817.78
8.1.10.0040.00417.79
8.1.00.0000.00917.61
8.0.300.0040.00418.77
8.0.290.0000.00717.15
8.0.280.0000.00718.48
8.0.270.0070.00017.30
8.0.260.0030.00317.34
8.0.250.0000.00717.07
8.0.240.0040.00417.07
8.0.230.0080.00017.17
8.0.220.0000.01017.05
8.0.210.0040.00417.05
8.0.200.0060.00017.18
8.0.190.0000.00817.06
8.0.180.0040.00416.97
8.0.170.0000.00917.07
8.0.160.0050.00316.94
8.0.150.0050.00516.98
8.0.140.0030.00717.04
8.0.130.0000.00613.48
8.0.120.0050.00316.98
8.0.110.0000.00717.02
8.0.100.0030.00517.07
8.0.90.0080.00017.05
8.0.80.0090.00917.11
8.0.70.0000.00717.02
8.0.60.0000.00816.84
8.0.50.0080.00017.07
8.0.30.0110.00717.09
8.0.20.0110.01217.46
8.0.10.0040.00417.19
8.0.00.0130.00817.07
7.4.330.0070.00015.00
7.4.320.0030.00316.79
7.4.300.0000.00616.73
7.4.290.0000.00816.75
7.4.280.0000.00816.70
7.4.270.0000.00716.73
7.4.260.0040.00416.75
7.4.250.0040.00416.64
7.4.240.0000.00716.65
7.4.230.0030.00516.55
7.4.220.0100.00616.75
7.4.210.0060.01016.74
7.4.200.0040.00416.70
7.4.190.0000.00716.78
7.4.160.0140.00316.59
7.4.150.0190.00317.40
7.4.140.0160.00817.86
7.4.130.0080.01016.76
7.4.120.0100.00816.59
7.4.110.0100.01016.74
7.4.100.0030.01616.73
7.4.90.0100.00616.87
7.4.80.0090.01219.39
7.4.70.0090.00916.52
7.4.60.0120.00916.70
7.4.50.0080.00416.60
7.4.40.0100.01016.73
7.4.30.0170.00016.82
7.4.10.0030.01616.63
7.4.00.0090.00815.88
7.3.330.0030.00313.47
7.3.320.0050.00013.50
7.3.310.0040.00416.50
7.3.300.0040.00416.53
7.3.290.0070.01316.43
7.3.280.0090.00916.44
7.3.270.0070.01017.40
7.3.260.0210.00916.84
7.3.250.0080.01316.61
7.3.240.0140.00316.71
7.3.230.0040.01216.71
7.3.210.0120.00816.49
7.3.200.0130.00419.39
7.3.190.0190.00016.52
7.3.180.0120.00316.52
7.3.170.0120.00616.52
7.3.160.0090.00616.63
7.3.130.0100.01016.54
7.3.120.0050.01015.85
7.3.110.0030.01016.55
7.3.100.0000.01116.54
7.3.90.0080.00416.45
7.3.80.0120.00316.33
7.3.70.0070.00716.59
7.3.60.0120.00416.48
7.3.50.0060.01016.44
7.3.40.0040.01116.44
7.3.30.0080.00416.55
7.3.20.0090.00618.32
7.3.10.0070.01017.25
7.3.00.0070.00717.10
7.2.330.0150.00316.83
7.2.320.0090.00916.86
7.2.310.0090.00816.65
7.2.300.0110.00616.82
7.2.290.0080.01116.80
7.2.260.0110.01116.92
7.2.250.0120.00916.94
7.2.240.0060.01016.90
7.2.230.0110.00416.66
7.2.220.0000.01416.90
7.2.210.0040.01216.66
7.2.200.0060.00616.77
7.2.190.0130.00316.71
7.2.180.0030.01316.64
7.2.170.0000.01116.73
7.2.160.0040.01116.66
7.2.150.0100.00718.52
7.2.140.0040.01118.63
7.2.130.0070.01117.65
7.2.120.0100.00817.68
7.2.110.0130.00617.71
7.2.100.0160.00817.70
7.2.90.0070.00817.59
7.2.80.0150.00817.61
7.2.70.0120.00617.47
7.2.60.0070.01217.29
7.2.50.0070.01217.68
7.2.40.0100.01517.51
7.2.30.0040.01317.68
7.2.20.0190.01117.70
7.2.10.0120.00817.62
7.2.00.0080.00618.41
7.1.330.0120.00317.48
7.1.320.0000.01117.47
7.1.310.0090.00317.75
7.1.300.0060.00917.50
7.1.290.0060.00817.59
7.1.280.0040.00817.49
7.1.270.0030.01317.63
7.1.260.0030.01117.37
7.1.250.0060.00716.48
7.1.240.0120.00317.64
7.1.230.0030.00817.41
7.1.220.0080.00617.45
7.1.210.0030.01017.29
7.1.200.0080.00816.69
7.1.190.0030.01317.59
7.1.180.0030.01017.62
7.1.170.0030.00617.50
7.1.160.0060.00817.42
7.1.150.0110.00417.52
7.1.140.0040.01117.48
7.1.130.0040.00717.40
7.1.120.0040.01217.30
7.1.110.0070.00417.48
7.1.100.0060.01317.93
7.1.90.0000.01517.53
7.1.80.0080.00417.55
7.1.70.0050.01017.49
7.1.60.0050.01018.55
7.1.50.0110.00317.38
7.1.40.0080.00817.66
7.1.30.0070.01017.43
7.1.20.0030.01017.69
7.1.10.0080.00817.56
7.1.00.0060.04019.88
7.0.330.0000.01517.27
7.0.320.0030.01016.96
7.0.310.0060.01017.25
7.0.300.0030.01017.04
7.0.290.0070.00717.16
7.0.280.0090.00617.11
7.0.270.0040.00817.02
7.0.260.0040.00717.28
7.0.250.0000.00917.33
7.0.240.0030.01217.00
7.0.230.0060.00617.40
7.0.220.0110.00017.33
7.0.210.0030.00917.18
7.0.200.0020.01016.91
7.0.190.0090.00917.12
7.0.180.0030.01417.30
7.0.170.0060.00917.38
7.0.160.0100.00317.20
7.0.150.0030.00617.28
7.0.140.0050.03719.62
7.0.130.0060.00317.16
7.0.120.0000.01117.07
7.0.110.0060.00617.31
7.0.100.0060.00617.04
7.0.90.0030.01017.34
7.0.80.0030.01017.03
7.0.70.0080.00616.99
7.0.60.0030.03518.51
7.0.50.0120.04017.44
7.0.40.0080.02517.59
7.0.30.0120.02317.58
7.0.20.0170.04417.64
7.0.10.0070.04717.66
7.0.00.0000.05517.76
5.6.400.0030.01016.11
5.6.390.0090.00616.25
5.6.380.0030.00616.27
5.6.370.0060.00915.95
5.6.360.0030.01415.63
5.6.350.0030.01115.68
5.6.340.0060.00616.36
5.6.330.0040.01516.11
5.6.320.0070.01016.43
5.6.310.0060.00915.65
5.6.300.0000.01416.25
5.6.290.0060.00315.79
5.6.280.0060.04018.63
5.6.270.0030.00616.01
5.6.260.0070.00715.88
5.6.250.0030.01215.92
5.6.240.0030.01116.05
5.6.230.0040.01216.07
5.6.220.0090.00015.89
5.6.210.0050.04318.30
5.6.200.0090.04517.21
5.6.190.0050.04418.25
5.6.180.0200.03218.30
5.6.170.0150.02618.24
5.6.160.0080.03618.23
5.6.150.0050.04317.03
5.6.140.0060.03717.04
5.6.130.0050.03317.14
5.6.120.0040.02518.42
5.6.110.0080.02318.51
5.6.100.0090.04318.57
5.6.90.0100.03618.47
5.6.80.0090.04118.10
5.6.70.0110.00416.03
5.6.60.0060.00615.88
5.6.50.0080.00816.13
5.6.40.0000.01115.87
5.6.30.0110.00715.93
5.6.20.0030.01115.86
5.6.10.0070.00715.81
5.6.00.0130.00315.77
5.5.380.0100.00315.72
5.5.370.0090.00616.17
5.5.360.0060.00615.91
5.5.350.1470.02018.16
5.5.340.0020.03016.85
5.5.330.0050.04418.03
5.5.320.0220.03518.12
5.5.310.0100.02518.25
5.5.300.0020.04716.94
5.5.290.0050.04316.98
5.5.280.0080.04818.25
5.5.270.0060.05018.44
5.5.260.0110.03618.31
5.5.250.0050.03918.27
5.5.240.0020.04517.99
5.5.230.0090.00915.82
5.5.220.0040.00715.59
5.5.210.0000.00915.84
5.5.200.0060.00615.74
5.5.190.0030.01015.68
5.5.180.0060.00915.73
5.5.170.0000.01015.88
5.5.160.0080.00415.86
5.5.150.0000.01915.72
5.5.140.0140.00316.00
5.5.130.0100.00615.95
5.5.120.0120.00316.04
5.5.110.0040.00915.69
5.5.100.0160.00015.62
5.5.90.0060.00615.66
5.5.80.0070.00715.89
5.5.70.0070.01015.89
5.5.60.0040.00916.09
5.5.50.0070.00715.95
5.5.40.0000.01515.73
5.5.30.0070.00715.88
5.5.20.0100.00716.07
5.5.10.0100.00315.95
5.5.00.0030.01215.89
5.4.450.0330.03516.16
5.4.440.0340.03515.99
5.4.430.0460.03116.08
5.4.420.0380.02816.35
5.4.410.0390.02515.89
5.4.400.0400.02915.75
5.4.390.0420.02915.92
5.4.380.0110.02915.77
5.4.370.0100.02715.53
5.4.360.0120.02715.75
5.4.350.0070.03315.73
5.4.340.0150.02515.70
5.4.330.0000.01112.72
5.4.320.0070.02012.46
5.4.310.0060.02312.63
5.4.300.0050.02712.61
5.4.290.0040.03312.64
5.4.280.0060.02312.55
5.4.270.0020.02612.49
5.4.260.0110.01912.52
5.4.250.0070.02212.50
5.4.240.0070.02312.52
5.4.230.0030.03112.49
5.4.220.0080.02412.48
5.4.210.0030.02612.46
5.4.200.0060.03312.46
5.4.190.0120.02812.43
5.4.180.0100.03112.44
5.4.170.0090.02912.53
5.4.160.0080.03412.51
5.4.150.0080.03312.54
5.4.140.0070.02812.35
5.4.130.0050.02512.36
5.4.120.0070.02112.51
5.4.110.0070.02612.35
5.4.100.0050.02312.46
5.4.90.0040.02412.32
5.4.80.0040.03612.37
5.4.70.0120.04012.39
5.4.60.0100.02412.45
5.4.50.0060.02812.40
5.4.40.0070.02712.45
5.4.30.0100.03412.47
5.4.20.0090.03512.34
5.4.10.0080.04612.30
5.4.00.0050.04612.11
5.3.290.0060.02213.07
5.3.280.0040.02612.90
5.3.270.0070.02313.00
5.3.260.0060.02812.89
5.3.250.0050.03112.88
5.3.240.0110.02712.88
5.3.230.0130.03112.95
5.3.220.0160.04513.00
5.3.210.0070.03412.92
5.3.200.0060.03512.86
5.3.190.0110.03612.92
5.3.180.0100.03112.94
5.3.170.0090.03813.01
5.3.160.0090.03112.98
5.3.150.0120.03013.01
5.3.140.0090.04613.01
5.3.130.0090.02913.05
5.3.120.0100.03012.91
5.3.110.0050.03312.85
5.3.100.0130.02712.71
5.3.90.0090.02812.64
5.3.80.0060.03212.59
5.3.70.0100.05212.68
5.3.60.0070.02812.58
5.3.50.0040.02712.53
5.3.40.0080.02912.55
5.3.30.0070.04112.47
5.3.20.0070.03112.42
5.3.10.0100.02612.33
5.3.00.0030.03512.32
5.2.170.0070.0459.18
5.2.160.0110.0609.18
5.2.150.0100.0499.18
5.2.140.0050.0499.18
5.2.130.0070.0609.14
5.2.120.0060.0409.14
5.2.110.0040.0449.14
5.2.100.0100.0459.14
5.2.90.0080.0439.14
5.2.80.0050.0469.14
5.2.70.0060.0439.14
5.2.60.0090.0439.09
5.2.50.0060.0429.06
5.2.40.0040.0369.04
5.2.30.0060.0309.01
5.2.20.0050.0339.00
5.2.10.0080.0338.92
5.2.00.0060.0398.79
5.1.60.0050.0338.07
5.1.50.0070.0328.07
5.1.40.0060.0338.05
5.1.30.0040.0378.40
5.1.20.0030.0398.42
5.1.10.0090.0308.14
5.1.00.0050.0368.14
5.0.50.0090.0236.63
5.0.40.0070.0246.48
5.0.30.0060.0406.29
5.0.20.0060.0196.27
5.0.10.0040.0216.25
5.0.00.0030.0346.24
4.4.90.0050.0174.78
4.4.80.0060.0124.76
4.4.70.0030.0154.75
4.4.60.0030.0204.75
4.4.50.0030.0214.77
4.4.40.0050.0254.71
4.4.30.0000.0184.76
4.4.20.0020.0194.85
4.4.10.0050.0144.85
4.4.00.0020.0274.76
4.3.110.0060.0144.67
4.3.100.0040.0144.66
4.3.90.0020.0164.64
4.3.80.0020.0274.59
4.3.70.0040.0174.63
4.3.60.0050.0204.63
4.3.50.0050.0224.63
4.3.40.0040.0324.54
4.3.30.0030.0233.28
4.3.20.0050.0203.26
4.3.10.0050.0193.23
4.3.00.0170.0178.39

preferences:
54.45 ms | 401 KiB | 5 Q