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("/^\d4/",$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.60.0120.00318.56
8.3.50.0140.00521.18
8.3.40.0150.00019.09
8.3.30.0110.00319.13
8.3.20.0080.00020.16
8.3.10.0040.00423.66
8.3.00.0060.00319.75
8.2.180.0110.00717.00
8.2.170.0040.01122.96
8.2.160.0140.00020.09
8.2.150.0000.00824.18
8.2.140.0110.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00422.11
8.2.110.0100.00019.31
8.2.100.0110.00018.10
8.2.90.0030.00618.34
8.2.80.0040.00417.97
8.2.70.0060.00318.00
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0000.00820.20
8.2.30.0040.00418.22
8.2.20.0000.00818.09
8.2.10.0000.00818.07
8.2.00.0040.00418.20
8.1.280.0090.00625.92
8.1.270.0060.00623.97
8.1.260.0050.00226.35
8.1.250.0050.00328.09
8.1.240.0060.00323.96
8.1.230.0110.00020.84
8.1.220.0040.00417.79
8.1.210.0040.00419.03
8.1.200.0030.00617.38
8.1.190.0080.00017.35
8.1.180.0000.00918.10
8.1.170.0040.00418.80
8.1.160.0000.00722.00
8.1.150.0000.00718.93
8.1.140.0000.00717.64
8.1.130.0030.00317.78
8.1.120.0000.00717.75
8.1.110.0030.00517.61
8.1.100.0000.00817.59
8.1.90.0040.00417.75
8.1.80.0030.00317.67
8.1.70.0030.00317.63
8.1.60.0080.00017.67
8.1.50.0050.00317.72
8.1.40.0000.00717.68
8.1.30.0000.00917.77
8.1.20.0080.00017.80
8.1.10.0000.00817.67
8.1.00.0070.00017.61
8.0.300.0000.00720.09
8.0.290.0030.00617.13
8.0.280.0030.00318.49
8.0.270.0030.00317.30
8.0.260.0030.00317.29
8.0.250.0030.00317.34
8.0.240.0000.00717.27
8.0.230.0000.00717.18
8.0.220.0040.00417.21
8.0.210.0070.00017.17
8.0.200.0040.00417.19
8.0.190.0080.00017.22
8.0.180.0000.00817.15
8.0.170.0030.00617.27
8.0.160.0040.00417.15
8.0.150.0050.00217.04
8.0.140.0040.00417.16
8.0.130.0060.00013.59
8.0.120.0040.00417.22
8.0.110.0070.00017.08
8.0.100.0060.00317.13
8.0.90.0000.00817.27
8.0.80.0090.00917.28
8.0.70.0040.00417.28
8.0.60.0000.00817.14
8.0.50.0030.00517.07
8.0.30.0170.00817.35
8.0.20.0080.01117.40
8.0.10.0000.00717.26
8.0.00.0050.01317.01
7.4.330.0000.00515.07
7.4.320.0030.00316.87
7.4.300.0060.00016.84
7.4.290.0000.01016.73
7.4.280.0070.00016.83
7.4.270.0030.00316.88
7.4.260.0040.00416.66
7.4.250.0070.00016.80
7.4.240.0040.00416.84
7.4.230.0000.00816.59
7.4.220.0090.00916.72
7.4.210.0090.00616.65
7.4.200.0030.00316.73
7.4.160.0180.00416.88
7.4.150.0070.01017.40
7.4.140.0160.00317.86
7.4.130.0070.00916.87
7.4.120.0090.00916.91
7.4.110.0030.01516.69
7.4.100.0100.00716.77
7.4.90.0030.02016.90
7.4.80.0040.01319.39
7.4.70.0170.01116.73
7.4.60.0100.00716.80
7.4.50.0040.00416.99
7.4.40.0070.01016.80
7.4.30.0060.01216.73
7.4.10.0060.01315.21
7.4.00.0050.01315.09
7.3.330.0030.00313.36
7.3.320.0000.00613.40
7.3.310.0000.00716.58
7.3.300.0000.00716.66
7.3.290.0080.00916.68
7.3.280.0120.00516.59
7.3.270.0110.00717.40
7.3.260.0070.01716.81
7.3.250.0170.00716.74
7.3.240.0060.01216.79
7.3.230.0130.00916.83
7.3.210.0060.01616.75
7.3.200.0030.01319.39
7.3.190.0150.00616.84
7.3.180.0090.00616.75
7.3.170.0140.01216.71
7.3.160.0130.00716.65
7.3.130.0090.00915.23
7.3.120.0060.01115.00
7.3.110.0130.00715.14
7.3.100.0130.00315.08
7.3.90.0090.00314.89
7.3.80.0100.00315.17
7.3.70.0040.00815.23
7.3.60.0130.00315.23
7.3.50.0120.00315.05
7.3.40.0060.00914.73
7.3.30.0070.01014.96
7.3.20.0090.00616.85
7.3.10.0110.00316.91
7.3.00.0040.00716.94
7.2.330.0140.00416.81
7.2.320.0000.01916.88
7.2.310.0030.01317.00
7.2.300.0070.01017.00
7.2.290.0130.00316.86
7.2.260.0040.01515.36
7.2.250.0070.01115.46
7.2.240.0060.00915.23
7.2.230.0140.00014.87
7.2.220.0060.00915.52
7.2.210.0120.00015.52
7.2.200.0040.00715.03
7.2.190.0040.01115.14
7.2.180.0040.00715.30
7.2.170.0030.01215.02
7.2.160.0040.00815.19
7.2.150.0060.00917.07
7.2.140.0070.00717.39
7.2.130.0070.00716.88
7.2.120.0030.01217.25
7.2.110.0040.01117.29
7.2.100.0060.01017.00
7.2.90.0000.01617.17
7.2.80.0100.00617.06
7.2.70.0100.00717.30
7.2.60.0040.00917.24
7.2.50.0030.00617.07
7.2.40.0030.01017.18
7.2.30.0040.01417.15
7.2.20.0060.00617.32
7.2.10.0060.01017.18
7.2.00.0110.00418.47
7.1.330.0000.01415.99
7.1.320.0030.00916.14
7.1.310.0040.00815.91
7.1.300.0030.00915.93
7.1.290.0030.01016.10
7.1.280.0000.01215.84
7.1.270.0060.01015.88
7.1.260.0060.00615.94
7.1.250.0030.00916.15
7.1.240.0000.01716.19
7.1.230.0060.00315.93
7.1.220.0070.00715.99
7.1.210.0060.00616.07
7.1.200.0060.00615.99
7.1.190.0040.00815.75
7.1.180.0040.00816.07
7.1.170.0030.01315.93
7.1.160.0040.00415.92
7.1.150.0060.00616.09
7.1.140.0080.00416.11
7.1.130.0000.00916.20
7.1.120.0040.00916.05
7.1.110.0000.01315.83
7.1.100.0030.01017.24
7.1.90.0070.00716.16
7.1.80.0080.00016.09
7.1.70.0050.00316.67
7.1.60.0050.00916.67
7.1.50.0060.01116.66
7.1.40.0090.00615.82
7.1.30.0090.00315.73
7.1.20.0030.01215.92
7.1.10.0000.01415.93
7.1.00.0020.04719.21
7.0.330.0060.00615.52
7.0.320.0030.00615.62
7.0.310.0030.00715.50
7.0.300.0090.00015.38
7.0.290.0030.00915.44
7.0.280.0000.00815.38
7.0.270.0090.00015.22
7.0.260.0070.00715.50
7.0.250.0030.01315.54
7.0.240.0070.00715.55
7.0.230.0070.00715.56
7.0.220.0100.00315.63
7.0.210.0070.01015.62
7.0.200.0100.00216.20
7.0.190.0030.00615.55
7.0.180.0070.00715.73
7.0.170.0060.00615.39
7.0.160.0000.01315.71
7.0.150.0060.00915.59
7.0.140.0050.04018.79
7.0.130.0060.00615.45
7.0.120.0090.00615.48
7.0.110.0060.00615.34
7.0.100.0040.01115.30
7.0.90.0050.02518.69
7.0.80.0070.03418.72
7.0.70.0030.04518.71
7.0.60.0070.03718.69
7.0.50.0110.03318.96
7.0.40.0090.04516.89
7.0.30.0090.04016.77
7.0.20.0030.04816.96
7.0.10.0060.04116.98
7.0.00.0030.04316.85
5.6.400.0130.00014.47
5.6.390.0000.01314.41
5.6.380.0000.01514.73
5.6.370.0030.01014.51
5.6.360.0060.00614.30
5.6.350.0070.00314.34
5.6.340.0030.00614.65
5.6.330.0070.01114.73
5.6.320.0030.00914.56
5.6.310.0110.00314.56
5.6.300.0030.01214.46
5.6.290.0000.01814.45
5.6.280.0030.04017.87
5.6.270.0030.01014.49
5.6.260.0070.00714.77
5.6.250.0070.00414.57
5.6.240.0030.03017.68
5.6.230.0020.04017.75
5.6.220.0030.04417.62
5.6.210.0070.04117.42
5.6.200.0050.02817.86
5.6.190.0020.04817.76
5.6.180.0070.04317.71
5.6.170.0030.03017.90
5.6.160.0120.04017.92
5.6.150.0080.04017.70
5.6.140.0080.04317.89
5.6.130.0020.05217.64
5.6.120.0050.04517.69
5.6.110.0070.04217.63
5.6.100.0030.04917.88
5.6.90.0040.04417.82
5.6.80.0030.02617.43
5.6.70.0070.04217.24
5.6.60.0080.03517.52
5.6.50.0050.04617.31
5.6.40.0050.04217.34
5.6.30.0050.04717.35
5.6.20.0030.02517.45
5.6.10.0070.03217.39
5.6.00.0020.02617.31
5.5.380.0030.03517.53
5.5.370.0020.02717.40
5.5.360.0070.03517.28
5.5.350.0070.04017.41
5.5.340.0060.03917.65
5.5.330.0030.02617.60
5.5.320.0020.04417.65
5.5.310.0010.02517.54
5.5.300.0060.04617.49
5.5.290.0020.04617.67
5.5.280.0020.04917.74
5.5.270.0050.02717.47
5.5.260.0050.04517.63
5.5.250.0050.05017.47
5.5.240.0080.03817.30
5.5.230.0070.04417.35
5.5.220.0050.04217.26
5.5.210.0030.04517.32
5.5.200.0040.03117.16
5.5.190.0050.03117.22
5.5.180.0080.04317.33
5.5.170.0030.01014.45
5.5.160.0050.04417.32
5.5.150.0050.04217.13
5.5.140.0090.04017.37
5.5.130.0080.04217.18
5.5.120.0070.02517.19
5.5.110.0060.02317.17
5.5.100.0080.03817.37
5.5.90.0030.02617.22
5.5.80.0050.03817.22
5.5.70.0050.03517.12
5.5.60.0050.03717.24
5.5.50.0080.03517.08
5.5.40.0020.02917.32
5.5.30.0030.02916.93
5.5.20.0120.02017.16
5.5.10.0020.04817.19
5.5.00.0070.02717.17
5.4.450.0050.02015.49
5.4.440.0030.03315.43
5.4.430.0030.02315.25
5.4.420.0040.04615.41
5.4.410.0080.03815.39
5.4.400.0070.03815.14
5.4.390.0060.03915.12
5.4.380.0060.03915.19
5.4.370.0020.04314.99
5.4.360.0040.04115.13
5.4.350.0030.04315.19
5.4.340.0010.03515.14
5.4.330.0040.00811.36
5.4.320.0080.04015.19
5.4.310.0010.04315.15
5.4.300.0030.04315.22
5.4.290.0050.03015.33
5.4.280.0060.03315.23
5.4.270.0000.02415.23
5.4.260.0030.04215.20
5.4.250.0030.02614.97
5.4.240.0000.04515.13
5.4.230.0020.04115.06
5.4.220.0050.04015.29
5.4.210.0070.03815.09
5.4.200.0060.02015.23
5.4.190.0070.03315.13
5.4.180.0120.02714.78
5.4.170.0050.02615.23
5.4.160.0040.03615.15
5.4.150.0020.02415.23
5.4.140.0090.03813.66
5.4.130.0050.02813.87
5.4.120.0020.02513.85
5.4.110.0000.04213.96
5.4.100.0000.04213.79
5.4.90.0030.03713.91
5.4.80.0020.03213.66
5.4.70.0070.03513.73
5.4.60.0080.02013.91
5.4.50.0030.02413.64
5.4.40.0010.03913.87
5.4.30.0090.02313.75
5.4.20.0060.01813.69
5.4.10.0030.03713.64
5.4.00.0020.03813.65
5.3.290.0030.07714.58
5.3.280.0070.07314.54
5.3.270.0000.06714.54
5.3.260.0070.07314.58
5.3.250.0070.03714.53
5.3.240.0030.05314.55
5.3.230.0000.08314.60
5.3.220.0100.07314.57
5.3.210.0030.07714.48
5.3.200.0030.07014.49
5.3.190.0030.06314.68
5.3.180.0030.07314.54
5.3.170.0000.06714.62
5.3.160.0030.06014.65
5.3.150.0000.07314.55
5.3.140.0100.06714.57
5.3.130.0070.07314.59
5.3.120.0070.07714.50
5.3.110.0000.04714.47
5.3.100.0030.07314.00
5.3.90.0070.05314.11
5.3.80.0000.04014.06
5.3.70.0030.07313.89
5.3.60.0100.06313.90
5.3.50.0070.06013.93
5.3.40.0030.07014.07
5.3.30.0000.04313.84
5.3.20.0030.07313.80
5.3.10.0030.07013.57
5.3.00.0070.07013.53
5.2.170.0070.05711.00
5.2.160.0070.05711.07
5.2.150.0030.06011.00
5.2.140.0070.05710.98
5.2.130.0030.06010.90
5.2.120.0000.05710.94
5.2.110.0000.06311.03
5.2.100.0030.05011.12
5.2.90.0030.06310.91
5.2.80.0000.06711.13
5.2.70.0070.06011.10
5.2.60.0030.04011.13
5.2.50.0030.04711.08
5.2.40.0000.05311.00
5.2.30.0070.06011.00
5.2.20.0000.06011.04
5.2.10.0030.05310.77
5.2.00.0000.06310.58
5.1.60.0030.02710.32
5.1.50.0000.05710.32
5.1.40.0000.05010.32
5.1.30.0100.04310.37
5.1.20.0030.03710.36
5.1.10.0000.03710.32
5.1.00.0000.02710.32
5.0.50.0000.04710.32
5.0.40.0000.04310.32
5.0.30.0030.06310.32
5.0.20.0000.04310.32
5.0.10.0030.04310.32
5.0.00.0030.06010.32
4.4.90.0000.03010.32
4.4.80.0070.03010.32
4.4.70.0070.03010.32
4.4.60.0030.03310.32
4.4.50.0000.03710.32
4.4.40.0000.05310.32
4.4.30.0000.02710.32
4.4.20.0000.03710.32
4.4.10.0000.03710.32
4.4.00.0030.05010.32
4.3.110.0000.03710.32
4.3.100.0000.03310.32
4.3.90.0000.03010.32
4.3.80.0030.05310.32
4.3.70.0000.03310.32
4.3.60.0000.02310.32
4.3.50.0000.03310.32
4.3.40.0000.05310.32
4.3.30.0000.02010.32
4.3.20.0030.03310.32
4.3.10.0030.02310.32
4.3.00.0000.03310.32

preferences:
43.15 ms | 401 KiB | 5 Q