3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '`(?<=\()\w+(?:[,\h]+\w+)*(?=\))`'; $str = 'Citrus fruits (oranges, mandarins lemons) have many nutrients'; preg_match($re, $str, $matches); print_r(preg_split("~[,\h+]~", $matches[0], -1, PREG_SPLIT_NO_EMPTY));

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.4.140.0080.01417.66
8.4.130.0110.00721.77
8.4.120.0120.00820.57
8.4.110.0140.00818.67
8.4.100.0150.00617.88
8.4.90.0030.00520.84
8.4.80.0100.01219.14
8.4.70.0120.00818.94
8.4.60.0110.01018.75
8.4.50.0090.00618.67
8.4.40.0140.00717.64
8.4.30.0100.01018.83
8.4.20.0130.00722.13
8.4.10.0100.01022.41
8.3.270.0140.00616.82
8.3.260.0110.00816.70
8.3.250.0100.00518.89
8.3.240.0080.00916.66
8.3.230.0050.00316.70
8.3.220.0070.00818.52
8.3.210.0090.00916.49
8.3.200.0050.00416.63
8.3.190.0070.00717.20
8.3.180.0040.00418.95
8.3.170.0050.00322.43
8.3.160.0070.01119.10
8.3.150.0090.00017.20
8.3.140.0120.00620.68
8.3.130.0060.00318.59
8.3.120.0080.01118.75
8.3.110.0050.00320.94
8.3.100.0080.00024.06
8.3.90.0030.00626.77
8.3.80.0070.00316.88
8.3.70.0040.01118.31
8.3.60.0070.00716.88
8.3.50.0100.00923.64
8.3.40.0150.00319.26
8.3.30.0070.00718.98
8.3.20.0050.00224.18
8.3.10.0060.00324.66
8.3.00.0000.00826.16
8.2.290.0120.00816.71
8.2.280.0120.00718.27
8.2.270.0120.00616.56
8.2.260.0060.00317.25
8.2.250.0040.00416.86
8.2.240.0040.01219.01
8.2.230.0070.00422.58
8.2.220.0090.00037.54
8.2.210.0080.00026.77
8.2.200.0090.00016.88
8.2.190.0130.00616.88
8.2.180.0110.01125.92
8.2.170.0030.01022.96
8.2.160.0070.00722.96
8.2.150.0090.00025.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0080.00026.35
8.2.110.0090.00021.16
8.2.100.0000.01217.75
8.2.90.0040.00420.45
8.2.80.0030.00520.50
8.2.70.0000.00817.88
8.2.60.0090.00317.75
8.2.50.0050.00318.05
8.2.40.0030.00620.07
8.2.30.0040.00418.10
8.2.20.0070.00017.98
8.2.10.0030.00619.23
8.2.00.0030.00619.21
8.1.330.0070.00616.34
8.1.320.0130.00618.27
8.1.310.0000.01416.71
8.1.300.0040.00418.01
8.1.290.0090.00330.84
8.1.280.0050.01025.92
8.1.270.0030.00622.05
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0040.00422.25
8.1.230.0100.00021.04
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0060.00617.24
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0040.00418.95
8.1.160.0040.00718.98
8.1.150.0000.00718.86
8.1.140.0000.00718.80
8.1.130.0000.00717.41
8.1.120.0020.00517.45
8.1.110.0000.00717.57
8.1.100.0070.00017.46
8.1.90.0080.00017.61
8.1.80.0040.00417.45
8.1.70.0000.00817.54
8.1.60.0080.00017.73
8.1.50.0000.00817.63
8.1.40.0060.00317.65
8.1.30.0050.00317.80
8.1.20.0040.00417.68
8.1.10.0080.00017.70
8.1.00.0000.00817.67
8.0.300.0000.00920.06
8.0.290.0030.00516.63
8.0.280.0070.00018.47
8.0.270.0050.00218.11
8.0.260.0030.00316.92
8.0.250.0030.00317.08
8.0.240.0040.00417.09
8.0.230.0040.00716.98
8.0.220.0040.00416.87
8.0.210.0000.00716.99
8.0.200.0030.00317.05
8.0.190.0040.00416.94
8.0.180.0000.00816.99
8.0.170.0080.00316.99
8.0.160.0030.00517.01
8.0.150.0040.00416.82
8.0.140.0000.00716.99
8.0.130.0030.00313.50
8.0.120.0000.00717.00
8.0.110.0070.00016.85
8.0.100.0040.00416.92
8.0.90.0030.00617.03
8.0.80.0070.01016.95
8.0.70.0070.00016.85
8.0.60.0040.00416.98
8.0.50.0000.00717.03
8.0.30.0100.01417.06
8.0.20.0130.01517.09
8.0.10.0000.00717.09
8.0.00.0110.01217.11
7.4.330.0020.00215.55
7.4.320.0030.00316.77
7.4.300.0000.00616.77
7.4.290.0040.00416.57
7.4.280.0040.00416.65
7.4.270.0070.00016.68
7.4.260.0030.00313.39
7.4.250.0070.00016.59
7.4.240.0020.00516.76
7.4.230.0070.00016.67
7.4.220.0030.00316.68
7.4.210.0050.00916.74
7.4.200.0060.00316.57
7.4.130.0130.00616.68
7.4.120.0060.01216.68
7.4.110.0100.00716.77
7.4.100.0130.00316.50
7.4.90.0080.00816.65
7.4.80.0120.00619.39
7.4.70.0140.00416.46
7.4.60.0090.00616.60
7.4.50.0120.00916.39
7.4.40.0100.00716.53
7.4.30.0060.01016.34
7.4.20.0080.00816.57
7.4.10.0140.00316.69
7.4.00.0080.01516.85
7.3.330.0060.00316.29
7.3.320.0060.00013.20
7.3.310.0030.00316.34
7.3.300.0030.00316.36
7.3.290.0070.00816.35
7.3.280.0030.01016.44
7.3.260.0100.00716.30
7.3.240.0100.00916.49
7.3.230.0120.00816.71
7.3.210.0110.00616.78
7.3.200.0060.01016.75
7.3.190.0030.01616.50
7.3.180.0140.01116.40
7.3.170.0040.01416.64
7.3.160.0090.00916.40
7.3.150.0030.01416.38
7.3.140.0030.01516.39
7.3.130.0150.00616.40
7.3.120.0170.00716.30
7.3.110.0200.00016.18
7.3.100.0090.01116.21
7.3.90.0090.00916.27
7.3.80.0050.01116.36
7.3.70.0150.00416.54
7.3.60.0080.01116.36
7.3.50.0090.00916.45
7.3.40.0120.00616.23
7.3.30.0110.00816.56
7.3.20.0110.00716.39
7.3.10.0050.01316.45
7.3.00.0130.00516.28
7.2.330.0120.00616.61
7.2.320.0030.01516.54
7.2.310.0090.01816.64
7.2.300.0150.00516.35
7.2.290.0080.01216.47
7.2.280.0070.01116.50
7.2.270.0060.01316.50
7.2.260.0160.00616.50
7.2.250.0060.01216.42
7.2.240.0100.00816.36
7.2.230.0140.00316.54
7.2.220.0090.01016.68
7.2.210.0070.01016.61
7.2.200.0070.01116.51
7.2.190.0140.00416.34
7.2.180.0040.01416.47
7.2.170.0030.01616.59
7.2.160.0120.00616.38
7.2.150.0040.01516.58
7.2.140.0130.00616.62
7.2.130.0130.00716.56
7.2.120.0160.00316.48
7.2.110.0120.00816.59
7.2.100.0110.00716.52
7.2.90.0080.01216.49
7.2.80.0060.01216.66
7.2.70.0040.01516.52
7.2.60.0120.00616.75
7.2.50.0040.01316.64
7.2.40.0070.01016.69
7.2.30.0100.00816.59
7.2.20.0140.00716.64
7.2.10.0110.01016.69
7.2.00.0060.01116.68

preferences:
31.62 ms | 403 KiB | 5 Q