3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = "foo\r\nbar"; var_dump(preg_match_all('/^foo$/m', $test)); var_dump(preg_match_all('/(*ANYCRLF)^foo$/m', $test));

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.0110.01220.09
8.4.150.0020.00014.05
8.4.140.0100.01217.66
8.4.130.0140.00717.82
8.4.120.0110.00920.50
8.4.110.0090.00822.59
8.4.100.0070.00217.64
8.4.90.0120.00717.83
8.4.80.0140.00617.89
8.4.70.0100.00718.35
8.4.60.0090.01118.61
8.4.50.0080.00719.87
8.4.40.0130.00317.55
8.4.30.0060.01220.57
8.4.20.0040.00817.98
8.4.10.0130.00721.93
8.3.280.0100.01018.42
8.3.270.0140.00616.54
8.3.260.0160.00416.49
8.3.250.0090.01119.06
8.3.240.0100.01016.33
8.3.230.0040.00416.87
8.3.220.0100.00917.21
8.3.210.0130.00516.45
8.3.200.0060.00316.84
8.3.190.0110.00716.52
8.3.180.0110.00816.50
8.3.170.0100.00716.79
8.3.160.0080.01118.44
8.3.150.0120.00620.72
8.3.140.0070.01118.86
8.3.130.0040.00418.60
8.3.120.0080.00620.89
8.3.110.0150.00620.94
8.3.100.0090.00024.06
8.3.90.0140.00426.77
8.3.80.0060.00317.97
8.3.70.0140.00716.63
8.3.60.0000.01518.31
8.3.50.0070.00718.57
8.3.40.0120.00921.78
8.3.30.0140.00018.92
8.3.20.0070.00024.18
8.3.10.0000.00724.66
8.3.00.0050.00326.16
8.2.290.0110.00920.07
8.2.280.0080.01018.74
8.2.270.0070.01119.32
8.2.260.0090.00616.67
8.2.250.0030.01216.63
8.2.240.0060.00316.57
8.2.230.0030.00622.58
8.2.220.0030.00637.54
8.2.210.0040.00426.77
8.2.200.0040.00416.63
8.2.190.0110.01116.58
8.2.180.0180.00316.63
8.2.170.0140.00719.09
8.2.160.0100.00722.96
8.2.150.0050.00225.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00821.11
8.2.110.0000.00922.20
8.2.100.0030.01017.66
8.2.90.0100.00317.63
8.2.80.0220.00817.50
8.2.70.0240.00317.25
8.2.60.0300.00317.49
8.2.50.0260.00917.36
8.2.40.0220.00717.50
8.2.30.0220.00417.38
8.2.20.0240.00317.38
8.2.10.0210.00717.38
8.2.00.0210.00717.50
8.1.330.0130.00518.29
8.1.320.0080.00716.55
8.1.310.0080.00018.56
8.1.300.0040.00417.89
8.1.290.0060.00330.84
8.1.280.0120.00325.92
8.1.270.0060.00324.66
8.1.260.0040.00426.35
8.1.250.0070.00728.09
8.1.240.0090.00023.84
8.1.230.0100.00022.08
8.1.220.0280.00017.23
8.1.210.0220.00617.11
8.1.200.0190.00617.38
8.1.190.0240.00317.13
8.1.180.0230.00517.21
8.1.170.0240.00317.34
8.1.160.0270.00017.00
8.1.150.0260.00417.10
8.1.140.0390.00017.13
8.1.130.0140.01217.13
8.1.120.0230.00517.22
8.1.110.0230.00517.50
8.1.100.0220.00717.38
8.1.90.0230.00417.11
8.1.80.0220.00417.13
8.1.70.0240.00017.39
8.1.60.0270.00017.38
8.1.50.0280.00017.09
8.1.40.0180.00917.38
8.1.30.0210.00717.38
8.1.20.0200.00817.38
8.1.10.0240.00317.35
8.1.00.0300.00017.50
8.0.300.0240.00416.80
8.0.290.0260.00316.80
8.0.280.0250.00316.80
8.0.270.0280.00016.80
8.0.260.0220.00616.80
8.0.250.0200.00916.80
8.0.240.0200.00816.80
8.0.230.0280.00016.80
8.0.220.0270.00316.80
8.0.210.0220.00416.80
8.0.200.0190.00616.80
8.0.190.0200.00816.80
8.0.180.0210.00816.80
8.0.170.0270.00016.80
8.0.160.0270.00016.80
8.0.150.0340.00016.80
8.0.140.0180.00716.80
8.0.130.0220.00716.80
8.0.120.0240.00316.80
8.0.110.0200.00416.80
8.0.100.0270.00016.80
8.0.90.0270.00016.80
8.0.80.0230.00318.33
8.0.70.0200.00716.80
8.0.60.0280.00016.80
8.0.50.0220.00316.80
8.0.30.0230.00316.80
8.0.20.0270.00016.80
8.0.10.0210.00616.80

preferences:
30.91 ms | 403 KiB | 5 Q