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( '/^([^:]+): (.+)/m', $string, $m, PREG_SET_ORDER ); var_export( array_column($m, 2, 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.0080.01121.34
8.5.20.0090.00820.04
8.5.10.0100.00720.14
8.5.00.0130.01120.11
8.4.180.0130.00921.97
8.4.170.0150.00623.91
8.4.160.0110.01123.93
8.4.150.0080.00516.83
8.4.140.0180.00317.96
8.4.130.0090.01117.75
8.4.120.0100.00920.33
8.4.110.0050.00818.86
8.4.100.0100.00817.66
8.4.90.0100.00418.99
8.4.80.0020.00717.95
8.4.70.0060.00218.02
8.4.60.0150.00519.04
8.4.50.0090.01218.53
8.4.40.0190.00319.54
8.4.30.0110.00819.01
8.4.20.0100.01019.50
8.4.10.0140.00322.11
8.3.300.0110.01020.77
8.3.290.0130.00820.94
8.3.280.0100.01118.63
8.3.270.0110.01016.32
8.3.260.0140.00616.88
8.3.250.0100.00819.01
8.3.240.0080.00216.40
8.3.230.0090.00716.48
8.3.220.0030.00417.22
8.3.210.0030.00516.50
8.3.200.0060.00316.75
8.3.190.0130.00517.29
8.3.180.0080.00716.61
8.3.170.0130.00718.84
8.3.160.0150.00317.17
8.3.150.0150.00317.51
8.3.140.0110.00317.00
8.3.130.0040.00418.49
8.3.120.0180.00418.94
8.3.110.0000.00820.94
8.3.100.0130.00324.06
8.3.90.0060.00326.77
8.3.80.0000.00917.97
8.3.70.0150.00618.43
8.3.60.0140.00418.30
8.3.50.0120.00918.59
8.3.40.0130.00722.04
8.3.30.0040.01118.79
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.300.0100.01018.29
8.2.290.0130.00620.69
8.2.280.0090.01018.75
8.2.270.0130.01017.38
8.2.260.0000.00818.57
8.2.250.0110.00418.79
8.2.240.0060.01217.06
8.2.230.0000.00922.58
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0060.00316.75
8.2.190.0120.00616.75
8.2.180.0140.00016.75
8.2.170.0160.00319.08
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0050.00524.66
8.2.130.0080.00026.16
8.2.120.0080.00026.16
8.2.110.0050.00522.28
8.2.100.0080.00419.82
8.2.90.0000.00817.75
8.2.80.0000.00818.91
8.2.70.0000.00817.75
8.2.60.0040.00417.88
8.2.50.0080.00018.07
8.2.40.0040.00418.03
8.2.30.0120.00619.06
8.2.20.0120.00418.98
8.2.10.0100.00619.09
8.2.00.0100.00618.90
8.1.340.0140.00819.66
8.1.330.0110.00821.63
8.1.320.0120.00616.19
8.1.310.0070.00718.42
8.1.300.0150.00418.14
8.1.290.0070.00330.84
8.1.280.0110.00725.92
8.1.270.0060.00324.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0110.00020.41
8.1.230.0080.00417.82
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0000.00917.36
8.1.190.0030.00517.11
8.1.180.0030.00619.29
8.1.170.0040.00418.53
8.1.160.0150.00018.74
8.1.150.0170.00018.69
8.1.140.0000.01718.61
8.1.130.0130.00318.68
8.1.120.0100.00518.85
8.1.110.0100.00518.86
8.1.100.0130.00418.88
8.1.90.0060.00618.74
8.1.80.0120.00618.75
8.1.70.0130.00318.82
8.1.60.0150.00418.89
8.1.50.0110.00818.75
8.1.40.0130.00418.93
8.1.30.0160.00318.95
8.1.20.0130.00418.82
8.1.10.0110.00718.95
8.1.00.0120.00818.84
8.0.300.0060.00318.77
8.0.290.0080.00017.00
8.0.280.0000.00718.45
8.0.270.0140.00218.21
8.0.260.0120.00418.23
8.0.250.0090.00518.16
8.0.240.0050.00518.24
8.0.230.0000.01018.23
8.0.220.0120.00018.05
8.0.210.0070.00718.04
8.0.200.0050.00918.26
8.0.190.0020.00618.25
8.0.180.0050.00518.35
8.0.170.0120.00318.22
8.0.160.0120.00318.13
8.0.150.0080.00818.17
8.0.140.0070.00718.23
8.0.130.0130.00018.03
8.0.120.0150.00018.17
8.0.110.0100.00218.06
8.0.100.0000.01518.05
8.0.90.0160.00018.15
8.0.80.0110.00518.17
8.0.70.0060.00918.16
8.0.60.0120.00418.04
8.0.50.0140.00018.06
8.0.30.0130.00318.04
8.0.20.0130.00218.14
8.0.10.0070.00718.20

preferences:
57.45 ms | 1139 KiB | 5 Q