3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<TEXT MIME-Version: 1.0 From: "Tim Lincecum" Reply-To: "Tim Lincecum" Return-path: "Tim Lincecum" Content-Type: text/html; charset=iso-8859-1 Subject: Giants Win World Series! TEXT; preg_match_all( '/^([^:]+): ("?)(.+)\2/m', $string, $m, PREG_SET_ORDER ); var_export( array_column($m, 3, 1) );

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.30.0110.00721.45
8.5.20.0100.00620.26
8.5.10.0110.00620.05
8.5.00.0130.00820.00
8.4.180.0120.01020.54
8.4.170.0130.00921.92
8.4.160.0150.00822.07
8.4.150.0080.00416.93
8.4.140.0110.01217.80
8.4.130.0100.00717.98
8.4.120.0140.00620.58
8.4.110.0120.00922.77
8.4.100.0100.01018.02
8.4.90.0110.00417.73
8.4.80.0140.00617.97
8.4.70.0050.00418.19
8.4.60.0050.00320.99
8.4.50.0130.00919.34
8.4.40.0100.01019.58
8.4.30.0100.01020.77
8.4.20.0080.00818.19
8.4.10.0060.00321.98
8.3.300.0120.01118.27
8.3.290.0120.01020.93
8.3.280.0130.00818.55
8.3.270.0100.01016.50
8.3.260.0100.00916.48
8.3.250.0080.01118.73
8.3.240.0110.00816.77
8.3.230.0100.01016.79
8.3.220.0120.00617.05
8.3.210.0080.00816.59
8.3.200.0060.00216.46
8.3.190.0080.00918.90
8.3.180.0110.00516.53
8.3.170.0070.01118.79
8.3.160.0140.00318.36
8.3.150.0070.01122.40
8.3.140.0160.00316.76
8.3.130.0040.00418.41
8.3.120.0060.00319.00
8.3.110.0080.00020.94
8.3.100.0070.00324.06
8.3.90.0000.00826.77
8.3.80.0030.00717.97
8.3.70.0140.00716.63
8.3.60.0140.00718.30
8.3.50.0030.01218.45
8.3.40.0110.00721.99
8.3.30.0120.00318.97
8.3.20.0030.00624.18
8.3.10.0030.00524.66
8.3.00.0040.00426.16
8.2.300.0150.00723.70
8.2.290.0140.00520.29
8.2.280.0100.00720.14
8.2.270.0210.00016.51
8.2.260.0180.00020.41
8.2.250.0000.01818.71
8.2.240.0100.00017.28
8.2.230.0070.00322.58
8.2.220.0110.00737.54
8.2.210.0000.00826.77
8.2.200.0040.00416.75
8.2.190.0040.01116.75
8.2.180.0070.01116.88
8.2.170.0070.00718.91
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0040.00426.16
8.2.110.0080.00319.27
8.2.100.0090.00317.75
8.2.90.0050.00519.27
8.2.80.0060.00317.97
8.2.70.0080.00017.75
8.2.60.0000.00817.80
8.2.50.0000.00918.10
8.2.40.0030.00618.22
8.2.30.0130.00418.96
8.2.20.0050.00818.87
8.2.10.0120.00418.83
8.2.00.0140.00318.89
8.1.340.0110.00923.59
8.1.330.0090.01216.78
8.1.320.0090.01016.43
8.1.310.0090.00916.61
8.1.300.0100.01018.27
8.1.290.0030.00630.84
8.1.280.0100.01025.92
8.1.270.0000.00724.66
8.1.260.0050.00226.35
8.1.250.0000.00728.09
8.1.240.0080.00022.65
8.1.230.0080.00417.42
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0000.00917.50
8.1.190.0080.00017.35
8.1.180.0050.00318.10
8.1.170.0030.00618.64
8.1.160.0130.00418.64
8.1.150.0080.00818.68
8.1.140.0120.00318.64
8.1.130.0160.00018.65
8.1.120.0120.00618.80
8.1.110.0160.00318.86
8.1.100.0110.00618.73
8.1.90.0110.00218.87
8.1.80.0060.01218.83
8.1.70.0130.00318.86
8.1.60.0130.00518.93
8.1.50.0100.00818.75
8.1.40.0220.00018.98
8.1.30.0150.00518.95
8.1.20.0120.00618.87
8.1.10.0180.00318.80
8.1.00.0120.00618.82
8.0.300.0060.00318.77
8.0.290.0040.00416.88
8.0.280.0000.00818.49
8.0.270.0120.00418.15
8.0.260.0150.00018.13
8.0.250.0070.00218.23
8.0.240.0060.00618.16
8.0.230.0130.00318.26
8.0.220.0140.00418.12
8.0.210.0120.00018.14
8.0.200.0050.00818.14
8.0.190.0080.00818.23
8.0.180.0070.00718.23
8.0.170.0110.00318.21
8.0.160.0080.00518.20
8.0.150.0090.00418.19
8.0.140.0130.00018.16
8.0.130.0070.00718.11
8.0.120.0150.00018.28
8.0.110.0140.00018.05
8.0.100.0070.00718.03
8.0.90.0110.00418.12
8.0.80.0120.00318.17
8.0.70.0130.00318.25
8.0.60.0100.00518.16
8.0.50.0110.00318.10
8.0.30.0100.00718.18
8.0.20.0120.00318.19
8.0.10.0100.00518.33

preferences:
53.36 ms | 1135 KiB | 5 Q