3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match('&'.preg_quote('&oops').'pattern&', "srring"); preg_match('&'.preg_quote('&oops', '&').'pattern&', "srring");

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.10.0100.00816.78
8.5.00.0140.00820.22
8.4.150.0020.00014.05
8.4.140.0150.00617.77
8.4.130.0060.00318.27
8.4.120.0120.00822.35
8.4.110.0140.00822.33
8.4.100.0100.01218.96
8.4.90.0100.01118.78
8.4.80.0100.00718.44
8.4.70.0150.00918.12
8.4.60.0140.00620.35
8.4.50.0120.00817.78
8.4.40.0090.01217.92
8.4.30.0120.00620.53
8.4.20.0160.00319.53
8.4.10.0130.00619.50
8.3.280.0160.00618.74
8.3.270.0080.00616.82
8.3.260.0100.00916.75
8.3.250.0110.00918.76
8.3.240.0120.00717.22
8.3.230.0130.00616.77
8.3.220.0060.00419.02
8.3.210.0110.00716.89
8.3.200.0050.00617.12
8.3.190.0150.00518.90
8.3.180.0090.00616.69
8.3.170.0160.00316.66
8.3.160.0080.00016.75
8.3.150.0180.00017.26
8.3.140.0000.00716.72
8.3.130.0040.00418.72
8.3.120.0060.00318.79
8.3.110.0080.00420.94
8.3.100.0030.00616.87
8.3.90.0340.01226.77
8.3.80.0330.01526.77
8.3.70.0460.00326.77
8.3.60.0420.00626.77
8.3.50.0510.00626.77
8.3.40.0340.01026.77
8.3.30.0330.00726.77
8.3.20.0230.01626.77
8.3.10.0330.00826.77
8.3.00.0360.00726.77
8.2.290.0120.00720.34
8.2.280.0100.00520.38
8.2.270.0110.00716.93
8.2.260.0110.00717.16
8.2.250.0060.00317.00
8.2.240.0090.00019.05
8.2.230.0080.00022.58
8.2.220.0050.00524.06
8.2.210.0290.01126.77
8.2.200.0250.00726.77
8.2.190.0230.00326.77
8.2.180.0250.00626.77
8.2.170.0350.00726.77
8.2.160.0340.00626.77
8.2.150.0330.00726.77
8.2.140.0260.00926.77
8.2.130.0340.00926.77
8.2.120.0370.00626.77
8.2.110.0330.01026.77
8.2.100.0330.01026.77
8.2.90.0340.00826.77
8.2.80.0380.00326.77
8.2.70.0590.00426.77
8.2.60.0300.00926.77
8.2.50.0340.00726.77
8.2.40.0270.01226.77
8.2.30.0330.00626.77
8.2.20.0270.01226.77
8.2.10.0290.00326.77
8.2.00.0290.00426.77
8.1.330.0110.00622.07
8.1.320.0090.01316.50
8.1.310.0090.00916.91
8.1.300.0060.01318.19
8.1.290.0260.01026.77
8.1.280.0430.00626.77
8.1.270.0350.01126.77
8.1.260.0370.00026.77
8.1.250.0360.00926.77
8.1.240.0320.00626.77
8.1.230.0320.01226.77
8.1.220.0330.00426.77
8.1.210.0340.00326.77
8.1.200.0290.00326.77
8.1.190.0220.00326.77
8.1.180.0110.00626.77
8.1.170.0130.00426.77
8.1.160.0220.00626.77
8.1.150.0230.01126.77
8.1.140.0220.01626.77
8.1.130.0340.00026.77
8.1.120.0300.00726.77
8.1.110.0340.00326.77
8.1.100.0300.00726.77
8.1.90.0350.00326.77
8.1.80.0250.01226.77
8.1.70.0320.01126.77
8.1.60.0270.01226.77
8.1.50.0250.00026.77
8.1.40.0330.00926.77
8.1.30.0380.00326.77
8.1.20.0300.00926.77
8.1.10.0330.00326.77
8.1.00.0350.00726.77

preferences:
35.94 ms | 403 KiB | 5 Q