3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match('#<((?i)password(?-i))>\s*+(?P<password>.*?)\s*</\1>#', '<Password> toto </password>', $match); var_dump($match);

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.0110.01116.63
8.3.50.0270.00923.00
8.3.40.0060.01018.96
8.3.30.0110.00318.99
8.3.20.0080.00020.20
8.3.10.0050.00323.73
8.3.00.0000.00819.38
8.2.180.0110.00316.75
8.2.170.0070.00722.96
8.2.160.0100.00320.35
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0050.00519.26
8.2.110.0030.00622.04
8.2.100.0070.00419.25
8.2.90.0040.00419.16
8.2.80.0090.00017.97
8.2.70.0050.00317.75
8.2.60.0040.00417.91
8.2.50.0070.00318.07
8.2.40.0000.00819.94
8.2.30.0040.00417.87
8.2.20.0040.00417.59
8.2.10.0080.00017.84
8.2.00.0080.00017.71
8.1.280.0180.00025.92
8.1.270.0000.00823.77
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0080.00024.01
8.1.230.0100.00019.11
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0030.00617.22
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0000.00818.71
8.1.160.0070.00021.97
8.1.150.0050.00318.79
8.1.140.0040.00417.39
8.1.130.0030.00317.78
8.1.120.0030.00517.39
8.1.110.0000.00717.54
8.1.100.0000.00717.44
8.1.90.0000.00917.35
8.1.80.0000.00717.47
8.1.70.0030.00317.47
8.1.60.0030.00517.59
8.1.50.0000.00817.54
8.1.40.0030.00617.53
8.1.30.0000.00917.66
8.1.20.0060.00317.66
8.1.10.0030.00617.58
8.1.00.0040.00417.43
8.0.300.0030.00518.77
8.0.290.0040.00416.75
8.0.280.0000.00718.28
8.0.270.0000.00717.04
8.0.260.0060.00017.21
8.0.250.0000.00716.87
8.0.240.0000.00716.99
8.0.230.0000.00716.84
8.0.220.0030.00316.83
8.0.210.0070.00016.82
8.0.200.0030.00317.00
8.0.190.0110.00017.03
8.0.180.0030.00516.85
8.0.170.0040.00416.86
8.0.160.0030.00516.79
8.0.150.0070.00016.81
8.0.140.0040.00416.88
8.0.130.0040.00413.38
8.0.120.0030.00516.90
8.0.110.0040.00416.86
8.0.100.0040.00416.98
8.0.90.0000.00716.98
8.0.80.0120.00316.93
8.0.70.0030.00616.88
8.0.60.0000.00816.91
8.0.50.0000.00716.98
8.0.30.0090.01217.06
8.0.20.0130.00617.40
8.0.10.0040.00416.85
8.0.00.0120.00716.73
7.4.330.0050.00015.00
7.4.320.0000.00616.68
7.4.300.0000.00616.44
7.4.290.0070.00016.69
7.4.280.0070.00016.48
7.4.270.0000.00716.71
7.4.260.0050.00216.67
7.4.250.0040.00416.45
7.4.240.0000.00716.64
7.4.230.0070.00016.50
7.4.220.0200.00616.83
7.4.210.0030.01716.61
7.4.200.0050.00316.69
7.4.160.0120.00316.73
7.4.150.0090.00917.40
7.4.140.0120.00717.86
7.4.130.0100.00716.74
7.4.120.0110.00616.53
7.4.110.0170.00016.52
7.4.100.0040.01716.75
7.4.90.0100.01316.69
7.4.80.0140.00719.39
7.4.70.0100.01016.57
7.4.60.0070.01016.32
7.4.50.0040.00416.70
7.4.40.0120.00416.61
7.4.30.0080.00816.59
7.4.00.0060.01214.59
7.3.330.0050.00013.02
7.3.320.0070.00013.01
7.3.310.0070.00016.23
7.3.300.0040.00416.29
7.3.290.0090.00616.24
7.3.280.0090.00916.38
7.3.270.0070.01417.40
7.3.260.0180.00016.39
7.3.250.0110.00616.33
7.3.240.0100.00616.41
7.3.230.0060.00916.50
7.3.210.0100.00716.53
7.3.200.0030.01519.39
7.3.190.0140.00316.30
7.3.180.0030.01316.51
7.3.170.0150.00716.32
7.3.160.0060.00916.23
7.2.330.0030.01816.59
7.2.320.0140.00616.43
7.2.310.0160.00316.63
7.2.300.0100.00616.60
7.2.290.0090.00616.70
7.2.00.0060.00619.57
7.1.200.0060.00315.85
7.1.100.0200.00717.96
7.1.70.0030.00817.30
7.1.60.0140.01019.40
7.1.50.0280.00634.73
7.1.00.0000.08022.59
7.0.200.0030.00616.45
7.0.140.0100.06722.08
7.0.60.0130.08019.93
7.0.50.0100.06717.89
7.0.40.0030.04719.99
7.0.30.0570.07020.04
7.0.20.0370.06720.03
7.0.10.0170.08020.23
7.0.00.0100.08320.23
5.6.280.0000.07721.12
5.6.210.0070.06720.62
5.6.200.0030.07018.12
5.6.190.0030.08320.60
5.6.180.0200.05320.61
5.6.170.0370.06720.51
5.6.160.0070.07020.49
5.6.150.0130.04718.18
5.6.140.0070.03718.11
5.6.130.0070.08018.11
5.6.120.0170.07721.06
5.6.110.0170.08020.97
5.6.100.0170.05720.99
5.6.90.0130.07720.87
5.6.80.0030.06320.39
5.5.350.0030.08020.34
5.5.340.0130.03018.02
5.5.330.0100.08020.19
5.5.320.2670.04720.13
5.5.310.0330.04320.29
5.5.300.0100.07318.02
5.5.290.0030.06018.00
5.5.280.0030.07020.86
5.5.270.0070.05020.88
5.5.260.0030.06020.75
5.5.250.0170.07720.56
5.5.240.0130.06720.05
5.4.450.0070.07019.46
5.4.440.0070.07719.56
5.4.430.0100.07319.48
5.4.420.0070.07019.38
5.4.410.0030.07019.34
5.4.400.0070.07019.14
5.4.390.0030.04718.93
5.4.380.0070.07018.82
5.4.370.0030.07319.08
5.4.360.0100.05019.08
5.4.350.0030.05318.88
5.4.340.0030.07719.16
5.4.320.0030.08019.12
5.4.310.0000.07719.06
5.4.300.0000.08319.10
5.4.290.0030.07719.26
5.4.280.0000.08018.78
5.4.270.0030.07318.91
5.4.260.0030.06319.24
5.4.250.0070.07018.88
5.4.240.0030.03318.87
5.4.230.0030.03319.15
5.4.220.0070.03319.10
5.4.210.0030.03718.80
5.4.200.0000.04319.21
5.4.190.0030.06319.10
5.4.180.0000.04019.23
5.4.170.0030.04319.20
5.4.160.0000.03719.22
5.4.150.0070.03319.11
5.4.140.0030.03316.34
5.4.130.0000.03316.30
5.4.120.0030.03716.35
5.4.110.0000.03716.43
5.4.100.0030.03316.39
5.4.90.0030.03016.19
5.4.80.0000.03316.37
5.4.70.0000.03716.44
5.4.60.0000.03316.35
5.4.50.0000.03716.36
5.4.40.0030.03316.44
5.4.30.0000.03316.41
5.4.20.0000.03716.45
5.4.10.0030.03016.21
5.4.00.0000.03715.70
5.3.290.0070.06714.57
5.3.280.0030.04014.45
5.3.270.0000.04014.54
5.3.260.0000.04314.55
5.3.250.0030.03314.51
5.3.240.0000.03714.55
5.3.230.0000.03714.43
5.3.220.0000.04014.54
5.3.210.0000.03714.41
5.3.200.0000.04014.42
5.3.190.0000.04014.40
5.3.180.0000.04014.39
5.3.170.0030.03314.49
5.3.160.0030.04014.46
5.3.150.0000.03714.58
5.3.140.0070.03314.57
5.3.130.0030.03314.49
5.3.120.0030.03314.42
5.3.110.0000.03714.48
5.3.100.0070.03313.98
5.3.90.0030.03013.92
5.3.80.0000.03714.04
5.3.70.0000.04314.06
5.3.60.0000.03714.09
5.3.50.0000.03713.99
5.3.40.0000.04313.79
5.3.30.0030.03013.73
5.3.20.0030.03313.62
5.3.10.0030.06313.75
5.3.00.0100.07013.68
5.2.170.0000.03013.22
5.2.160.0000.04313.22
5.2.150.0030.03013.22
5.2.140.0000.03313.22
5.2.130.0030.03313.22
5.2.120.0030.04313.22
5.2.110.0030.04013.22
5.2.100.0030.06313.22
5.2.90.0030.06013.22
5.2.80.0000.06013.22
5.2.70.0070.06013.22
5.2.60.0000.04713.22
5.2.50.0030.06313.22
5.2.40.0030.05713.22
5.2.30.0030.05313.22
5.2.20.0100.05313.22
5.2.10.0000.06013.22
5.2.00.0000.05713.22
5.1.60.0030.04013.22
5.1.50.0130.03013.22
5.1.40.0000.05013.22
5.1.30.0070.05013.22
5.1.20.0000.05713.22
5.1.10.0000.05013.22
5.1.00.0030.04313.22
5.0.50.0030.04713.22
5.0.40.0000.04013.22
5.0.30.0070.05713.22
5.0.20.0100.03013.22
5.0.10.0030.03713.22
5.0.00.0030.04013.22
4.4.90.0000.03713.22
4.4.80.0030.03013.22
4.4.70.0030.02713.22
4.4.60.0070.03013.22
4.4.50.0000.03313.22
4.4.40.0030.03313.22
4.4.30.0000.03713.22
4.4.20.0000.01713.22
4.4.10.0000.03313.22
4.4.00.0000.05313.22
4.3.110.0000.03313.22
4.3.100.0000.02713.22
4.3.90.0000.03313.22
4.3.80.0030.05313.22
4.3.70.0070.03313.22
4.3.60.0100.02713.22
4.3.50.0070.02013.22
4.3.40.0070.03313.22
4.3.30.0000.02013.22
4.3.20.0030.03313.22
4.3.10.0030.03013.22
4.3.00.0000.03313.22

preferences:
65.32 ms | 401 KiB | 5 Q