3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches = array(); preg_match_all('/(:\w+)/', 'jhkjh :fgfg :fgfg : : ffgg', $matches); print_r($matches); $matches = array(); preg_match_all('/(:\w+)/', 'jhkjh :fgfg :fgfg : : ffgg', $matches, PREG_SET_ORDER); print_r($matches);

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.0120.00318.29
8.3.50.0120.00521.95
8.3.40.0090.01318.84
8.3.30.0030.01019.10
8.3.20.0000.00820.16
8.3.10.0090.00923.67
8.3.00.0040.00419.38
8.2.180.0130.00616.32
8.2.170.0100.01022.96
8.2.160.0000.01520.26
8.2.150.0070.01324.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0040.00422.16
8.2.110.0030.00619.30
8.2.100.0100.00717.78
8.2.90.0090.00018.03
8.2.80.0000.01017.97
8.2.70.0080.00017.80
8.2.60.0000.00818.04
8.2.50.0030.00518.10
8.2.40.0000.00720.63
8.2.30.0090.00017.88
8.2.20.0000.00717.64
8.2.10.0050.00317.89
8.2.00.0050.00317.61
8.1.280.0070.00725.92
8.1.270.0080.00022.05
8.1.260.0130.00626.35
8.1.250.0180.00028.09
8.1.240.0070.00322.02
8.1.230.0080.00320.98
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0030.00617.22
8.1.180.0000.00818.10
8.1.170.0000.00818.78
8.1.160.0000.00821.88
8.1.150.0070.00018.78
8.1.140.0000.00717.44
8.1.130.0040.00417.76
8.1.120.0040.00417.51
8.1.110.0000.00717.58
8.1.100.0040.00417.52
8.1.90.0040.00417.53
8.1.80.0000.00717.53
8.1.70.0000.00717.43
8.1.60.0050.00317.61
8.1.50.0030.00517.57
8.1.40.0000.00917.52
8.1.30.0000.00817.73
8.1.20.0040.00417.79
8.1.10.0080.00017.72
8.1.00.0000.00717.60
8.0.300.0040.00419.90
8.0.290.0000.00816.75
8.0.280.0030.00318.30
8.0.270.0070.00017.21
8.0.260.0030.00317.28
8.0.250.0070.00017.01
8.0.240.0000.00617.02
8.0.230.0070.00016.98
8.0.220.0030.00316.96
8.0.210.0030.00316.95
8.0.200.0000.00817.00
8.0.190.0000.00817.00
8.0.180.0040.00417.00
8.0.170.0050.00317.00
8.0.160.0030.00517.00
8.0.150.0050.00216.89
8.0.140.0030.00516.93
8.0.130.0030.00313.38
8.0.120.0000.00716.79
8.0.110.0000.00716.95
8.0.100.0040.00416.88
8.0.90.0040.00416.95
8.0.80.0060.00916.94
8.0.70.0040.00416.77
8.0.60.0000.00716.87
8.0.50.0070.00016.93
8.0.30.0090.01017.39
8.0.20.0120.00717.42
8.0.10.0050.00317.05
8.0.00.0140.00516.88
7.4.330.0040.00415.02
7.4.320.0000.00616.75
7.4.300.0060.00016.56
7.4.290.0030.00316.60
7.4.280.0040.00416.68
7.4.270.0040.00416.62
7.4.260.0080.00016.70
7.4.250.0040.00416.62
7.4.240.0050.00216.69
7.4.230.0050.00316.85
7.4.220.0100.01016.61
7.4.210.0170.00316.68
7.4.200.0040.00416.64
7.4.160.0130.00316.69
7.4.150.0050.01317.40
7.4.140.0120.00917.86
7.4.130.0080.00816.53
7.4.120.0140.00716.60
7.4.110.0100.00716.49
7.4.100.0100.00716.68
7.4.90.0110.00716.45
7.4.80.0110.01519.39
7.4.70.0200.00016.64
7.4.60.0100.00716.65
7.4.50.0080.00016.77
7.4.40.0050.01916.70
7.4.30.0050.01116.59
7.4.00.0060.00915.30
7.3.330.0000.00513.25
7.3.320.0000.00513.16
7.3.310.0000.00716.08
7.3.300.0000.00716.30
7.3.290.0080.00616.31
7.3.280.0050.01516.26
7.3.270.0140.00717.40
7.3.260.0060.01116.53
7.3.250.0120.00516.48
7.3.240.0040.01316.43
7.3.230.0130.00316.69
7.3.210.0160.00016.26
7.3.200.0120.00919.39
7.3.190.0000.02016.57
7.3.180.0060.00916.65
7.3.170.0030.01216.32
7.3.160.0090.00916.36
7.2.330.0130.01016.73
7.2.320.0100.01016.57
7.2.310.0100.00716.56
7.2.300.0120.01016.63
7.2.290.0060.01116.56
7.2.110.0180.00416.46
7.2.100.0130.00316.37
7.2.90.0190.00416.47
7.2.80.0090.00716.82
7.2.70.0140.00517.04
7.2.60.0080.00816.96
7.2.50.0250.00616.77
7.2.40.0170.00317.04
7.2.30.0240.00916.67
7.2.20.0100.01016.48
7.2.10.0150.00416.89
7.2.00.0070.01118.07
7.1.230.0150.00315.55
7.1.220.0040.01415.86
7.1.210.0160.01015.66
7.1.200.0120.00515.74
7.1.190.0160.00615.88
7.1.180.0240.00315.76
7.1.170.0120.00615.79
7.1.160.0160.00515.78
7.1.150.0210.00015.71
7.1.140.0220.00315.73
7.1.130.0120.00915.98
7.1.120.0130.00415.91
7.1.110.0200.00415.65
7.1.100.0080.00417.04
7.1.90.0120.00915.61
7.1.80.0120.00315.52
7.1.70.0060.00716.37
7.1.60.0100.01117.70
7.1.50.0080.01216.57
7.1.40.0250.00315.68
7.1.30.0250.00615.95
7.1.20.0180.00916.27
7.1.10.0210.00415.64
7.1.00.0070.04219.03
7.0.310.0200.00915.28
7.0.300.0060.00915.52
7.0.290.0170.00615.44
7.0.280.0190.00715.48
7.0.270.0130.00315.44
7.0.260.0220.00315.33
7.0.250.0090.01515.50
7.0.240.0150.00315.45
7.0.230.0230.00015.47
7.0.220.0190.01115.64
7.0.210.0210.00315.57
7.0.200.0130.00316.07
7.0.190.0200.00815.46
7.0.180.0200.00415.46
7.0.170.0150.00815.57
7.0.160.0130.00715.55
7.0.150.0260.00315.59
7.0.140.0080.04118.86
7.0.130.0140.00015.66
7.0.120.0080.00815.36
7.0.110.0090.00915.57
7.0.100.0170.00715.47
7.0.90.0140.00315.58
7.0.80.0120.00515.18
7.0.70.0080.00515.67
7.0.60.0090.04217.79
7.0.50.0080.02816.80
7.0.40.0100.02316.91
7.0.30.0180.02516.86
7.0.20.0290.03616.68
7.0.10.0120.04516.80
7.0.00.0080.02216.77
5.6.380.0130.00314.33
5.6.370.0120.00614.00
5.6.360.0100.00514.57
5.6.350.0160.00014.54
5.6.340.0140.00614.51
5.6.330.0170.00714.29
5.6.320.0240.00514.46
5.6.310.0130.00314.48
5.6.300.0110.00814.07
5.6.290.0120.00214.17
5.6.280.0070.03917.66
5.6.270.0100.00314.07
5.6.260.0070.00713.94
5.6.250.0150.00414.40
5.6.240.0060.00914.32
5.6.230.0110.00714.09
5.6.220.0080.00814.09
5.6.210.0120.03717.46
5.6.200.0090.02216.20
5.6.190.0070.03017.48
5.6.180.0160.02117.43
5.6.170.0240.03917.49
5.6.160.0040.03917.19
5.6.150.0100.04316.17
5.6.140.0060.02416.22
5.6.130.0140.03916.16
5.6.120.0100.04317.84
5.6.110.0050.02617.61
5.6.100.0140.04117.60
5.6.90.0150.04017.42
5.6.80.0080.02617.22
5.6.70.2340.02217.37
5.6.60.0180.00014.17
5.6.50.0100.00614.15
5.6.40.0150.00014.54
5.6.30.0130.00413.95
5.6.20.0120.00814.32
5.6.10.0130.00313.93
5.6.00.0090.00914.42
5.5.380.0130.00011.23
5.5.370.0070.00711.17
5.5.360.0060.00610.90
5.5.350.0160.01715.75
5.5.340.0070.02214.68
5.5.330.0050.03215.79
5.5.320.0170.03215.75
5.5.310.0100.02315.52
5.5.300.0070.03714.61
5.5.290.0060.02214.42
5.5.280.0090.02315.97
5.5.270.0100.04316.06
5.5.260.0090.04515.90
5.5.250.0070.04315.71
5.5.240.0120.02015.66
5.5.230.0080.00310.67
5.5.220.0100.00410.89
5.5.210.0110.00410.84
5.5.200.0080.00611.18
5.5.190.0000.01410.90
5.5.180.0080.00310.83
5.5.170.0070.00714.00
5.5.160.0070.00411.14
5.5.150.0110.00311.13
5.5.140.0040.00810.96
5.5.130.0120.00010.90
5.5.120.0070.00411.09
5.5.110.0070.00411.13
5.5.100.0040.00811.09
5.5.90.0070.00711.09
5.5.80.0150.00011.26
5.5.70.0070.00711.05
5.5.60.0100.00311.16
5.5.50.0150.00011.19
5.5.40.0060.00910.79
5.5.30.0070.00710.88
5.5.20.0080.00810.65
5.5.10.0080.00810.61
5.5.00.0080.00811.02
5.4.450.0530.02815.06
5.4.440.0470.03015.37
5.4.430.0410.03115.16
5.4.420.0530.03515.33
5.4.410.0440.03215.13
5.4.400.0400.02214.88
5.4.390.0450.03314.80
5.4.380.0460.02515.26
5.4.370.0470.02715.01
5.4.360.0500.03015.07
5.4.350.0500.02715.00
5.4.340.0070.01911.38
5.4.330.0080.00310.77
5.4.320.0080.02111.79
5.4.310.0080.02411.88
5.4.300.0070.02111.88
5.4.290.0060.02111.56
5.4.280.0060.02111.68
5.4.270.0070.01911.56
5.4.260.0060.02311.68
5.4.250.0110.01811.69
5.4.240.0070.02511.71
5.4.230.0080.02211.79
5.4.220.0070.02411.65
5.4.210.0060.02311.54
5.4.200.0080.02211.64
5.4.190.0080.02111.53
5.4.180.0080.02211.54
5.4.170.0060.02511.62
5.4.160.0110.02011.65
5.4.150.0110.02411.58
5.4.140.0070.02011.36
5.4.130.0050.02411.61
5.4.120.0090.02011.33
5.4.110.0060.02311.48
5.4.100.0080.01911.50
5.4.90.0040.02311.44
5.4.80.0070.02211.52
5.4.70.0080.01811.43
5.4.60.0070.02311.56
5.4.50.0070.01911.54
5.4.40.0080.01811.54
5.4.30.0100.01911.41
5.4.20.0060.02011.38
5.4.10.0070.01911.31
5.4.00.0080.02211.27
5.3.290.0080.02411.71
5.3.280.0070.02111.66
5.3.270.0110.01911.67
5.3.260.0080.02111.67
5.3.250.0090.01911.67
5.3.240.0090.02111.67
5.3.230.0100.02311.66
5.3.220.0060.02311.65
5.3.210.0090.02011.65
5.3.200.0100.01611.65
5.3.190.0070.02511.65
5.3.180.0080.02111.64
5.3.170.0110.01711.64
5.3.160.0090.01811.64
5.3.150.0040.02411.65
5.3.140.0090.01911.63
5.3.130.0090.02111.63
5.3.120.0030.02411.63
5.3.110.0070.02211.63
5.3.100.0050.02311.37
5.3.90.0070.02111.36
5.3.80.0100.01811.35
5.3.70.0070.01811.35
5.3.60.0060.02111.34
5.3.50.0080.02011.32
5.3.40.0090.02011.32
5.3.30.0060.02011.30
5.3.20.0060.02111.19
5.3.10.0080.01911.17
5.3.00.0090.01811.16
5.2.170.0110.0199.92
5.2.160.0070.0159.92
5.2.150.0060.0169.92
5.2.140.0040.0189.91
5.2.130.0060.0179.89
5.2.120.0060.0169.89
5.2.110.0050.0189.89
5.2.100.0060.0179.89
5.2.90.0070.0159.89
5.2.80.0040.0179.89
5.2.70.0070.0169.89
5.2.60.0070.0159.87
5.2.50.0050.0189.85
5.2.40.0070.0149.85
5.2.30.0050.0189.83
5.2.20.0070.0159.83
5.2.10.0040.0179.77
5.2.00.0080.0149.70
5.1.60.0050.0139.34
5.1.50.0030.0159.34
5.1.40.0050.0139.33
5.1.30.0060.0149.50
5.1.20.0060.0149.51
5.1.10.0040.0179.37
5.1.00.0050.0149.38
5.0.50.0040.0148.62
5.0.40.0030.0128.54
5.0.30.0040.0188.45
5.0.20.0040.0108.44
5.0.10.0050.0108.43
5.0.00.0020.0198.42
4.4.90.0010.0127.70
4.4.80.0040.0107.68
4.4.70.0040.0077.69
4.4.60.0020.0107.69
4.4.50.0010.0127.69
4.4.40.0030.0147.66
4.4.30.0020.0117.69
4.4.20.0050.0087.73
4.4.10.0050.0097.73
4.4.00.0030.0157.69
4.3.110.0050.0097.64
4.3.100.0030.0097.64
4.3.90.0020.0117.62
4.3.80.0030.0137.60
4.3.70.0060.0077.62
4.3.60.0070.0067.62
4.3.50.0020.0097.62
4.3.40.0020.0147.58
4.3.30.0020.0116.95
4.3.20.0010.0126.94
4.3.10.0020.0106.92
4.3.00.0070.0148.81

preferences:
45.57 ms | 401 KiB | 5 Q