3v4l.org

run code in 300+ PHP versions simultaneously
<?php $field_from_db = 'Hello How are you :slight_smile::joy::_do_not_match:test test::'; $regex = '/:[a-z0-9]+(?:[-’_][a-z0-9]+)*:/i'; preg_match_all($regex, $field_from_db, $matches); var_export($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.4.120.0090.01224.23
8.4.110.0120.00818.60
8.4.100.0140.00618.89
8.4.90.0110.01020.86
8.4.80.0150.00518.58
8.4.70.0130.00717.96
8.4.60.0120.00918.66
8.4.50.0100.01018.58
8.4.40.0050.00318.10
8.4.30.0050.00320.71
8.4.20.0060.01020.04
8.4.10.0100.00719.78
8.3.250.0110.00718.88
8.3.240.0090.00717.24
8.3.230.0120.00816.66
8.3.220.0060.00218.73
8.3.210.0120.00416.52
8.3.200.0060.00316.65
8.3.190.0100.00717.09
8.3.180.0100.00517.25
8.3.170.0110.00718.67
8.3.160.0120.00616.63
8.3.150.0140.00717.16
8.3.140.0030.01316.53
8.3.130.0140.00616.16
8.3.120.0070.01118.72
8.3.110.0060.00620.94
8.3.100.0000.00816.46
8.3.90.0090.00926.77
8.3.80.0040.00417.97
8.3.70.0120.00916.75
8.3.60.0150.00316.94
8.3.50.0120.00316.65
8.3.40.0100.00621.76
8.3.30.0070.01422.96
8.3.20.0160.00323.66
8.3.10.0090.00923.49
8.3.00.0100.01022.96
8.2.290.0100.00320.61
8.2.280.0080.00718.82
8.2.270.0110.00719.35
8.2.260.0140.00418.68
8.2.250.0040.00418.70
8.2.240.0030.00619.28
8.2.230.0140.00322.58
8.2.220.0000.00924.06
8.2.210.0080.00826.77
8.2.200.0090.00016.75
8.2.190.0090.00916.88
8.2.180.0080.00616.63
8.2.170.0140.00422.96
8.2.160.0090.00922.96
8.2.150.0080.00822.96
8.2.140.0110.00422.96
8.2.130.0110.00422.96
8.2.120.0110.00422.96
8.2.110.0110.00422.96
8.2.100.0060.00922.96
8.2.90.0080.00822.96
8.2.80.0060.00922.96
8.2.70.0130.00322.96
8.2.60.0100.00622.96
8.2.50.0090.00622.96
8.2.40.0060.00922.96
8.2.30.0140.00722.96
8.2.20.0090.01222.96
8.2.10.0150.00622.96
8.2.00.0070.00722.96
8.1.330.0110.01021.88
8.1.320.0110.00918.20
8.1.310.0040.00418.51
8.1.300.0100.00018.57
8.1.290.0030.00630.84
8.1.280.0110.00725.92
8.1.270.0100.01022.96
8.1.260.0110.01122.96
8.1.250.0130.01022.96
8.1.240.0200.00322.96
8.1.230.0110.00422.96
8.1.220.0110.00422.96
8.1.210.0120.00322.96
8.1.200.0100.00322.96
8.1.190.0040.01122.96
8.1.180.0060.00922.96
8.1.170.0110.00422.96
8.1.160.0090.00922.96
8.1.150.0140.00722.96
8.1.140.0110.00422.96
8.1.130.0100.01022.96
8.1.120.0180.00322.96
8.1.110.0050.01022.96
8.1.100.0080.00622.96
8.1.90.0140.00022.96
8.1.80.0180.00422.96
8.1.70.0140.00722.96
8.1.60.0090.00622.96
8.1.50.0210.00022.96
8.1.40.0120.00922.96
8.1.30.0140.00322.96
8.1.20.0040.01122.96
8.1.10.0070.01122.96
8.1.00.0070.00722.96

preferences:
26.84 ms | 403 KiB | 5 Q