3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(preg_match('/a/u', " ", $m, 0, 1)); var_dump(preg_last_error_msg()); var_dump(preg_match('/(?:\D+|<\d+>)*[!?]/', "foobar foobar foobar", $m, 0, 1)); var_dump(preg_last_error_msg());

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.0120.01420.09
8.4.150.0070.00716.88
8.4.140.0140.01117.41
8.4.130.0110.00617.47
8.4.120.0150.01220.77
8.4.110.0100.00718.75
8.4.100.0100.00918.98
8.4.90.0140.01020.46
8.4.80.0120.01018.83
8.4.70.0030.00919.12
8.4.60.0060.00418.79
8.4.50.0100.01518.48
8.4.40.0070.01717.63
8.4.30.0100.01320.33
8.4.20.0100.01422.64
8.4.10.0030.00723.73
8.3.280.0020.00014.05
8.3.270.0120.01216.43
8.3.260.0110.01016.94
8.3.250.0150.00718.74
8.3.240.0040.00516.89
8.3.230.0140.01016.45
8.3.220.0130.01018.92
8.3.210.0130.01216.88
8.3.200.0030.00716.55
8.3.190.0100.01217.01
8.3.180.0050.01018.90
8.3.170.0100.01316.55
8.3.160.0030.00617.19
8.3.150.0030.00617.01
8.3.140.0000.01020.91
8.3.130.0070.00318.31
8.3.120.0060.01218.77
8.3.110.0040.00720.94
8.3.100.0100.01416.73
8.3.90.0060.00326.77
8.3.80.0050.00517.97
8.3.70.0170.01018.43
8.3.60.0100.00718.27
8.3.50.0090.00918.59
8.3.40.0070.01321.91
8.3.30.0160.00719.04
8.3.20.0030.00624.18
8.3.10.0090.00024.66
8.3.00.0060.00326.16
8.2.290.0090.01420.45
8.2.280.0110.01418.39
8.2.270.0100.01016.74
8.2.260.0070.01116.78
8.2.250.0050.00516.67
8.2.240.0080.00318.98
8.2.230.0080.00322.58
8.2.220.0030.00616.98
8.2.210.0100.01326.77
8.2.200.0070.00416.88
8.2.190.0120.01216.63
8.2.180.0110.01516.88
8.2.170.0120.00618.91
8.2.160.0130.00322.96
8.2.150.0060.00325.66
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0040.00422.27
8.2.110.0040.00819.30
8.2.100.0080.00518.03
8.2.90.0330.00417.50
8.2.80.0260.00717.13
8.2.70.0210.01117.50
8.2.60.0250.01117.38
8.2.50.0270.00617.37
8.2.40.0260.00317.63
8.2.30.0250.00417.50
8.2.20.0200.01217.25
8.2.10.0250.00517.50
8.2.00.0210.00717.63
8.1.330.0160.00621.70
8.1.320.0080.01516.10
8.1.310.0060.01518.07
8.1.300.0030.00616.38
8.1.290.0050.00530.84
8.1.280.0070.01825.92
8.1.270.0000.00924.66
8.1.260.0050.00526.35
8.1.250.0070.00428.09
8.1.240.0080.00322.38
8.1.230.0030.01020.81
8.1.220.0260.00517.24
8.1.210.0240.00517.13
8.1.200.0240.00417.00
8.1.190.0220.00616.84
8.1.180.0220.00617.13
8.1.170.0250.00417.50
8.1.160.0240.00517.38
8.1.150.0250.00417.13
8.1.140.0240.00517.25
8.1.130.0220.00717.63
8.1.120.0140.01517.38
8.1.110.0150.01517.25
8.1.100.0180.01117.00
8.1.90.0280.00917.22
8.1.80.0270.00917.25
8.1.70.0180.01216.88
8.1.60.0220.00717.37
8.1.50.0220.00617.13
8.1.40.0190.01017.38
8.1.30.0170.01117.50
8.1.20.0270.00317.50
8.1.10.0250.00617.25
8.1.00.0200.00817.25
8.0.300.0190.01216.50
8.0.290.0240.00716.50
8.0.280.0180.00916.72
8.0.270.0220.01016.37
8.0.260.0270.00316.50
8.0.250.0220.01016.72
8.0.240.0190.01116.75
8.0.230.0230.00616.62
8.0.220.0260.00416.63
8.0.210.0250.00416.73
8.0.200.0180.01216.63
8.0.190.0240.00416.75
8.0.180.0210.01016.75
8.0.170.0240.00616.50
8.0.160.0310.00016.63
8.0.150.0230.00816.75
8.0.140.0210.00916.61
8.0.130.0270.00416.59
8.0.120.0220.00816.38
8.0.110.0240.00316.63
8.0.100.0160.01016.61
8.0.90.0250.00616.75
8.0.80.0350.00216.50
8.0.70.0240.00816.50
8.0.60.0230.00716.50
8.0.50.0170.01216.73
8.0.30.0230.00616.63
8.0.20.0240.00616.71
8.0.10.0210.00716.59

preferences:
32.45 ms | 403 KiB | 5 Q