3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( '0', '00', '000', '0000', '00000', '000000', '0000000', '00000000'); $id_pattern = "/^\d{7}$/"; foreach($arr as $id){ if(preg_match($id_pattern, $id, $regs)) var_dump($regs); }

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.0100.01018.31
8.3.50.0110.00521.21
8.3.40.0090.00918.60
8.3.30.0070.00718.91
8.3.20.0040.00420.28
8.3.10.0080.00021.95
8.3.00.0030.00522.43
8.2.180.0120.00916.63
8.2.170.0110.00422.96
8.2.160.0030.01020.53
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0130.00326.16
8.2.120.0060.00319.77
8.2.110.0100.00019.17
8.2.100.0100.00318.03
8.2.90.0000.01018.16
8.2.80.0000.00817.97
8.2.70.0040.00417.93
8.2.60.0040.00417.91
8.2.50.0050.00318.07
8.2.40.0040.00418.06
8.2.30.0030.00518.13
8.2.20.0040.00417.68
8.2.10.0050.00317.82
8.2.00.0050.00317.83
8.1.280.0160.00625.92
8.1.270.0050.00520.48
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0040.00422.50
8.1.230.0030.00920.88
8.1.220.0050.00317.74
8.1.210.0050.00318.87
8.1.200.0080.00017.48
8.1.190.0060.00317.35
8.1.180.0040.00419.36
8.1.170.0030.00518.62
8.1.160.0080.00022.02
8.1.150.0000.00818.78
8.1.140.0000.00717.52
8.1.130.0030.00317.76
8.1.120.0050.00217.61
8.1.110.0040.00417.63
8.1.100.0030.00317.56
8.1.90.0000.00717.59
8.1.80.0000.00717.50
8.1.70.0030.00317.54
8.1.60.0050.00317.60
8.1.50.0050.00317.70
8.1.40.0040.00417.66
8.1.30.0040.00417.70
8.1.20.0050.00317.79
8.1.10.0000.00717.69
8.1.00.0030.00617.63
8.0.300.0000.00719.82
8.0.290.0030.00616.75
8.0.280.0000.00718.46
8.0.270.0030.00317.31
8.0.260.0030.00316.83
8.0.250.0000.00717.09
8.0.240.0050.00317.14
8.0.230.0030.00316.97
8.0.220.0000.00717.01
8.0.210.0000.00716.91
8.0.200.0000.00716.97
8.0.190.0000.00717.11
8.0.180.0030.00616.95
8.0.170.0030.00517.03
8.0.160.0050.00316.86
8.0.150.0040.00416.98
8.0.140.0040.00416.95
8.0.130.0050.00013.48
8.0.120.0030.00516.87
8.0.110.0080.00017.06
8.0.100.0050.00316.92
8.0.90.0040.00416.90
8.0.80.0140.00316.95
8.0.70.0040.00416.86
8.0.60.0050.00216.96
8.0.50.0000.00716.91
8.0.30.0090.00917.13
8.0.20.0110.00717.40
8.0.10.0070.00017.00
8.0.00.0070.00916.95
7.4.330.0000.00515.00
7.4.320.0030.00316.70
7.4.300.0000.00616.69
7.4.290.0000.01016.81
7.4.280.0030.00316.61
7.4.270.0000.00716.73
7.4.260.0020.00516.82
7.4.250.0030.00516.61
7.4.240.0020.00616.76
7.4.230.0000.00716.87
7.4.220.0200.00316.89
7.4.210.0050.01316.80
7.4.200.0000.00716.45
7.4.190.0070.00016.89
7.4.160.0080.00816.59
7.4.150.0140.00317.40
7.4.140.0090.01217.86
7.4.130.0120.00716.59
7.4.120.0080.00916.65
7.4.110.0040.01416.66
7.4.100.0060.01216.63
7.4.90.0140.00716.75
7.4.80.0140.00419.39
7.4.70.0130.00716.70
7.4.60.0090.00916.83
7.4.50.0020.00216.66
7.4.40.0070.00622.77
7.4.30.0100.00716.64
7.4.00.0040.01115.11
7.3.330.0000.00513.19
7.3.320.0000.00513.19
7.3.310.0000.00716.28
7.3.300.0030.00316.33
7.3.290.0030.01016.46
7.3.280.0100.00716.42
7.3.270.0070.01017.40
7.3.260.0150.00416.72
7.3.250.0190.00116.54
7.3.240.0100.00716.52
7.3.230.0070.01016.72
7.3.210.0060.01116.81
7.3.200.0090.00819.39
7.3.190.0060.01216.38
7.3.180.0030.01316.62
7.3.170.0060.01116.36
7.3.160.0060.01116.50
7.3.120.0100.00714.81
7.2.330.0070.01416.80
7.2.320.0070.01416.56
7.2.310.0170.01716.71
7.2.300.0040.01416.71
7.2.290.0070.01416.65
7.2.60.0040.00816.81
7.1.200.0150.00015.97
7.1.70.0000.01017.19
7.1.60.0070.01019.82
7.1.50.0100.01417.10
7.1.00.0030.03322.37
7.0.200.0000.00916.91
7.0.140.0000.07721.92
7.0.60.0030.08719.93
7.0.50.0070.08017.82
7.0.40.0070.08720.30
7.0.30.0300.08020.11
7.0.20.0200.04320.02
7.0.10.0000.05020.14
7.0.00.0170.07320.20
5.6.280.0030.07320.89
5.6.210.0070.06320.47
5.6.200.0170.07018.21
5.6.190.0030.04320.77
5.6.180.0370.04320.41
5.6.170.0270.05320.48
5.6.160.0200.06720.33
5.6.150.0030.04018.19
5.6.140.0030.05318.11
5.6.130.0170.07718.20
5.6.120.0070.08320.97
5.6.110.0030.04721.04
5.6.100.0100.08321.00
5.6.90.0000.04720.97
5.6.80.0030.04020.43
5.5.350.3930.04020.30
5.5.340.0070.04718.01
5.5.330.0070.07720.15
5.5.320.0300.04020.35
5.5.310.0170.06020.30
5.5.300.0100.08018.00
5.5.290.0200.07017.98
5.5.280.0100.08020.66
5.5.270.0100.08020.85
5.5.260.0100.07320.88
5.5.250.0070.07320.46
5.5.240.0070.05720.18
5.4.450.0230.05719.52
5.4.440.0800.07019.10
5.4.430.0900.05319.46
5.4.420.0930.06319.13
5.4.410.0900.06319.48
5.4.400.0900.04318.80
5.4.390.0630.05018.91
5.4.380.0170.05718.68
5.4.370.0370.03718.69
5.4.360.0200.04018.63
5.4.350.0110.04811.98
5.4.340.0090.03411.97
5.4.320.0080.04412.45
5.4.310.0070.03712.46
5.4.300.0060.04312.46
5.4.290.0100.03812.45
5.4.280.0050.03612.35
5.4.270.0080.03712.35
5.4.260.0050.04212.35
5.4.250.0130.04318.59
5.4.240.0100.07318.86
5.4.230.0130.04318.78
5.4.220.0130.05018.78
5.4.210.0000.05718.78
5.4.200.0030.05318.94
5.4.190.0000.05718.57
5.4.180.0100.04718.74
5.4.170.0130.04718.68
5.4.160.0070.05318.93
5.4.150.0070.05318.80
5.4.140.0070.05016.26
5.4.130.0070.04716.20
5.4.120.0130.04016.26
5.4.110.0130.04316.14
5.4.100.0030.05316.33
5.4.90.0170.03716.22
5.4.80.0170.03716.36
5.4.70.0000.05316.42
5.4.60.0100.06716.42
5.4.50.0100.04316.26
5.4.40.0000.05316.44
5.4.30.0070.04716.34
5.4.20.0070.04716.41
5.4.10.0130.06016.41
5.4.00.0170.04015.91
5.3.290.0100.04312.80
5.3.280.0070.05014.51
5.3.270.0070.05014.45
5.3.260.0070.05014.49
5.3.250.0100.04714.54
5.3.240.0100.05314.52
5.3.230.0070.05314.46
5.3.220.0130.04714.45
5.3.210.0070.05014.71
5.3.200.0070.05014.61
5.3.190.0070.05714.48
5.3.180.0130.04314.65
5.3.170.0070.04714.35
5.3.160.0100.06014.42
5.3.150.0130.04714.45
5.3.140.0070.05314.39
5.3.130.0030.05714.54
5.3.120.0130.05714.70
5.3.110.0130.04714.26
5.3.100.0070.05013.89
5.3.90.0000.05714.02
5.3.80.0100.04713.79
5.3.70.0070.05313.90
5.3.60.0100.05014.01
5.3.50.0030.05013.81
5.3.40.0070.05313.64
5.3.30.0100.04014.00
5.3.20.0100.04713.54
5.3.10.0130.04013.57
5.3.00.0030.05313.68
5.2.170.0130.03011.15
5.2.160.0130.03311.07
5.2.150.0100.03711.16
5.2.140.0130.03311.15
5.2.130.0100.03711.03
5.2.120.0130.03011.11
5.2.110.0070.03710.86
5.2.100.0170.04011.02
5.2.90.0030.04311.12
5.2.80.0070.03711.10
5.2.70.0030.04011.20
5.2.60.0070.04010.97
5.2.50.0030.04311.17
5.2.40.0000.05311.02
5.2.30.0100.03310.89
5.2.20.0030.04710.97
5.2.10.0100.03310.84
5.2.00.0070.03710.79
5.1.60.0030.04710.03
5.1.50.0070.0339.77
5.1.40.0030.0379.82
5.1.30.0070.03310.41
5.1.20.0030.03710.43
5.1.10.0030.03710.11
5.1.00.0070.03010.26
5.0.50.0000.0308.39
5.0.40.0070.0278.50
5.0.30.0100.0538.10
5.0.20.0000.0308.25
5.0.10.0130.0178.21
5.0.00.0030.0408.07
4.4.90.0030.0206.94
4.4.80.0070.0176.94
4.4.70.0030.0276.94
4.4.60.0030.0206.93
4.4.50.0000.0336.93
4.4.40.0070.0376.93
4.4.30.0030.0206.93
4.4.20.0000.0236.93
4.4.10.0000.0236.93
4.4.00.0030.0306.93
4.3.110.0000.0276.93
4.3.100.0070.0176.93
4.3.90.0070.0176.93
4.3.80.0030.0306.93
4.3.70.0030.0206.93
4.3.60.0030.0206.93
4.3.50.0000.0236.93
4.3.40.0070.0306.91
4.3.30.0000.0236.91
4.3.20.0000.0276.91
4.3.10.0000.0236.91
4.3.00.0070.0207.23

preferences:
51.81 ms | 400 KiB | 5 Q