3v4l.org

run code in 300+ PHP versions simultaneously
<?php $appt_notes = "Packet emailed 09-26-2014 14:21:47"; preg_match_all("/packet (e{0,1}mailed) (\d{2,4}-\d{2}-\d{2,4})/i",$appt_notes,$matches,PREG_SET_ORDER); if (!empty($matches)) { $packet_sentby = $matches[count($matches)-1][1]; $packet_date = date('m-d',strtotime($matches[count($matches)-1][2])); } else { $packet_sentby = ""; $packet_date = ""; } echo "Notes = $appt_notes <br>\n<br>\n"; echo $packet_sentby . "<br>\n" . $packet_date; echo "<hr>\n"; print_r($matches); ?>

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.3.40.0110.00719.34
8.3.30.0030.01019.13
8.3.20.0040.00420.31
8.3.10.0040.00423.61
8.3.00.0060.00319.76
8.2.170.0030.01122.96
8.2.160.0030.01320.41
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0000.00922.36
8.2.110.0060.00320.45
8.2.100.0060.00618.22
8.2.90.0080.00019.09
8.2.80.0060.00318.00
8.2.70.0050.00318.00
8.2.60.0000.00818.05
8.2.50.0000.00818.10
8.2.40.0000.00820.13
8.2.30.0040.00418.31
8.2.20.0000.00818.05
8.2.10.0000.00818.36
8.2.00.0080.00018.17
8.1.270.0130.00323.79
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0060.00321.44
8.1.230.0080.00417.89
8.1.220.0030.00517.91
8.1.210.0050.00318.77
8.1.200.0000.00917.60
8.1.190.0000.00817.73
8.1.180.0050.00318.10
8.1.170.0040.00418.79
8.1.160.0040.00422.05
8.1.150.0000.00818.95
8.1.140.0040.00417.88
8.1.130.0000.00717.87
8.1.120.0040.00417.80
8.1.110.0040.00417.71
8.1.100.0030.00517.75
8.1.90.0020.00517.77
8.1.80.0040.00417.82
8.1.70.0000.00717.82
8.1.60.0080.00017.92
8.1.50.0000.00817.72
8.1.40.0000.00817.71
8.1.30.0090.00018.00
8.1.20.0040.00417.99
8.1.10.0000.00717.88
8.1.00.0040.00417.87
8.0.300.0040.00418.77
8.0.290.0040.00417.13
8.0.280.0000.00718.58
8.0.270.0030.00317.37
8.0.260.0030.00317.29
8.0.250.0000.00717.36
8.0.240.0030.00317.37
8.0.230.0030.00317.38
8.0.220.0000.00717.31
8.0.210.0030.00317.13
8.0.200.0070.00017.33
8.0.190.0070.00017.23
8.0.180.0040.00417.23
8.0.170.0030.00517.29
8.0.160.0000.00717.13
8.0.150.0040.00417.27
8.0.140.0040.00417.23
8.0.130.0000.00613.55
8.0.120.0080.00017.27
8.0.110.0050.00217.16
8.0.100.0000.00717.25
8.0.90.0000.00817.33
8.0.80.0080.00817.26
8.0.70.0060.00317.29
8.0.60.0000.00717.06
8.0.50.0040.00417.11
8.0.30.0140.00617.61
8.0.20.0100.01017.57
8.0.10.0030.00517.27
8.0.00.0120.00817.12
7.4.330.0030.00315.19
7.4.320.0060.00016.87
7.4.300.0000.00717.01
7.4.290.0070.00416.77
7.4.280.0000.00716.88
7.4.270.0000.00716.86
7.4.260.0000.00716.93
7.4.250.0040.00416.80
7.4.240.0050.00216.98
7.4.230.0050.00316.98
7.4.220.0140.00416.80
7.4.210.0110.00317.09
7.4.200.0080.00016.98
7.4.160.0090.00617.11
7.4.150.0190.00617.40
7.4.140.0030.01517.86
7.4.130.0030.01316.93
7.4.120.0100.00916.97
7.4.110.0110.00717.17
7.4.100.0130.00416.95
7.4.90.0060.01617.03
7.4.80.0130.00519.39
7.4.70.0060.01216.79
7.4.60.0100.01316.85
7.4.50.0040.00416.94
7.4.40.0150.00316.78
7.4.30.0040.01216.86
7.4.00.0100.00615.46
7.3.330.0050.00013.32
7.3.320.0050.00013.56
7.3.310.0040.00416.62
7.3.300.0000.00716.68
7.3.290.0080.01116.61
7.3.280.0070.00916.68
7.3.270.0120.00617.40
7.3.260.0150.00316.70
7.3.250.0080.01816.99
7.3.240.0090.00916.95
7.3.230.0100.01416.75
7.3.210.0070.01016.86
7.3.200.0100.00719.39
7.3.190.0090.01216.67
7.3.180.0060.01016.61
7.3.170.0100.00716.93
7.3.160.0070.01016.93
7.2.330.0100.01316.82
7.2.320.0060.01316.82
7.2.310.0090.00917.15
7.2.300.0070.01117.00
7.2.290.0120.00616.88
7.2.60.0000.01117.11
7.2.00.0120.00919.71
7.1.200.0110.00416.27
7.1.100.0000.01018.74
7.1.70.0000.00717.66
7.1.60.0070.01719.11
7.1.50.0040.02117.38
7.1.00.0100.07022.52
7.0.200.0030.00516.93
7.0.140.0030.07722.04
7.0.90.0070.05321.83
7.0.80.0000.04021.79
7.0.70.0070.04721.64
7.0.60.0000.03721.73
7.0.50.0070.05322.12
7.0.40.0070.03720.04
7.0.30.0000.03720.08
7.0.20.0000.03720.18
7.0.10.0030.04320.09
7.0.00.0070.04020.12
5.6.280.0000.07020.78
5.6.240.0000.04320.63
5.6.230.0000.04320.50
5.6.220.0000.04020.64
5.6.210.0070.04320.46
5.6.200.0030.04021.17
5.6.190.0030.04321.10
5.6.180.0000.03721.05
5.6.170.0030.04021.00
5.6.160.0070.04020.93
5.6.150.0030.03320.99
5.6.140.0030.03021.07
5.6.130.0000.04721.02
5.6.120.0030.04021.00
5.6.110.0000.05321.02
5.6.100.0030.03320.95
5.6.90.0000.06021.05
5.6.80.0000.08020.49
5.6.70.0030.07020.32
5.6.60.0100.07020.37
5.6.50.0030.08020.43
5.6.40.0030.05720.35
5.6.30.0030.04720.43
5.6.20.0030.04720.43
5.6.10.0130.06720.49
5.6.00.0030.08020.37
5.5.380.0030.04320.45
5.5.370.0030.04020.39
5.5.360.0000.03720.37
5.5.350.0070.05020.37
5.5.340.0030.03720.89
5.5.330.0030.03320.64
5.5.320.0030.03020.88
5.5.310.0070.03020.92
5.5.300.0030.04020.82
5.5.290.0070.03020.77
5.5.280.0070.03720.77
5.5.270.0030.03720.63
5.5.260.0000.07720.85
5.5.250.0030.05720.61
5.5.240.0070.04020.27
5.5.230.0100.07720.14
5.5.220.0000.04020.13
5.5.210.0030.07020.20
5.5.200.0070.08020.22
5.5.190.0030.05019.99
5.5.180.0030.04020.14
5.5.160.0130.07020.12
5.5.150.0000.08020.20
5.5.140.0100.04320.21
5.5.130.0000.04720.23
5.5.120.0030.08320.26
5.5.110.0030.07020.18
5.5.100.0070.08020.16
5.5.90.0000.08020.09
5.5.80.0030.08020.01
5.5.70.0070.07320.14
5.5.60.0070.07319.95
5.5.50.0100.04020.07
5.5.40.0100.06320.02
5.5.30.0100.06320.15
5.5.20.0070.08020.14
5.5.10.0030.08320.07
5.5.00.0000.08720.05
5.4.450.0000.04019.38
5.4.440.0030.03719.55
5.4.430.0030.05319.19
5.4.420.0030.06319.55
5.4.410.0070.07319.28
5.4.400.0130.07019.16
5.4.390.0030.04719.13
5.4.380.0070.07318.87
5.4.370.0030.04318.95
5.4.360.0030.08018.89
5.4.350.0030.04019.13
5.4.340.0000.07019.20
5.4.320.0130.03319.04
5.4.310.0100.07018.90
5.4.300.0000.05019.20
5.4.290.0000.04019.04
5.4.280.0000.04019.23
5.4.270.0000.06719.09
5.4.260.0100.06319.04
5.4.250.0070.07019.02
5.4.240.0130.06719.04
5.4.230.0030.06019.13
5.4.220.0000.08018.94
5.4.210.0100.03719.04
5.4.200.0070.06018.89
5.4.190.0100.07019.04
5.4.180.0000.08019.11
5.4.170.0000.08019.22
5.4.160.0000.07718.87
5.4.150.0070.05319.20
5.4.140.0030.07016.50
5.4.130.0070.06016.51
5.4.120.0000.04316.46
5.4.110.0070.04716.49
5.4.100.0030.07016.49
5.4.90.0030.07016.32
5.4.80.0000.06716.54
5.4.70.0070.06716.32
5.4.60.0070.07316.41
5.4.50.0070.04016.36
5.4.40.0100.06716.42
5.4.30.0030.07016.45
5.4.20.0000.04716.48
5.4.10.0030.03716.29
5.4.00.0000.03715.87
5.3.290.0000.07714.64
5.3.280.0100.03714.51
5.3.270.0000.04314.59
5.3.260.0000.07714.66
5.3.250.0030.04314.70
5.3.240.0030.04014.55
5.3.230.0000.07014.65
5.3.220.0070.07014.66
5.3.210.0030.08014.70
5.3.200.0000.07314.56
5.3.190.0030.06314.59
5.3.180.0000.07714.59
5.3.170.0000.07714.52
5.3.160.0000.07714.62
5.3.150.0030.07014.66
5.3.140.0030.08014.59
5.3.130.0070.06314.53
5.3.120.0030.07314.52
5.3.110.0030.04014.61
5.3.100.0070.06314.03
5.3.90.0000.04014.14
5.3.80.0000.05314.00
5.3.70.0030.07314.10
5.3.60.0000.07313.88
5.3.50.0030.06013.86
5.3.40.0030.07313.82
5.3.30.0070.04013.79
5.3.20.0000.07313.58
5.3.10.0000.05313.77
5.3.00.0100.05713.57
5.2.170.0030.06011.06
5.2.160.0000.06011.25
5.2.150.0000.06311.22
5.2.140.0030.04311.25
5.2.130.0030.05711.14
5.2.120.0030.05311.20
5.2.110.0070.02011.15
5.2.100.0000.03311.17
5.2.90.0030.05710.98
5.2.80.0070.05310.95
5.2.70.0000.04711.11
5.2.60.0000.05711.09
5.2.50.0000.02710.91
5.2.40.0070.05710.93
5.2.30.0030.02310.97
5.2.20.0030.06310.91
5.2.10.0030.03710.94
5.2.00.0030.06010.70
5.1.60.0000.02710.18
5.1.50.0030.04010.18
5.1.40.0030.05010.18
5.1.30.0070.05010.36
5.1.20.0000.02310.28
5.1.10.0000.05310.18
5.1.00.0000.04310.18
5.0.50.0030.03310.18
5.0.40.0070.04310.18
5.0.30.0030.06710.18
5.0.20.0030.03010.18
5.0.10.0030.02710.18
5.0.00.0070.06010.18
4.4.90.0070.03010.18
4.4.80.0030.01010.18
4.4.70.0070.03010.18
4.4.60.0000.03310.18
4.4.50.0000.02710.18
4.4.40.0000.05310.18
4.4.30.0030.01710.18
4.4.20.0000.03310.18
4.4.10.0000.01710.18
4.4.00.0030.05710.18
4.3.110.0070.01310.18
4.3.100.0000.02710.18
4.3.90.0000.03710.18
4.3.80.0070.04310.18
4.3.70.0100.02310.18
4.3.60.0030.02010.18
4.3.50.0000.03710.18
4.3.40.0000.05310.18
4.3.30.0000.02710.18
4.3.20.0030.03010.18
4.3.10.0070.03310.18
4.3.00.0030.02710.18

preferences:
43.46 ms | 400 KiB | 5 Q