3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches = array(); preg_match_all('/\s(:\w+)/', 'jhkjh :fgfg :fgfg : : ffgg', $matches); print_r($matches); $matches = array(); preg_match_all('/\s(:\w+)/', 'jhkjh :fgfgfgfg :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.0070.00718.39
8.3.50.0100.00921.21
8.3.40.0140.00718.83
8.3.30.0130.00619.04
8.3.20.0080.00020.20
8.3.10.0060.00323.53
8.3.00.0000.00819.38
8.2.180.0120.00316.50
8.2.170.0100.00622.96
8.2.160.0100.00320.57
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0050.00326.16
8.2.120.0030.00622.21
8.2.110.0040.00419.13
8.2.100.0140.00017.91
8.2.90.0040.00418.03
8.2.80.0040.00417.97
8.2.70.0040.00417.75
8.2.60.0030.00517.78
8.2.50.0030.00518.07
8.2.40.0040.00420.07
8.2.30.0000.00818.13
8.2.20.0080.00017.78
8.2.10.0040.00417.92
8.2.00.0050.00317.83
8.1.280.0080.00825.92
8.1.270.0100.01022.00
8.1.260.0100.01026.35
8.1.250.0070.01028.09
8.1.240.0030.00621.95
8.1.230.0000.01221.00
8.1.220.0060.00317.74
8.1.210.0000.00818.95
8.1.200.0000.00917.47
8.1.190.0090.00017.23
8.1.180.0000.00718.10
8.1.170.0000.00818.60
8.1.160.0040.00421.88
8.1.150.0040.00418.92
8.1.140.0000.00717.44
8.1.130.0030.00317.91
8.1.120.0000.00717.59
8.1.110.0030.00517.42
8.1.100.0030.00517.45
8.1.90.0050.00317.53
8.1.80.0000.00817.46
8.1.70.0070.00017.50
8.1.60.0050.00317.51
8.1.50.0080.00017.57
8.1.40.0000.00717.57
8.1.30.0050.00317.78
8.1.20.0040.00417.70
8.1.10.0040.00417.70
8.1.00.0040.00417.43
8.0.300.0040.00419.98
8.0.290.0040.00416.75
8.0.280.0000.00718.41
8.0.270.0030.00317.16
8.0.260.0000.00618.29
8.0.250.0000.00717.00
8.0.240.0030.00317.05
8.0.230.0050.00217.04
8.0.220.0000.00816.95
8.0.210.0000.00716.85
8.0.200.0000.00816.88
8.0.190.0040.00416.96
8.0.180.0000.00917.00
8.0.170.0040.00416.93
8.0.160.0030.00316.98
8.0.150.0030.00316.82
8.0.140.0020.00516.90
8.0.130.0030.00313.36
8.0.120.0070.00017.00
8.0.110.0050.00316.98
8.0.100.0050.00317.03
8.0.90.0000.00716.82
8.0.80.0040.01216.97
8.0.70.0040.00416.96
8.0.60.0050.00217.00
8.0.50.0030.00516.91
8.0.30.0140.00717.25
8.0.20.0140.00917.40
8.0.10.0000.00717.14
8.0.00.0070.01016.91
7.4.330.0030.00315.02
7.4.320.0000.00616.64
7.4.300.0030.00316.74
7.4.290.0080.00016.72
7.4.280.0070.00016.69
7.4.270.0030.00316.76
7.4.260.0040.00416.68
7.4.250.0070.00016.62
7.4.240.0080.00016.69
7.4.230.0000.00716.82
7.4.220.0070.01116.64
7.4.210.0090.00616.60
7.4.200.0030.00316.63
7.4.160.0080.00816.66
7.4.150.0110.00717.40
7.4.140.0080.01217.86
7.4.130.0060.01116.73
7.4.120.0100.00716.62
7.4.110.0060.01116.36
7.4.100.0110.00716.49
7.4.90.0070.01016.37
7.4.80.0080.01119.39
7.4.70.0030.01516.54
7.4.60.0060.00916.71
7.4.50.0000.00416.50
7.4.40.0150.00416.54
7.4.30.0040.01516.63
7.4.00.0030.01015.04
7.3.330.0030.00313.11
7.3.320.0060.00013.21
7.3.310.0000.00716.33
7.3.300.0030.00316.15
7.3.290.0140.00416.32
7.3.280.0080.00816.31
7.3.270.0100.01017.40
7.3.260.0180.00616.32
7.3.250.0110.00516.49
7.3.240.0160.00316.24
7.3.230.0090.00716.39
7.3.210.0120.00916.50
7.3.200.0100.01419.39
7.3.190.0100.01016.37
7.3.180.0090.00616.30
7.3.170.0160.00316.46
7.3.160.0070.01116.39
7.3.10.0060.00916.55
7.3.00.0050.00516.52
7.2.330.0180.00316.70
7.2.320.0100.01016.39
7.2.310.0130.01016.65
7.2.300.0160.00616.80
7.2.290.0150.00916.76
7.2.130.0060.00616.82
7.2.120.0110.00816.58
7.2.110.0050.01317.01
7.2.100.0090.00916.71
7.2.90.0090.00916.84
7.2.80.0120.00516.56
7.2.70.0080.00916.73
7.2.60.0050.01016.89
7.2.50.0070.00816.76
7.2.40.0090.00716.73
7.2.30.0080.00816.62
7.2.20.0090.00816.76
7.2.10.0150.00716.98
7.2.00.0050.00917.71
7.1.250.0070.00615.71
7.1.240.0070.01015.61
7.1.230.0050.00515.66
7.1.220.0060.00615.90
7.1.210.0040.00715.73
7.1.200.0080.00415.60
7.1.190.0000.01115.76
7.1.180.0000.00815.69
7.1.170.0060.00915.71
7.1.160.0070.00315.60
7.1.150.0070.00315.61
7.1.140.0070.00415.90
7.1.130.0100.00015.95
7.1.120.0030.00515.87
7.1.110.0040.00715.88
7.1.100.0050.00716.84
7.1.90.0080.00015.70
7.1.80.0040.01115.91
7.1.70.0050.00316.54
7.1.60.0060.01117.66
7.1.50.0030.01116.37
7.1.40.0060.00615.98
7.1.30.0090.00615.98
7.1.20.0090.00315.89
7.1.10.0050.00515.82
7.1.00.0120.03819.09
7.0.330.0000.00915.33
7.0.320.0070.00415.25
7.0.310.0000.01115.32
7.0.300.0080.00015.49
7.0.290.0070.00315.52
7.0.280.0070.00415.35
7.0.270.0110.00515.39
7.0.260.0030.01015.45
7.0.250.0030.01015.27
7.0.240.0080.00315.30
7.0.230.0140.00015.55
7.0.220.0030.01015.45
7.0.210.0040.00915.45
7.0.200.0020.00815.90
7.0.190.0100.00315.50
7.0.180.0060.00615.41
7.0.170.0050.00515.63
7.0.160.0060.00615.36
7.0.150.0060.00615.46
7.0.140.0030.04218.69
7.0.130.0100.00715.57
7.0.120.0060.01215.12
7.0.110.0000.01015.39
7.0.100.0040.00815.31
7.0.90.0080.00815.60
7.0.80.0090.00415.59
7.0.70.0040.00415.25
7.0.60.0150.04517.69
7.0.50.0150.02816.76
7.0.40.0090.02517.03
7.0.30.0180.02216.88
7.0.20.0150.02816.87
7.0.10.0050.03416.82
7.0.00.0120.03116.77
5.6.380.0100.00314.28
5.6.370.0110.00414.18
5.6.360.0110.00814.14
5.6.350.0100.00214.29
5.6.340.0120.00413.95
5.6.330.0130.00314.19
5.6.320.0040.00814.10
5.6.310.0070.01014.32
5.6.300.0060.00313.66
5.6.290.0060.00914.22
5.6.280.0050.04017.77
5.6.270.0000.01314.19
5.6.260.0180.00314.00
5.6.250.0050.00514.17
5.6.240.0040.00414.20
5.6.230.0120.00314.17
5.6.220.0030.00814.14
5.6.210.0100.04217.31
5.6.200.0100.02316.24
5.6.190.0100.03317.47
5.6.180.0200.02817.46
5.6.170.0150.02817.35
5.6.160.0110.04417.44
5.6.150.0260.02016.01
5.6.140.0110.03516.16
5.6.130.0050.03016.17
5.6.120.0140.03817.74
5.6.110.0050.03817.51
5.6.100.0060.03517.43
5.6.90.0100.03517.51
5.6.80.0100.02017.20
5.6.70.2290.02217.37
5.6.60.0060.00613.82
5.6.50.0180.00314.23
5.6.40.0090.00614.09
5.6.30.0070.01114.09
5.6.20.0050.00913.93
5.6.10.0000.01213.94
5.6.00.0030.00913.89
5.5.380.0040.00711.13
5.5.370.0060.00311.09
5.5.360.0060.00611.08
5.5.350.0170.03815.80
5.5.340.0050.04514.42
5.5.330.0110.04015.61
5.5.320.0220.02815.55
5.5.310.0150.03515.58
5.5.300.0100.03014.32
5.5.290.0050.02214.48
5.5.280.0070.04715.86
5.5.270.0080.04015.84
5.5.260.0020.03515.86
5.5.250.0080.04315.82
5.5.240.0090.02215.69
5.5.230.0120.00310.93
5.5.220.0000.01010.79
5.5.210.0200.00310.96
5.5.200.0090.00310.95
5.5.190.0000.01310.86
5.5.180.0030.00911.00
5.5.170.0030.00811.04
5.5.160.0090.00011.13
5.5.150.0030.00610.83
5.5.140.0080.00410.87
5.5.130.0060.00010.57
5.5.120.0050.00510.89
5.5.110.0140.00011.05
5.5.100.0070.00710.86
5.5.90.0030.00811.01
5.5.80.0000.01110.86
5.5.70.0040.00410.77
5.5.60.0070.00311.12
5.5.50.0060.00611.06
5.5.40.0100.00310.99
5.5.30.0000.01010.63
5.5.20.0100.00311.21
5.5.10.0000.01210.95
5.5.00.0070.00710.73
5.4.450.0350.03515.29
5.4.440.0350.03215.11
5.4.430.0350.02715.34
5.4.420.0580.02815.19
5.4.410.0420.03915.22
5.4.400.0240.03815.03
5.4.390.0440.02915.20
5.4.380.0450.02815.06
5.4.370.0440.03614.79
5.4.360.0370.03314.97
5.4.350.0460.03015.09
5.4.340.0060.01911.47
5.4.330.0060.00610.57
5.4.320.0060.02211.70
5.4.310.0040.02511.64
5.4.300.0060.02111.56
5.4.290.0040.02211.70
5.4.280.0040.02111.56
5.4.270.0040.02211.47
5.4.260.0060.01911.57
5.4.250.0090.02211.57
5.4.240.0060.02211.66
5.4.230.0070.02011.52
5.4.220.0070.02111.47
5.4.210.0060.02111.51
5.4.200.0130.03111.69
5.4.190.0060.02111.58
5.4.180.0090.01811.62
5.4.170.0040.02211.46
5.4.160.0040.02411.52
5.4.150.0050.02111.55
5.4.140.0070.02111.34
5.4.130.0070.01911.48
5.4.120.0060.02111.49
5.4.110.0050.01911.49
5.4.100.0070.01911.36
5.4.90.0090.01911.51
5.4.80.0040.02411.53
5.4.70.0060.02111.36
5.4.60.0080.01711.44
5.4.50.0090.02011.29
5.4.40.0130.01911.41
5.4.30.0090.02111.38
5.4.20.0080.01711.47
5.4.10.0060.01911.46
5.4.00.0060.02211.16
5.3.290.0060.02811.59
5.3.280.0080.02111.65
5.3.270.0090.02111.66
5.3.260.0060.02511.54
5.3.250.0080.02111.67
5.3.240.0100.01811.62
5.3.230.0060.01911.52
5.3.220.0090.01911.55
5.3.210.0110.02411.43
5.3.200.0070.02011.57
5.3.190.0060.02211.64
5.3.180.0050.02111.53
5.3.170.0040.02511.63
5.3.160.0050.02311.49
5.3.150.0080.02111.56
5.3.140.0080.02511.66
5.3.130.0080.02211.63
5.3.120.0090.02211.51
5.3.110.0060.02111.59
5.3.100.0040.02511.26
5.3.90.0080.02411.20
5.3.80.0070.02111.21
5.3.70.0090.01911.22
5.3.60.0050.02311.36
5.3.50.0080.02011.10
5.3.40.0050.02111.18
5.3.30.0070.02211.10
5.3.20.0090.02110.98
5.3.10.0120.01810.99
5.3.00.0070.02310.83
5.2.170.0040.0199.56
5.2.160.0060.0179.56
5.2.150.0110.0189.56
5.2.140.0070.0189.56
5.2.130.0090.0189.54
5.2.120.0040.0199.54
5.2.110.0080.0189.54
5.2.100.0060.0179.54
5.2.90.0060.0199.54
5.2.80.0050.0199.53
5.2.70.0040.0199.54
5.2.60.0060.0159.51
5.2.50.0040.0219.50
5.2.40.0070.0149.49
5.2.30.0080.0139.48
5.2.20.0100.0149.47
5.2.10.0030.0179.42
5.2.00.0020.0199.34
5.1.60.0050.0128.98
5.1.50.0020.0168.98
5.1.40.0050.0168.97
5.1.30.0070.0129.14
5.1.20.0020.0179.15
5.1.10.0090.0209.02
5.1.00.0080.0159.02
5.0.50.0060.0118.26
5.0.40.0090.0128.19
5.0.30.0030.0188.09
5.0.20.0050.0098.08
5.0.10.0020.0158.07
5.0.00.0030.0168.06
4.4.90.0050.0097.34
4.4.80.0020.0127.33
4.4.70.0130.0087.33
4.4.60.0050.0097.33
4.4.50.0050.0127.33
4.4.40.0030.0157.30
4.4.30.0030.0097.33
4.4.20.0010.0107.37
4.4.10.0090.0097.38
4.4.00.0080.0147.33
4.3.110.0040.0097.29
4.3.100.0030.0097.28
4.3.90.0020.0097.26
4.3.80.0020.0177.24
4.3.70.0040.0107.27
4.3.60.0030.0087.26
4.3.50.0020.0107.26
4.3.40.0020.0137.22
4.3.30.0020.0126.59
4.3.20.0010.0106.58
4.3.10.0030.0096.56
4.3.00.0050.0148.45

preferences:
56.38 ms | 401 KiB | 5 Q