3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match(<<<EOD %(?x)<((?i)password(?-i))>\s*+(?P<password>.*?)\s*</\1>% EOD , '<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.0070.01016.63
8.3.50.0200.01222.86
8.3.40.0040.01118.69
8.3.30.0100.00318.93
8.3.20.0040.00420.25
8.3.10.0000.00823.51
8.3.00.0080.00019.50
8.2.180.0080.00816.63
8.2.170.0140.00422.96
8.2.160.0130.00318.89
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00421.01
8.2.110.0090.00322.33
8.2.100.0090.00317.59
8.2.90.0080.00018.97
8.2.80.0090.00017.97
8.2.70.0040.00417.63
8.2.60.0040.00417.80
8.2.50.0030.00718.07
8.2.40.0000.00819.88
8.2.30.0040.00417.85
8.2.20.0070.00017.77
8.2.10.0000.00817.95
8.2.00.0050.00217.81
8.1.280.0120.00625.92
8.1.270.0050.00523.91
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00023.93
8.1.230.0110.00019.00
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0040.00417.23
8.1.180.0030.00618.10
8.1.170.0000.00718.62
8.1.160.0000.00722.01
8.1.150.0040.00418.84
8.1.140.0050.00217.42
8.1.130.0070.00017.78
8.1.120.0050.00217.52
8.1.110.0040.00417.46
8.1.100.0000.00817.44
8.1.90.0070.00017.39
8.1.80.0040.00417.39
8.1.70.0000.00717.46
8.1.60.0080.00017.50
8.1.50.0050.00317.57
8.1.40.0060.00317.43
8.1.30.0080.00017.66
8.1.20.0060.00317.73
8.1.10.0040.00417.62
8.1.00.0080.00017.42
8.0.300.0040.00418.77
8.0.290.0030.00516.75
8.0.280.0050.00218.34
8.0.270.0000.00717.21
8.0.260.0060.00017.04
8.0.250.0030.00517.07
8.0.240.0000.00717.05
8.0.230.0030.00317.06
8.0.220.0080.00016.98
8.0.210.0060.00316.85
8.0.200.0000.00616.98
8.0.190.0130.00017.07
8.0.180.0000.00716.99
8.0.170.0000.00817.05
8.0.160.0050.00317.11
8.0.150.0030.00516.99
8.0.140.0050.00216.94
8.0.130.0070.00013.38
8.0.120.0040.00416.83
8.0.110.0020.00516.90
8.0.100.0040.00416.88
8.0.90.0030.00516.82
8.0.80.0090.00616.97
8.0.70.0040.00417.05
8.0.60.0040.00416.86
8.0.50.0050.00316.93
8.0.30.0080.01017.11
8.0.20.0120.00717.40
8.0.10.0000.00817.14
8.0.00.0080.01016.82
7.4.330.0030.00315.00
7.4.320.0000.00616.55
7.4.300.0030.00316.69
7.4.290.0030.00316.65
7.4.280.0040.00416.72
7.4.270.0070.00016.68
7.4.260.0000.00716.69
7.4.250.0040.00416.66
7.4.240.0030.00516.53
7.4.230.0030.00316.72
7.4.220.0160.01216.77
7.4.210.0040.01116.66
7.4.200.0000.00716.70
7.4.160.0080.00816.57
7.4.150.0130.01017.40
7.4.140.0140.00517.86
7.4.130.0070.00916.67
7.4.120.0100.00816.46
7.4.110.0030.01316.59
7.4.100.0110.01116.58
7.4.90.0110.01116.51
7.4.80.0140.00319.39
7.4.70.0060.01316.52
7.4.60.0090.00616.77
7.4.50.0080.00016.64
7.4.40.0120.00916.65
7.4.30.0060.00916.65
7.4.00.0070.00715.23
7.3.330.0070.00013.27
7.3.320.0050.00313.22
7.3.310.0050.00216.30
7.3.300.0000.00716.17
7.3.290.0030.01016.34
7.3.280.0090.01016.39
7.3.270.0170.00417.40
7.3.260.0070.01016.77
7.3.250.0060.01116.45
7.3.240.0060.01216.47
7.3.230.0100.00716.39
7.3.210.0100.00716.40
7.3.200.0030.01419.39
7.3.190.0090.00616.44
7.3.180.0110.00416.59
7.3.170.0170.00016.61
7.3.160.0120.00316.26
7.3.120.0100.00614.77
7.3.110.0060.01214.72
7.3.100.0040.01114.84
7.3.90.0080.00414.58
7.3.80.0030.01014.86
7.3.70.0030.01014.81
7.3.60.0070.00314.90
7.3.50.0070.00714.64
7.3.40.0060.00614.88
7.3.30.0070.00714.66
7.3.20.0050.00516.79
7.3.10.0000.01116.71
7.3.00.0100.00316.71
7.2.330.0070.01716.52
7.2.320.0100.00716.59
7.2.310.0080.00816.50
7.2.300.0100.00716.61
7.2.290.0030.01216.55
7.2.250.0030.01615.02
7.2.240.0110.00415.12
7.2.230.0030.01214.86
7.2.220.0030.00615.01
7.2.210.0030.01214.97
7.2.200.0030.01415.09
7.2.190.0090.00615.00
7.2.180.0150.00014.74
7.2.170.0060.00614.98
7.2.00.0070.01019.35
7.1.330.0030.01016.05
7.1.320.0040.00715.78
7.1.310.0110.00415.99
7.1.300.0030.00915.84
7.1.290.0090.00315.99
7.1.280.0000.01316.06
7.1.270.0130.00015.95
7.1.260.0030.00815.95
7.1.100.0150.00617.55
7.1.70.0000.00817.43
7.1.60.0100.01319.40
7.1.50.0200.01334.80
7.1.00.0000.08022.45
7.0.200.0000.00716.81
7.0.140.0030.07022.11
7.0.60.0000.04319.86
7.0.50.0000.05317.86
7.0.40.0030.04720.05
7.0.30.0200.07020.20
7.0.20.0200.04320.18
7.0.10.0100.05320.19
7.0.00.0030.05720.18
5.6.280.0000.07321.08
5.6.210.0070.07720.47
5.6.200.0030.08018.16
5.6.190.0030.04320.57
5.6.180.0330.06720.67
5.6.170.0300.03720.45
5.6.160.0170.08020.41
5.6.150.0030.04018.21
5.6.140.0070.03718.18
5.6.130.0100.04718.16
5.6.120.0070.07321.11
5.6.110.0130.07721.10
5.6.100.0070.07021.02
5.6.90.0200.07020.96
5.6.80.0100.03320.50
5.5.350.0270.08020.34
5.5.340.0000.09018.02
5.5.330.0070.05020.09
5.5.320.0170.08720.20
5.5.310.0230.04720.17
5.5.300.0100.06717.95
5.5.290.0070.06717.92
5.5.280.0030.04020.87
5.5.270.0100.05320.87
5.5.260.0130.05720.84
5.5.250.0100.07320.68
5.5.240.0000.05720.00
5.4.450.0870.05719.46
5.4.440.0630.05019.52
5.4.430.0170.05019.52
5.4.420.0570.06019.48
5.4.410.0130.05318.97
5.4.400.0330.06718.61
5.4.390.0370.05718.55
5.4.380.0100.06018.75
5.4.370.0130.03018.56
5.4.360.0100.03718.59
5.4.350.0110.06211.98
5.4.340.0090.03511.97
5.4.320.0070.04412.45
5.4.310.0080.03812.45
5.4.300.0030.03912.45
5.4.290.0100.03312.45
5.4.280.0050.03612.34
5.4.270.0070.03312.34
5.4.260.0070.04012.35
5.4.250.0060.04912.35
5.4.240.0080.03312.35
5.4.230.0040.03812.34
5.4.220.0080.03912.34
5.4.210.0060.03412.34
5.4.200.0070.04412.34
5.4.190.0040.03712.33
5.4.180.0070.03512.33
5.4.170.0060.03612.34
5.4.160.0090.03312.34
5.4.150.0070.03412.34
5.4.140.0070.03512.02
5.4.130.0050.03612.01
5.4.120.0080.03411.96
5.4.110.0060.03611.96
5.4.100.0060.03611.96
5.4.90.0060.04011.96
5.4.80.0060.03811.96
5.4.70.0080.03311.96
5.4.60.0040.04911.96
5.4.50.0050.04211.96
5.4.40.0060.03711.95
5.4.30.0040.03711.95
5.4.20.0060.03511.95
5.4.10.0080.03311.95
5.4.00.0070.03511.44
5.3.290.0070.03912.80
5.3.280.0100.04112.71
5.3.270.0100.03912.73
5.3.260.0070.04112.72
5.3.250.0090.03512.72
5.3.240.0120.03212.72
5.3.230.0060.04112.71
5.3.220.0080.04212.68
5.3.210.0110.04912.68
5.3.200.0080.04212.68
5.3.190.0090.04012.68
5.3.180.0060.03712.67
5.3.170.0080.04112.67
5.3.160.0060.04012.67
5.3.150.0060.03812.68
5.3.140.0070.03512.66
5.3.130.0020.04212.66
5.3.120.0070.03712.66
5.3.110.0060.03812.66
5.3.100.0090.03312.12
5.3.90.0060.03712.08
5.3.80.0040.03712.07
5.3.70.0070.03412.07
5.3.60.0060.03712.06
5.3.50.0070.03412.00
5.3.40.0080.03412.00
5.3.30.0040.03611.95
5.3.20.0050.03611.73
5.3.10.0030.03711.70
5.3.00.0060.03811.68
5.2.170.0010.0339.19
5.2.160.0080.0379.19
5.2.150.0060.0319.18
5.2.140.0060.0309.18
5.2.130.0030.0309.14
5.2.120.0050.0289.14
5.2.110.0060.0289.15
5.2.100.0050.0269.14
5.2.90.0040.0289.14
5.2.80.0020.0329.14
5.2.70.0040.0309.14
5.2.60.0050.0299.09
5.2.50.0030.0319.07
5.2.40.0020.0319.05
5.2.30.0040.0309.02
5.2.20.0050.0329.02
5.2.10.0030.0288.93
5.2.00.0030.0348.79
5.1.60.0010.0318.08
5.1.50.0030.0268.07
5.1.40.0040.0238.05
5.1.30.0030.0278.40
5.1.20.0070.0318.43
5.1.10.0050.0258.15
5.1.00.0050.0308.15
5.0.50.0050.0236.63
5.0.40.0030.0246.48
5.0.30.0030.0306.30
5.0.20.0040.0186.27
5.0.10.0040.0236.25
5.0.00.0020.0356.24
4.4.90.0010.0174.78
4.4.80.0040.0144.75
4.4.70.0060.0124.76
4.4.60.0030.0154.75
4.4.50.0020.0154.77
4.4.40.0020.0304.71
4.4.30.0020.0204.76
4.4.20.0050.0164.84
4.4.10.0070.0164.85
4.4.00.0020.0354.76
4.3.110.0030.0174.67
4.3.100.0010.0164.67
4.3.90.0020.0244.64
4.3.80.0030.0234.59
4.3.70.0020.0194.63
4.3.60.0020.0154.63
4.3.50.0010.0224.63
4.3.40.0020.0284.54
4.3.30.0040.0203.29
4.3.20.0020.0153.27
4.3.10.0020.0153.23
4.3.00.0130.0237.14

preferences:
41.45 ms | 401 KiB | 5 Q