3v4l.org

run code in 300+ PHP versions simultaneously
<?php //echo preg_match("/[0-9]*(\.|[0-9]{1})[0-9]{0,2}/","00.00"); $regexp = '[0-9]*(\.|[0-9]{1})[0-9]{0,2}'; echo _match($regexp, array('00.00','salkjfdsklfj')); function _match($regexp,$subject_array) { $match = 'taco'; foreach ($subject_array as $subject) { if (!preg_match("/".$regexp."/",$subject)) { $match = false; } } return $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.70.0070.00716.75
8.3.60.0100.01018.52
8.3.50.0140.00522.01
8.3.40.0090.00619.02
8.3.30.0060.00919.09
8.3.20.0040.00420.33
8.3.10.0040.00422.07
8.3.00.0050.00322.58
8.2.180.0110.01116.50
8.2.170.0070.00722.96
8.2.160.0110.00420.93
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0000.00726.16
8.2.120.0030.00519.50
8.2.110.0050.00522.39
8.2.100.0060.00617.91
8.2.90.0040.00419.21
8.2.80.0090.00017.97
8.2.70.0030.00917.75
8.2.60.0030.00618.03
8.2.50.0080.00018.07
8.2.40.0080.00018.28
8.2.30.0040.00418.13
8.2.20.0050.00217.79
8.2.10.0060.00319.66
8.2.00.0030.00617.89
8.1.280.0120.00325.92
8.1.270.0000.00723.81
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0000.00823.98
8.1.230.0040.00719.22
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0030.00717.47
8.1.190.0000.00817.53
8.1.180.0000.00818.10
8.1.170.0080.00018.59
8.1.160.0040.00421.98
8.1.150.0070.00018.67
8.1.140.0040.00417.61
8.1.130.0000.00717.78
8.1.120.0040.00417.56
8.1.110.0040.00417.61
8.1.100.0040.00417.50
8.1.90.0000.00717.63
8.1.80.0000.00717.58
8.1.70.0000.00717.54
8.1.60.0050.00317.72
8.1.50.0080.00017.57
8.1.40.0000.00717.55
8.1.30.0050.00317.78
8.1.20.0040.00417.81
8.1.10.0000.00717.66
8.1.00.0040.00417.60
8.0.300.0040.00418.77
8.0.290.0070.00017.16
8.0.280.0020.00518.38
8.0.270.0030.00317.35
8.0.260.0030.00316.96
8.0.250.0030.00317.08
8.0.240.0040.00417.10
8.0.230.0000.00817.14
8.0.220.0000.00817.09
8.0.210.0000.00717.03
8.0.200.0000.00616.98
8.0.190.0040.00417.10
8.0.180.0080.00317.07
8.0.170.0040.00417.05
8.0.160.0030.00617.03
8.0.150.0070.00017.05
8.0.140.0070.00016.98
8.0.130.0000.00613.51
8.0.120.0000.00817.01
8.0.110.0040.00416.93
8.0.100.0040.00416.84
8.0.90.0040.00416.88
8.0.80.0070.01017.04
8.0.70.0040.00416.95
8.0.60.0050.00316.96
8.0.50.0040.00417.04
8.0.30.0070.01517.27
8.0.20.0120.00617.46
8.0.10.0000.00717.21
8.0.00.0160.00316.85
7.4.330.0000.00515.12
7.4.320.0000.00716.70
7.4.300.0040.00416.80
7.4.290.0000.00716.70
7.4.280.0070.00016.71
7.4.270.0000.00716.73
7.4.260.0070.00316.81
7.4.250.0040.00416.70
7.4.240.0040.00416.74
7.4.230.0000.00716.81
7.4.220.0040.01516.69
7.4.210.0080.00716.79
7.4.200.0030.00316.70
7.4.190.0030.00316.90
7.4.160.0080.00816.65
7.4.150.0100.00717.40
7.4.140.0100.01117.86
7.4.130.0120.00716.73
7.4.120.0120.00616.79
7.4.110.0110.00916.77
7.4.100.0000.01816.78
7.4.90.0040.01316.65
7.4.80.0100.00719.39
7.4.70.0140.00316.93
7.4.60.0090.00616.70
7.4.50.0040.00416.55
7.4.40.0100.00722.77
7.4.30.0070.01016.70
7.4.00.0070.01014.83
7.3.330.0060.00013.53
7.3.320.0000.00513.54
7.3.310.0000.00716.28
7.3.300.0000.00716.54
7.3.290.0060.01416.42
7.3.280.0060.01216.45
7.3.270.0100.00717.40
7.3.260.0060.01116.80
7.3.250.0050.01316.74
7.3.240.0100.00616.71
7.3.230.0110.00616.57
7.3.210.0100.00616.87
7.3.200.0100.01019.39
7.3.190.0160.00616.73
7.3.180.0060.01616.46
7.3.170.0060.01016.75
7.3.160.0030.01216.55
7.3.120.0030.01014.85
7.2.330.0160.00416.76
7.2.320.0120.00616.84
7.2.310.0120.00616.82
7.2.300.0060.01216.88
7.2.290.0140.00716.80
7.2.60.0030.01317.00
7.2.00.0060.01219.51
7.1.200.0070.00716.01
7.1.100.0070.00718.33
7.1.70.0080.00517.45
7.1.60.0090.01619.82
7.1.50.0100.01017.15
7.1.00.0030.07722.50
7.0.200.0040.01116.91
7.0.140.0130.06321.97
7.0.60.0100.04319.84
7.0.50.0100.08017.88
7.0.40.0130.07320.22
7.0.30.0200.08020.26
7.0.20.0270.07320.34
7.0.10.0100.07020.11
7.0.00.0100.05720.09
5.6.280.0030.07321.08
5.6.210.0000.08720.65
5.6.200.0000.07018.17
5.6.190.0030.04320.63
5.6.180.0130.07720.66
5.6.170.0270.07020.55
5.6.160.0070.04020.55
5.6.150.0030.03718.15
5.6.140.0100.08018.24
5.6.130.0100.08018.23
5.6.120.0070.08321.14
5.6.110.0030.06721.00
5.6.100.0030.04020.98
5.6.90.0130.08020.99
5.6.80.0100.08320.29
5.5.350.0030.08720.41
5.5.340.0070.06717.96
5.5.330.0100.07320.33
5.5.320.0270.07320.31
5.5.310.0230.04320.30
5.5.300.0030.05317.95
5.5.290.0100.08018.08
5.5.280.0070.06020.77
5.5.270.0100.08320.84
5.5.260.0000.06720.86
5.5.250.0070.03720.78
5.5.240.0030.07320.37
5.4.450.0930.03719.29
5.4.440.0570.04019.27
5.4.430.0470.04319.30
5.4.420.0330.04719.46
5.4.410.0130.05018.94
5.4.400.0230.04018.62
5.4.390.0100.05018.78
5.4.380.0270.04318.62
5.4.370.0230.05318.51
5.4.360.0300.05318.78
5.4.350.0200.05318.74
5.4.340.0330.04718.75
5.4.320.0100.03612.50
5.4.310.0060.03812.50
5.4.300.0070.03712.50
5.4.290.0070.04112.50
5.4.280.0040.04012.39
5.4.270.0060.04712.37
5.4.260.0060.05312.37
5.4.250.0080.04112.37
5.4.240.0060.05012.37
5.4.230.0110.07812.36
5.4.220.0150.07412.36
5.4.210.0110.04612.36
5.4.200.0090.05712.36
5.4.190.0080.05512.36
5.4.180.0070.05712.36
5.4.170.0080.04212.37
5.4.160.0050.03912.36
5.4.150.0080.03712.36
5.4.140.0110.03712.05
5.4.130.0070.05112.03
5.4.120.0070.03812.00
5.4.110.0100.03511.99
5.4.100.0030.04211.99
5.4.90.0070.04011.98
5.4.80.0050.04211.99
5.4.70.0100.03511.98
5.4.60.0100.04111.98
5.4.50.0140.05611.98
5.4.40.0040.05111.97
5.4.30.0110.07311.96
5.4.20.0080.05311.97
5.4.10.0130.04911.96
5.4.00.0040.04811.46
5.3.290.0090.04212.80
5.3.280.0080.03912.71
5.3.270.0120.03912.73
5.3.260.0100.05712.72
5.3.250.0100.05212.72
5.3.240.0060.05512.72
5.3.230.0070.04712.71
5.3.220.0170.05212.68
5.3.210.0070.05912.68
5.3.200.0080.05912.68
5.3.190.0080.04912.68
5.3.180.0100.04712.67
5.3.170.0110.06112.67
5.3.160.0090.05212.67
5.3.150.0160.05212.67
5.3.140.0090.04612.66
5.3.130.0100.05012.66
5.3.120.0070.05312.66
5.3.110.0100.05212.66
5.3.100.0080.04812.12
5.3.90.0110.07012.08
5.3.80.0070.05312.08
5.3.70.0130.04312.07
5.3.60.0040.04412.07
5.3.50.0030.03912.00
5.3.40.0080.03712.00
5.3.30.0070.04311.96
5.3.20.0070.04811.74
5.3.10.0090.03511.70
5.3.00.0070.04411.69
5.2.170.0040.0349.19
5.2.160.0060.0299.19
5.2.150.0040.0329.19
5.2.140.0050.0319.19
5.2.130.0050.0309.15
5.2.120.0070.0279.15
5.2.110.0060.0299.16
5.2.100.0060.0379.16
5.2.90.0080.0389.16
5.2.80.0050.0429.15
5.2.70.0040.0449.14
5.2.60.0080.0419.10
5.2.50.0080.0429.07
5.2.40.0050.0419.05
5.2.30.0060.0429.04
5.2.20.0080.0329.02
5.2.10.0070.0358.91
5.2.00.0070.0388.77
5.1.60.0090.0308.05
5.1.50.0030.0288.05
5.1.40.0040.0268.04
5.1.30.0040.0288.38
5.1.20.0050.0268.41
5.1.10.0110.0368.13
5.1.00.0050.0278.13
5.0.50.0030.0226.61
5.0.40.0040.0236.46
5.0.30.0060.0396.29
5.0.20.0050.0256.26
5.0.10.0020.0296.22
5.0.00.0040.0416.22
4.4.90.0030.0234.77
4.4.80.0070.0204.75
4.4.70.0050.0224.75
4.4.60.0080.0194.76
4.4.50.0050.0234.77
4.4.40.0050.0274.71
4.4.30.0040.0234.76
4.4.20.0030.0334.84
4.4.10.0050.0274.85
4.4.00.0060.0384.76
4.3.110.0070.0224.66
4.3.100.0070.0214.66
4.3.90.0050.0234.63
4.3.80.0090.0364.58
4.3.70.0080.0314.63
4.3.60.0040.0284.62
4.3.50.0040.0204.63
4.3.40.0060.0484.54
4.3.30.0040.0253.28
4.3.20.0040.0163.26
4.3.10.0040.0223.23
4.3.00.0170.01013.29

preferences:
73.54 ms | 401 KiB | 5 Q