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]; if (preg_match("/^\d{4}/",$matches[count($matches)-1][2])) { $packet_date = date('m-d',strtotime($matches[count($matches)-1][2])); } else { $packet_date = date_format(date_create_from_format('Y-m-d',$matches[count($matches)-1][2]),'m-d'); } } 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.70.0110.00717.13
8.3.60.0130.00618.43
8.3.50.0080.01122.13
8.3.40.0140.00419.16
8.3.30.0140.00019.04
8.3.20.0000.00720.16
8.3.10.0040.00423.52
8.3.00.0060.00319.63
8.2.180.0100.00616.75
8.2.170.0060.00922.96
8.2.160.0120.00320.43
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0030.00526.16
8.2.120.0030.00622.36
8.2.110.0150.00322.25
8.2.100.0000.01117.88
8.2.90.0050.00319.36
8.2.80.0040.00418.13
8.2.70.0050.00317.97
8.2.60.0040.00418.04
8.2.50.0060.00318.07
8.2.40.0000.00820.20
8.2.30.0000.00718.20
8.2.20.0080.00018.01
8.2.10.0000.00818.07
8.2.00.0000.00818.07
8.1.280.0000.01425.92
8.1.270.0080.00023.88
8.1.260.0030.00526.35
8.1.250.0050.00328.09
8.1.240.0060.00323.69
8.1.230.0040.00819.10
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0080.00417.48
8.1.190.0030.00517.47
8.1.180.0060.00318.10
8.1.170.0050.00318.81
8.1.160.0020.00521.97
8.1.150.0040.00418.86
8.1.140.0070.00017.76
8.1.130.0070.00017.87
8.1.120.0000.00717.63
8.1.110.0000.00717.70
8.1.100.0000.00817.75
8.1.90.0040.00417.71
8.1.80.0000.00717.54
8.1.70.0080.00017.57
8.1.60.0000.00817.65
8.1.50.0050.00317.68
8.1.40.0020.00517.54
8.1.30.0000.00817.79
8.1.20.0050.00317.66
8.1.10.0040.00417.70
8.1.00.0040.00417.69
8.0.300.0000.00818.77
8.0.290.0000.00717.00
8.0.280.0040.00418.48
8.0.270.0040.00417.22
8.0.260.0000.00717.34
8.0.250.0040.00417.20
8.0.240.0040.00417.29
8.0.230.0070.00017.30
8.0.220.0040.00417.12
8.0.210.0000.00717.13
8.0.200.0060.00317.29
8.0.190.0030.00517.14
8.0.180.0000.00817.28
8.0.170.0000.00717.25
8.0.160.0040.00417.36
8.0.150.0030.00417.09
8.0.140.0050.00217.22
8.0.130.0030.00313.63
8.0.120.0030.00517.15
8.0.110.0060.00317.16
8.0.100.0020.00517.11
8.0.90.0040.00417.36
8.0.80.0070.01417.22
8.0.70.0050.00317.24
8.0.60.0040.00417.21
8.0.50.0000.00717.02
8.0.30.0110.01017.43
8.0.20.0130.00617.40
8.0.10.0000.00717.25
8.0.00.0120.00517.02
7.4.330.0000.00515.17
7.4.320.0070.00016.80
7.4.300.0030.00316.83
7.4.290.0030.00716.71
7.4.280.0000.00916.72
7.4.270.0040.00416.80
7.4.260.0020.00516.85
7.4.250.0080.00016.75
7.4.240.0060.00116.71
7.4.230.0000.00716.81
7.4.220.0190.00016.90
7.4.210.0100.00616.91
7.4.200.0030.00316.74
7.4.160.0080.00817.09
7.4.150.0090.00917.40
7.4.140.0100.01017.86
7.4.130.0090.00716.84
7.4.120.0040.01416.85
7.4.110.0150.00816.79
7.4.100.0140.00716.84
7.4.90.0100.00916.89
7.4.80.0120.00819.39
7.4.70.0100.00716.95
7.4.60.0090.00916.74
7.4.50.0030.00516.68
7.4.40.0030.01416.73
7.4.30.0150.00416.90
7.4.00.0090.00615.36
7.3.330.0030.00313.44
7.3.320.0050.00013.44
7.3.310.0070.00016.68
7.3.300.0000.00716.65
7.3.290.0050.01116.60
7.3.280.0080.00916.62
7.3.270.0070.01117.40
7.3.260.0080.01216.59
7.3.250.0130.00816.78
7.3.240.0120.00916.76
7.3.230.0100.00716.74
7.3.210.0080.01216.73
7.3.200.0110.01116.78
7.3.190.0120.00416.89
7.3.180.0120.00616.81
7.3.170.0030.01316.79
7.3.160.0060.00916.64
7.2.330.0170.00616.70
7.2.320.0120.01216.75
7.2.310.0090.01117.03
7.2.300.0060.00917.03
7.2.290.0130.00316.80
7.2.00.0120.00619.52
7.1.100.0100.00718.50
7.1.70.0060.00617.47
7.1.60.0060.01919.11
7.1.50.0070.02017.32
7.1.00.0070.07322.32
7.0.200.0040.00416.78
7.0.140.0000.07021.99
7.0.90.0000.05319.88
7.0.80.0000.08019.91
7.0.70.0100.08319.92
7.0.60.0000.04719.81
7.0.50.0100.04320.27
7.0.40.0070.08320.11
7.0.30.0030.08020.12
7.0.20.0130.08020.17
7.0.10.0070.05320.13
7.0.00.0170.04020.04
5.6.280.0030.07321.06
5.6.240.0100.06720.46
5.6.230.0130.08020.48
5.6.220.0170.07020.61
5.6.210.0100.07720.60
5.6.200.0070.04020.99
5.6.190.0000.04721.03
5.6.180.0100.04321.03
5.6.170.0170.08321.03
5.6.160.0030.05021.07
5.6.150.0070.04720.93
5.6.140.0130.07721.03
5.6.130.0200.07021.03
5.6.120.0130.08321.16
5.6.110.0200.03321.07
5.6.100.0130.07320.91
5.6.90.0130.07720.92
5.6.80.0170.07320.39
5.6.70.0170.07320.41
5.6.60.0100.08320.47
5.6.50.0000.08720.35
5.6.40.0000.04720.31
5.6.30.0130.06720.42
5.6.20.0130.06320.35
5.6.10.0170.06720.43
5.6.00.0070.07720.29
5.5.380.0030.03720.32
5.5.370.0030.07720.30
5.5.360.0070.07720.34
5.5.350.0070.08020.35
5.5.340.0100.05720.89
5.5.330.0070.05020.79
5.5.320.0100.08720.79
5.5.310.0100.06020.76
5.5.300.0000.05320.92
5.5.290.0030.08720.79
5.5.280.0030.08720.88
5.5.270.0130.04020.78
5.5.260.0030.08320.81
5.5.250.0070.08320.73
5.5.240.0100.08020.11
5.5.230.0070.06720.21
5.5.220.0070.08020.19
5.5.210.0130.08320.02
5.5.200.0070.06720.09
5.5.190.0000.04720.18
5.5.180.0030.08720.25
5.5.160.0100.05720.22
5.5.150.0130.03019.98
5.5.140.0130.04020.17
5.5.130.0100.08020.20
5.5.120.0070.06320.16
5.5.110.0100.07320.10
5.5.100.0070.08020.11
5.5.90.0170.03720.06
5.5.80.0070.07720.04
5.5.70.0100.04020.00
5.5.60.0100.07720.07
5.5.50.0000.04320.14
5.5.40.0030.04020.13
5.5.30.0030.04020.02
5.5.20.0000.04320.03
5.5.10.0030.04319.97
5.5.00.0000.05020.12
5.4.450.0130.04019.45
5.4.440.0070.05719.27
5.4.430.0030.05319.26
5.4.420.0070.08319.41
5.4.410.0000.08719.07
5.4.400.0130.03318.90
5.4.390.0030.08019.04
5.4.380.0170.06719.16
5.4.370.0070.08019.13
5.4.360.0100.04019.21
5.4.350.0130.02718.84
5.4.340.0070.05018.88
5.4.320.0030.08319.16
5.4.310.0070.05318.84
5.4.300.0100.07319.16
5.4.290.0130.07019.15
5.4.280.0030.06019.04
5.4.270.0300.04319.03
5.4.260.0100.07019.04
5.4.250.0070.07319.04
5.4.240.0130.06018.95
5.4.230.0130.06019.04
5.4.220.0070.07718.88
5.4.210.0070.06318.89
5.4.200.0130.03318.88
5.4.190.0030.04319.11
5.4.180.0030.04019.02
5.4.170.0030.04018.89
5.4.160.0130.03019.08
5.4.150.0070.03719.10
5.4.140.0030.03716.30
5.4.130.0000.04316.40
5.4.120.0100.03716.46
5.4.110.0030.03716.47
5.4.100.0030.04016.54
5.4.90.0100.06016.41
5.4.80.0030.05316.38
5.4.70.0070.03716.42
5.4.60.0070.03316.43
5.4.50.0170.03016.44
5.4.40.0030.03716.41
5.4.30.0030.03316.37
5.4.20.0030.03716.43
5.4.10.0030.03716.24
5.4.00.0070.03315.77
5.3.290.0200.03314.65
5.3.280.0130.06714.64
5.3.270.0030.04714.67
5.3.260.0130.03314.66
5.3.250.0130.02714.55
5.3.240.0030.03714.69
5.3.230.0000.04314.68
5.3.220.0030.03714.63
5.3.210.0070.03314.49
5.3.200.0000.04314.54
5.3.190.0070.04014.58
5.3.180.0070.03314.65
5.3.170.0070.03714.68
5.3.160.0000.05314.61
5.3.150.0130.06314.53
5.3.140.0000.04314.48
5.3.130.0070.04014.57
5.3.120.0030.05014.51
5.3.110.0030.04014.57
5.3.100.0030.03314.04
5.3.90.0030.03713.97
5.3.80.0000.04313.93
5.3.70.0130.02714.03
5.3.60.0030.04014.05
5.3.50.0000.04313.96
5.3.40.0130.05013.84
5.3.30.0030.03713.92
5.3.20.0030.03313.62
5.3.10.0030.03313.68
5.3.00.0000.03713.74
5.2.170.0030.03011.19
5.2.160.0030.03711.14
5.2.150.0030.04311.13
5.2.140.0070.04711.10
5.2.130.0030.03011.11
5.2.120.0030.02310.96
5.2.110.0100.02011.09
5.2.100.0000.06011.05
5.2.90.0070.02311.08
5.2.80.0030.03311.17
5.2.70.0070.02310.95
5.2.60.0030.03011.11
5.2.50.0030.02711.03
5.2.40.0030.02711.02
5.2.30.0000.03011.06
5.2.20.0000.03010.99
5.2.10.0000.03310.93
5.2.00.0000.03010.80
5.1.60.0000.02310.25
5.1.50.0000.02710.25
5.1.40.0070.03010.25
5.1.30.0030.03310.29
5.1.20.0000.03010.42
5.1.10.0000.02710.25
5.1.00.0100.02710.25
5.0.50.0030.02010.25
5.0.40.0000.02010.25
5.0.30.0030.06010.25
5.0.20.0100.03010.25
5.0.10.0030.03310.25
5.0.00.0030.05710.25
4.4.90.0000.01710.25
4.4.80.0000.01310.25
4.4.70.0000.01710.25
4.4.60.0000.01310.25
4.4.50.0030.01010.25
4.4.40.0000.02310.25
4.4.30.0000.01310.25
4.4.20.0000.01710.25
4.4.10.0030.01310.25
4.4.00.0030.02310.25
4.3.110.0000.01710.25
4.3.100.0030.03010.25
4.3.90.0000.03710.25
4.3.80.0070.05010.25
4.3.70.0000.03710.25
4.3.60.0030.03310.25
4.3.50.0070.02010.25
4.3.40.0000.05310.25
4.3.30.0070.03010.25
4.3.20.0000.04010.25
4.3.10.0000.03710.25
4.3.00.0000.03310.25

preferences:
41.35 ms | 401 KiB | 5 Q