3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'asdf'; preg_match('/.(?<secondAndThird>(?<second>.)(.))(?<fourth>.)/n', $string, $m); var_export($m);

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.0130.00916.86
8.5.00.0090.01319.96
8.4.160.0110.01023.93
8.4.150.0010.00114.05
8.4.140.0070.01017.51
8.4.130.0120.00818.17
8.4.120.0120.00720.51
8.4.110.0130.00622.46
8.4.100.0120.00917.68
8.4.90.0080.00720.75
8.4.80.0120.00819.06
8.4.70.0110.00720.64
8.4.60.0020.00620.47
8.4.50.0110.01022.14
8.4.40.0100.01017.87
8.4.30.0130.00720.39
8.4.20.0100.00018.00
8.4.10.0060.00319.48
8.3.280.0110.00920.16
8.3.270.0080.01216.36
8.3.260.0130.00816.57
8.3.250.0090.00918.78
8.3.240.0060.00216.62
8.3.230.0040.00416.63
8.3.220.0110.00718.83
8.3.210.0080.00716.83
8.3.200.0090.00216.60
8.3.190.0110.00917.20
8.3.180.0110.00818.81
8.3.170.0130.00717.17
8.3.160.0130.00618.24
8.3.150.0060.01316.52
8.3.140.0080.00016.80
8.3.130.0080.00018.43
8.3.120.0060.00318.72
8.3.110.0120.00020.94
8.3.100.0070.01016.76
8.3.90.0000.00726.77
8.3.80.0070.00318.43
8.3.70.0120.00618.43
8.3.60.0060.00918.43
8.3.50.0090.01216.55
8.3.40.0030.01721.78
8.3.30.0100.00322.00
8.3.20.0190.00325.66
8.3.10.0100.01025.66
8.3.00.0110.01125.66
8.2.290.0120.00716.73
8.2.280.0150.00618.53
8.2.270.0140.00718.54
8.2.260.0160.00317.35
8.2.250.0030.00617.05
8.2.240.0140.00417.20
8.2.230.0080.00022.58
8.2.220.0030.00624.06
8.2.210.0150.00026.77
8.2.200.0080.00016.38
8.2.190.0070.01018.41
8.2.180.0040.01416.63
8.2.170.0110.00718.98
8.2.160.0150.00322.96
8.2.150.0220.00025.66
8.2.140.0090.01225.66
8.2.130.0170.00325.66
8.2.120.0150.00325.66
8.2.110.0100.01025.66
8.2.100.0180.00325.66
8.2.90.0150.00425.66
8.2.80.0110.00625.66
8.2.70.0130.01025.66
8.2.60.0070.01425.66
8.2.50.0120.00625.66
8.2.40.0150.00325.66
8.2.30.0150.00725.66
8.2.20.0090.00925.66
8.2.10.0150.00325.66
8.2.00.0130.00725.66
8.1.330.0120.00715.80
8.1.320.0130.00718.14
8.1.310.0140.00418.28
8.1.300.0130.00617.71
8.1.290.0070.00330.84
8.1.280.0070.00725.92
8.1.270.0100.00725.66
8.1.260.0110.01125.66
8.1.250.0120.00925.66
8.1.240.0160.00625.66
8.1.230.0130.00925.66
8.1.220.0210.00025.66
8.1.210.0180.00425.66
8.1.200.0150.00625.66
8.1.190.0110.01125.66
8.1.180.0150.00625.66
8.1.170.0120.00925.66
8.1.160.0110.01125.66
8.1.150.0070.01725.66
8.1.140.0140.00725.66
8.1.130.0130.00625.66
8.1.120.0130.00925.66
8.1.110.0120.00925.66
8.1.100.0160.00625.66
8.1.90.0120.01225.66
8.1.80.0100.01025.66
8.1.70.0140.00425.66
8.1.60.0070.01125.66
8.1.50.0120.00625.66
8.1.40.0090.00925.66
8.1.30.0140.00425.66
8.1.20.0140.00325.66
8.1.10.0080.00825.66
8.1.00.0120.00325.66

preferences:
38.79 ms | 403 KiB | 5 Q