3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tools = "<p>tools :<br> 1 Hex Key (or two Hex key)<br> 1 screww drivers<br> 1 hammer <br> 1 drill </p>"; preg_match_all('#^(?!\s*<p>tools\s*:)\s*(.*?)(?=\s*(<br|</p|$))#m', $tools, $tools_array); print_r($tools_array[1]); $tools = '<p>tools : 1 Hex Key (or two Hex key) 1 screww drivers 1 hammer 1 drill </p>'; preg_match_all('#^(?!\s*<p>tools\s*:)\s*(.*?)(?=\s*(<br|</p|$))#m', $tools, $tools_array); print_r($tools_array[1]);

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.0120.01017.61
8.4.130.0120.00917.77
8.4.120.0040.00520.82
8.4.110.0080.01422.60
8.4.100.0140.00618.03
8.4.90.0140.00818.82
8.4.80.0060.00319.90
8.4.70.0050.00517.93
8.4.60.0090.00220.34
8.4.50.0160.00418.09
8.4.40.0060.00319.63
8.4.30.0150.00422.27
8.4.20.0130.00618.56
8.4.10.0160.00019.79
8.3.270.0070.01216.62
8.3.260.0120.00816.70
8.3.250.0060.00219.00
8.3.240.0100.00816.62
8.3.230.0130.00716.64
8.3.220.0040.00517.07
8.3.210.0110.00816.91
8.3.200.0040.00416.43
8.3.190.0090.01017.25
8.3.180.0110.00816.71
8.3.170.0100.00016.68
8.3.160.0090.01016.52
8.3.150.0070.00717.13
8.3.140.0110.00416.43
8.3.130.0030.00616.61
8.3.120.0060.00318.98
8.3.110.0080.00020.94
8.3.100.0060.00324.06
8.3.90.0030.00626.77
8.3.80.0030.00618.68
8.3.70.0080.01116.58
8.3.60.0120.00318.43
8.3.50.0070.00517.98
8.3.40.0110.00718.82
8.3.30.0120.00618.71
8.3.20.0070.00020.76
8.3.10.0040.00720.48
8.3.00.0000.00821.01
8.2.290.0130.00420.54
8.2.280.0070.00518.47
8.2.270.0090.00917.28
8.2.260.0050.00320.82
8.2.250.0080.00016.86
8.2.240.0080.00018.98
8.2.230.0120.00022.58
8.2.220.0040.00437.54
8.2.210.0030.00626.77
8.2.200.0060.00318.66
8.2.190.0120.00316.63
8.2.180.0120.00618.54
8.2.170.0110.00722.96
8.2.160.0070.00722.39
8.2.150.0070.00024.18
8.2.140.0030.00524.66
8.2.130.0080.00026.16
8.2.120.0040.00421.12
8.2.110.0100.00021.05
8.2.100.0080.00317.84
8.2.90.0080.00019.22
8.2.80.0210.00317.97
8.2.70.0040.00417.63
8.2.60.0000.00918.04
8.2.50.0150.00718.07
8.2.40.0040.00419.97
8.2.30.0070.00017.98
8.2.20.0090.00018.15
8.2.10.0040.00419.43
8.2.00.0000.00817.93
8.1.330.0100.00821.73
8.1.320.0090.00916.19
8.1.310.0000.01918.02
8.1.300.0000.00918.57
8.1.290.0030.00630.84
8.1.280.0080.00825.92
8.1.270.0060.00320.44
8.1.260.0050.00326.35
8.1.250.0030.00528.09
8.1.240.0100.00022.74
8.1.230.0040.00717.66
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0060.00317.35
8.1.180.0030.00618.10
8.1.170.0070.00318.66
8.1.160.0040.00418.86
8.1.150.0000.00718.89
8.1.140.0070.00018.82
8.1.130.0000.00720.25
8.1.120.0000.00717.59
8.1.110.0040.00417.57
8.1.100.0070.00017.54
8.1.90.0040.00417.44
8.1.80.0040.00417.46
8.1.70.0100.00017.59
8.1.60.0060.00317.72
8.1.50.0000.00717.56
8.1.40.0030.00617.51
8.1.30.0080.00017.68
8.1.20.0000.00717.68
8.1.10.0050.00317.62
8.1.00.0030.00617.64
8.0.300.0080.00018.77
8.0.290.0060.00316.75
8.0.280.0000.00818.41
8.0.270.0000.00717.27
8.0.260.0060.00018.40
8.0.250.0070.00017.07
8.0.240.0080.00017.02
8.0.230.0000.00717.04
8.0.220.0070.00016.89
8.0.210.0070.00016.98
8.0.200.0040.00417.10
8.0.190.0040.00416.95
8.0.180.0050.00317.01
8.0.170.0040.00417.06
8.0.160.0000.01117.04
8.0.150.0000.00716.97
8.0.140.0040.00416.94
8.0.130.0030.00313.47
8.0.120.0020.00516.85
8.0.110.0020.00516.89
8.0.100.0000.00716.83
8.0.90.0050.00317.00
8.0.80.0050.01816.96
8.0.70.0000.00716.76
8.0.60.0000.00816.82
8.0.50.0000.00716.86
8.0.30.0090.01317.13
8.0.20.0110.00717.40
8.0.10.0050.00316.93
8.0.00.0090.00916.86
7.4.330.0050.00015.55
7.4.320.0030.00316.74
7.4.300.0060.00016.57
7.4.290.0040.00416.61
7.4.280.0000.00816.70
7.4.270.0030.00316.65
7.4.260.0060.00316.53
7.4.250.0040.00416.73
7.4.240.0000.00716.54
7.4.230.0000.00716.78
7.4.220.0000.00816.49
7.4.210.0070.01016.69
7.4.200.0070.00016.78
7.4.160.0090.01016.62
7.4.140.0120.00717.86
7.4.130.0140.01016.64
7.4.120.0070.01016.57
7.4.110.0060.01316.71
7.4.100.0150.00316.54
7.4.90.0120.00616.57
7.4.80.0090.00919.39
7.4.70.0110.00716.79
7.4.60.0080.01116.50
7.4.50.0090.00316.70
7.4.40.0060.01516.45
7.4.00.0060.00614.88
7.3.330.0050.00013.24
7.3.320.0000.00613.16
7.3.310.0000.00716.41
7.3.300.0040.00416.36
7.3.290.0000.00716.43
7.3.280.0100.00916.37
7.3.260.0110.00916.52
7.3.240.0100.00816.55
7.3.230.0030.01316.35
7.3.210.0070.01016.77
7.3.200.0060.01216.69
7.3.190.0060.01216.38
7.3.180.0030.01916.61
7.3.170.0090.01316.59
7.3.160.0140.00316.54
7.3.20.0570.00714.92
7.3.10.0560.00414.92
7.3.00.0490.00314.76
7.2.330.0120.00616.51
7.2.320.0090.00816.76
7.2.310.0050.01116.61
7.2.300.0080.01616.72
7.2.290.0120.00616.73
7.2.150.0380.00715.00
7.2.140.0550.00715.17
7.2.130.0640.00615.16
7.2.120.0510.00615.05
7.2.110.0540.00314.97
7.2.100.0480.00314.80
7.2.90.0460.00914.75
7.2.80.0570.00015.01
7.2.70.0570.01014.89
7.2.60.0610.01014.85
7.2.50.0500.00715.11
7.2.40.0660.00315.10
7.2.30.0480.00914.95
7.2.20.0440.01015.00
7.2.10.0540.00614.82
7.2.00.0400.00715.04
7.1.250.0600.01114.09

preferences:
34.64 ms | 403 KiB | 5 Q