3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_match("%^/(order|product|product_snap|edit|user|buy|home)/([0-9a-z_]+)$%u", "/user/123", $result); print_r($result);

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.00018.20
8.3.60.0100.01018.30
8.3.50.0110.00722.05
8.3.40.0130.00618.83
8.3.30.0080.00818.82
8.3.20.0040.00418.85
8.3.10.0090.00020.48
8.3.00.0040.00423.57
8.2.180.0160.00616.88
8.2.170.0070.00722.96
8.2.160.0070.00720.35
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0000.01017.63
8.2.110.0070.00322.38
8.2.100.0040.00817.97
8.2.90.0060.00319.22
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0040.00418.03
8.2.30.0040.00419.88
8.2.20.0030.00617.68
8.2.10.0000.00817.78
8.2.00.0000.00817.63
8.1.280.0110.00725.92
8.1.270.0040.00423.99
8.1.260.0150.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00420.59
8.1.230.0000.01220.96
8.1.220.0000.00818.77
8.1.210.0050.00318.77
8.1.200.0030.00617.25
8.1.190.0030.00517.39
8.1.180.0030.00618.10
8.1.170.0000.00918.59
8.1.160.0040.00418.66
8.1.150.0040.00418.66
8.1.140.0000.00817.48
8.1.130.0000.00717.83
8.1.120.0040.00417.39
8.1.110.0030.00617.49
8.1.100.0040.00417.37
8.1.90.0040.00417.50
8.1.80.0070.00017.45
8.1.70.0040.00417.35
8.1.60.0000.00817.56
8.1.50.0070.00017.49
8.1.40.0050.00317.57
8.1.30.0000.00817.59
8.1.20.0030.00617.61
8.1.10.0080.00017.51
8.1.00.0040.00417.43
8.0.300.0080.00019.81
8.0.290.0050.00316.88
8.0.280.0000.00718.40
8.0.270.0070.00017.12
8.0.260.0030.00318.35
8.0.250.0000.00717.02
8.0.240.0110.00017.04
8.0.230.0030.00316.96
8.0.220.0040.00417.02
8.0.210.0070.00016.98
8.0.200.0000.00817.08
8.0.190.0000.00817.03
8.0.180.0040.00416.98
8.0.170.0040.00317.04
8.0.160.0000.00716.91
8.0.150.0000.00916.94
8.0.140.0040.00416.83
8.0.130.0050.00013.47
8.0.120.0080.00016.91
8.0.110.0040.00416.99
8.0.100.0040.00416.80
8.0.90.0000.00816.83
8.0.80.0000.01516.98
8.0.70.0040.00416.85
8.0.60.0040.00417.02
8.0.50.0040.00417.04
8.0.30.0130.00717.02
8.0.20.0130.00717.40
8.0.10.0030.00417.00
8.0.00.0100.00916.87
7.4.330.0030.00314.78
7.4.320.0000.00616.59
7.4.300.0030.00316.64
7.4.290.0070.00016.48
7.4.280.0050.00316.44
7.4.270.0070.00016.68
7.4.260.0030.00313.37
7.4.250.0040.00416.61
7.4.240.0030.00316.50
7.4.230.0030.00316.74
7.4.220.0070.01016.50
7.4.210.0060.01016.65
7.4.200.0070.00016.77
7.4.190.0040.00416.78
7.4.160.0050.01116.47
7.4.150.0150.00317.40
7.4.140.0110.00717.86
7.4.130.0070.01016.56
7.4.120.0110.00616.64
7.4.110.0100.00716.64
7.4.100.0060.01216.70
7.4.90.0100.00716.68
7.4.80.0030.01619.37
7.4.70.0090.01116.58
7.4.60.0040.01316.33
7.4.50.0030.00516.63
7.4.40.0090.00622.27
7.4.30.0130.00716.63
7.4.00.0060.00915.00
7.3.330.0050.00013.10
7.3.320.0050.00013.18
7.3.310.0000.00716.15
7.3.300.0030.00316.39
7.3.290.0030.01416.45
7.3.280.0110.00616.34
7.3.270.0030.01317.40
7.3.260.0150.00718.24
7.3.250.0140.00916.46
7.3.240.0150.00316.66
7.3.230.0030.01316.41
7.3.210.0040.01316.38
7.3.200.0080.00819.39
7.3.190.0110.01116.39
7.3.180.0060.01116.18
7.3.170.0030.01516.50
7.3.160.0120.00416.32
7.3.120.0070.01014.54
7.2.330.0150.00316.64
7.2.320.0070.01116.42
7.2.310.0060.01516.63
7.2.300.0070.01016.76
7.2.290.0130.00316.73
7.2.60.0070.01016.90
7.1.200.0090.00315.86
7.1.70.0030.00617.15
7.1.60.0180.00719.40
7.1.50.0130.01034.91
7.1.00.0070.03722.56
7.0.200.0090.00615.04
7.0.140.0030.07021.95
7.0.60.0070.07320.00
7.0.50.0030.04317.85
7.0.40.0070.07317.88
7.0.30.0000.08717.71
7.0.20.0030.04317.75
7.0.10.0000.05317.75
7.0.00.0100.08017.75
5.6.280.0100.06321.06
5.6.210.0070.06320.64
5.6.200.0200.02718.25
5.6.190.0130.04718.18
5.6.180.0200.06018.15
5.6.170.0070.08018.19
5.6.160.0070.04718.24
5.6.150.0070.07718.15
5.6.140.0000.07718.18
5.6.130.0030.06318.15
5.6.120.0200.04018.22
5.6.110.0030.07018.18
5.6.100.0070.04018.21
5.6.90.0070.03718.13
5.6.80.0100.07317.57
5.6.70.0000.04017.56
5.6.60.0000.04317.66
5.6.50.0070.05017.66
5.6.40.0130.07017.64
5.6.30.0070.03717.54
5.6.20.0070.03717.53
5.6.10.0130.07717.64
5.6.00.0030.07317.53
5.5.350.0170.07720.41
5.5.340.0100.06717.95
5.5.330.0030.05018.06
5.5.320.0000.05018.07
5.5.310.0030.07017.95
5.5.300.0030.07717.98
5.5.290.0130.03717.91
5.5.280.0100.06318.08
5.5.270.0030.08317.94
5.5.260.0070.04317.97
5.5.250.0070.03717.79
5.5.240.0130.02717.39
5.5.230.0070.04017.36
5.5.220.0070.04317.41
5.5.210.0030.07717.41
5.5.200.0030.05717.34
5.5.190.0000.05017.32
5.5.180.0070.08017.39
5.5.160.0100.07317.30
5.5.150.0070.04317.32
5.5.140.0100.03317.30
5.5.130.0100.04317.41
5.5.120.0070.03717.36
5.5.110.0070.06317.41
5.5.100.0030.05017.23
5.5.90.0000.04017.32
5.5.80.0130.03017.19
5.5.70.0130.07017.25
5.5.60.0130.06717.21
5.5.50.0070.07717.22
5.5.40.0070.05017.22
5.5.30.0070.05017.18
5.5.20.0130.04317.30
5.5.10.0070.05317.21
5.5.00.0030.07717.15
5.4.450.0070.05319.43
5.4.440.0070.07319.44
5.4.430.0100.06719.38
5.4.420.0170.07319.30
5.4.410.0030.04719.24
5.4.400.0070.04318.89
5.4.390.0030.06718.95
5.4.380.0070.06319.05
5.4.370.0030.04719.13
5.4.360.0100.05018.95
5.4.350.0070.04319.10
5.4.340.0000.06019.13
5.4.320.0030.08019.07
5.4.310.0070.07318.99
5.4.300.0100.03319.09
5.4.290.0070.04318.95
5.4.280.0130.04019.01
5.4.270.0100.07019.00
5.4.260.0000.05019.04
5.4.250.0130.03019.12
5.4.240.0100.03319.04
5.4.230.0030.07719.10
5.4.220.0030.08319.02
5.4.210.0100.07319.04
5.4.200.0070.07319.04
5.4.190.0130.05719.04
5.4.180.0070.05319.05
5.4.170.0030.07319.09
5.4.160.0000.06319.25
5.4.150.0070.04719.13
5.4.140.0030.04316.46
5.4.130.0070.04016.30
5.4.120.0070.06316.36
5.4.110.0000.08016.45
5.4.100.0000.04316.31
5.4.90.0100.06316.23
5.4.80.0000.07016.41
5.4.70.0070.07016.41
5.4.60.0030.04316.53
5.4.50.0030.04316.20
5.4.40.0000.06716.46
5.4.30.0100.05716.20
5.4.20.0000.04316.37
5.4.10.0100.07016.37
5.4.00.0000.07315.98
5.3.290.0070.06314.63
5.3.280.0100.05314.55
5.3.270.0200.06714.67
5.3.260.0070.03714.61
5.3.250.0000.05314.63
5.3.240.0100.06014.64
5.3.230.0200.02714.44
5.3.220.0070.08014.55
5.3.210.0000.04314.63
5.3.200.0100.06314.66
5.3.190.0130.07314.61
5.3.180.0070.04314.54
5.3.170.0030.04014.76
5.3.160.0030.07314.55
5.3.150.0130.06714.62
5.3.140.0030.04714.60
5.3.130.0100.05714.54
5.3.120.0100.04314.38
5.3.110.0130.06014.51
5.3.100.0030.05714.01
5.3.90.0070.04314.04
5.3.80.0100.04714.02
5.3.70.0200.05314.09
5.3.60.0130.04013.98
5.3.50.0200.06313.93
5.3.40.0100.06713.83
5.3.30.0030.06013.95
5.3.20.0000.06713.57
5.3.10.0070.05713.68
5.3.00.0000.07313.64
5.2.170.0030.03711.14
5.2.160.0070.03711.15
5.2.150.0100.03710.98
5.2.140.0070.04311.02
5.2.130.0100.05711.08
5.2.120.0000.06311.12
5.2.110.0000.05311.11
5.2.100.0070.04311.08
5.2.90.0070.05010.98
5.2.80.0100.02711.12
5.2.70.0000.06711.11
5.2.60.0070.06011.09
5.2.50.0070.03311.23
5.2.40.0030.02711.01
5.2.30.0000.03310.86
5.2.20.0130.03010.80
5.2.10.0170.05010.92
5.2.00.0030.06010.82
5.1.60.0070.04710.03
5.1.50.0030.0579.82
5.1.40.0000.03010.18
5.1.30.0030.04710.36
5.1.20.0030.05310.38
5.1.10.0030.03710.08
5.1.00.0030.06010.11
5.0.50.0000.0438.71
5.0.40.0070.0438.71
5.0.30.0030.0338.71
5.0.20.0000.0438.71
5.0.10.0000.0278.71
5.0.00.0030.0308.71
4.4.90.0030.0238.71
4.4.80.0030.0278.71
4.4.70.0000.0178.71
4.4.60.0000.0408.71
4.4.50.0030.0308.71
4.4.40.0000.0608.71
4.4.30.0000.0208.71
4.4.20.0070.0338.71
4.4.10.0100.0278.71
4.4.00.0030.0338.71
4.3.110.0000.0208.71
4.3.100.0030.0378.71
4.3.90.0030.0208.71
4.3.80.0070.0438.71
4.3.70.0030.0238.71
4.3.60.0000.0178.71
4.3.50.0030.0138.71
4.3.40.0030.0478.71
4.3.30.0030.0208.71
4.3.20.0000.0178.71
4.3.10.0000.0308.71
4.3.00.0030.0378.71

preferences:
54.02 ms | 401 KiB | 5 Q