3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/(?:[^\s()":]*:)?"[^"]+"|[^\s()]+|[()]/m'; $str = '+test +word any -sampe (+toto +titi "generic test") -column:"test this" (+data id:1234)'; preg_match_all($re, $str, $matches); print_r($matches[0]);

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.5.00.0110.01120.38
8.4.150.0020.00014.05
8.4.140.0130.00917.91
8.4.130.0130.00818.79
8.4.120.0130.00724.20
8.4.110.0110.00920.74
8.4.100.0130.00719.12
8.4.90.0160.00420.38
8.4.80.0060.00318.86
8.4.70.0110.01118.49
8.4.60.0130.00818.82
8.4.50.0120.00818.96
8.4.40.0160.00317.83
8.4.30.0060.01320.64
8.4.20.0100.01018.05
8.4.10.0090.00023.69
8.3.280.0130.00718.49
8.3.270.0150.00616.61
8.3.260.0080.00316.76
8.3.250.0110.00918.76
8.3.240.0070.01217.13
8.3.230.0080.01116.48
8.3.220.0040.00418.83
8.3.210.0110.00818.57
8.3.200.0070.00216.75
8.3.190.0130.00917.28
8.3.180.0060.00216.67
8.3.170.0120.00816.52
8.3.160.0080.00616.94
8.3.150.0120.00617.23
8.3.140.0110.00416.68
8.3.130.0050.00319.10
8.3.120.0130.00619.08
8.3.110.0080.00016.71
8.3.100.0060.00316.64
8.3.90.0090.00926.77
8.3.80.0030.00616.63
8.3.70.0070.00716.63
8.3.60.0100.00716.75
8.3.50.0170.00318.22
8.3.40.0110.00820.33
8.3.30.0100.00619.04
8.3.20.0080.00024.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.290.0120.00620.40
8.2.280.0060.00320.52
8.2.270.0080.01217.14
8.2.260.0040.00418.90
8.2.250.0040.00417.24
8.2.240.0100.00018.46
8.2.230.0060.00320.94
8.2.220.0050.00224.06
8.2.210.0150.00026.77
8.2.200.0030.00616.75
8.2.190.0140.00418.51
8.2.180.0070.00725.92
8.2.170.0060.00918.91
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0000.00924.66
8.2.130.0040.00426.16
8.2.120.0060.00618.93
8.2.110.0100.00022.42
8.2.100.0040.00818.03
8.2.90.0060.00317.75
8.2.80.0080.00018.88
8.2.70.0000.00817.75
8.2.60.0040.00417.75
8.2.50.0050.00317.75
8.2.40.0030.00617.88
8.2.30.0000.00718.20
8.2.20.0040.00420.45
8.2.10.0030.00518.02
8.2.00.0000.00719.20
8.1.330.0090.00921.91
8.1.320.0120.00917.84
8.1.310.0000.00816.71
8.1.300.0060.00318.16
8.1.290.0030.00630.84
8.1.280.0090.00625.92
8.1.270.0040.00423.99
8.1.260.0070.00426.35
8.1.250.0000.00828.09
8.1.240.0090.00023.98
8.1.230.0040.00719.14
8.1.220.0030.00617.78
8.1.210.0060.00318.77
8.1.200.0000.00817.47
8.1.190.0060.00317.35
8.1.180.0000.00818.10
8.1.170.0080.00019.26
8.1.160.0040.00418.82
8.1.150.0080.00018.70
8.1.140.0050.00317.70
8.1.130.0030.00318.79
8.1.120.0070.00317.44
8.1.110.0040.00417.56
8.1.100.0000.00717.54
8.1.90.0070.00017.59
8.1.80.0000.00817.58
8.1.70.0070.00017.45
8.1.60.0030.00517.57
8.1.50.0160.00317.44
8.1.40.0090.00917.47
8.1.30.0100.00517.71
8.1.20.0100.00517.59
8.1.10.0140.00217.62
8.1.00.0100.00517.49
8.0.300.0050.00318.77
8.0.290.0040.00416.75
8.0.280.0070.00018.40
8.0.270.0000.00716.89
8.0.260.0000.00718.30
8.0.250.0000.00717.07
8.0.240.0000.00717.05
8.0.230.0030.00317.02
8.0.220.0070.00016.88
8.0.210.0030.00316.86
8.0.200.0000.00717.05
8.0.190.0080.00516.84
8.0.180.0120.00016.93
8.0.170.0090.00617.01
8.0.160.0100.00516.90
8.0.150.0160.00016.86
8.0.140.0130.00316.96
8.0.130.0190.00016.75
8.0.120.0140.00016.90
8.0.110.0080.00416.89
8.0.100.0090.00616.95
8.0.90.0070.00716.82
8.0.80.0120.00317.05
8.0.70.0090.00916.97
8.0.60.0060.01216.92
8.0.50.0100.00716.93
8.0.30.0050.01116.98
8.0.20.0160.00017.09
8.0.10.0180.00016.91
7.4.330.0000.00515.55
7.4.320.0000.00616.86
7.4.300.0040.00416.70
7.4.290.0120.00516.76
7.4.280.0110.00516.71
7.4.270.0110.00616.68
7.4.260.0090.00616.78
7.4.250.0140.00316.66
7.4.240.0080.00616.60
7.4.230.0070.00716.75
7.4.220.0120.00216.82
7.4.210.0050.00916.68
7.4.200.0040.01116.65
7.4.190.0100.00516.65
7.4.180.0060.00916.76
7.4.160.0120.00316.70
7.4.150.0150.00216.80
7.4.140.0090.00516.62
7.4.130.0100.00516.74
7.4.120.0110.00416.73
7.4.110.0130.00016.46
7.4.100.0110.00216.64
7.4.90.0110.00316.59
7.4.80.0060.00616.40
7.4.70.0080.00416.36
7.4.60.0140.00016.68
7.4.50.0130.00016.53
7.4.40.0110.00416.62
7.4.30.0100.00516.45
7.4.20.0100.00016.47
7.4.10.0100.00016.35
7.4.00.0070.00416.52

preferences:
33.3 ms | 403 KiB | 5 Q