3v4l.org

run code in 300+ PHP versions simultaneously
<?php function parseTicketName($ticketName) { global $sites; //$system = substr($ticketName, 0, 2); // pull out managment system //$ticketName = substr($ticketName, 2); // remove management system preg_match('/^([[:alpha:]]{2})([[:alpha:]]+)([[:digit:]]+)$/', $ticketName, $matches); var_dump($matches); exit; return array( 'system' => $system, 'project' => $matches[1], 'ticket_id' => $matches[2] ); } // 2 first characters is system, then the next letters are project name and the numbers are the ticket id $s = "asFX10"; var_dump(parseTicketName($s));

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.0140.00716.63
8.3.50.0130.00522.07
8.3.40.0110.00418.71
8.3.30.0070.00719.10
8.3.20.0040.00420.38
8.3.10.0060.00323.64
8.3.00.0040.00422.32
8.2.180.0070.01117.00
8.2.170.0090.00622.96
8.2.160.0100.00320.57
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0070.00022.34
8.2.110.0070.00321.13
8.2.100.0040.00718.03
8.2.90.0080.00019.09
8.2.80.0050.00317.97
8.2.70.0050.00317.63
8.2.60.0050.00317.93
8.2.50.0060.00318.10
8.2.40.0080.00020.47
8.2.30.0000.00717.91
8.2.20.0050.00317.70
8.2.10.0040.00417.81
8.2.00.0040.00417.90
8.1.280.0140.00325.92
8.1.270.0030.00523.87
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0130.01022.19
8.1.230.0040.00717.76
8.1.220.0080.00017.74
8.1.210.0000.00918.77
8.1.200.0030.00717.36
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0040.00418.70
8.1.160.0030.00621.91
8.1.150.0040.00418.78
8.1.140.0050.00217.45
8.1.130.0000.00717.77
8.1.120.0040.00417.55
8.1.110.0040.00417.54
8.1.100.0040.00417.54
8.1.90.0030.00517.57
8.1.80.0050.00217.55
8.1.70.0000.00717.54
8.1.60.0040.00417.76
8.1.50.0030.00517.66
8.1.40.0000.00817.65
8.1.30.0040.00417.76
8.1.20.0040.00417.70
8.1.10.0040.00417.63
8.1.00.0050.00317.59
8.0.300.0030.00718.77
8.0.290.0030.00516.75
8.0.280.0070.00018.54
8.0.270.0030.00317.19
8.0.260.0030.00316.97
8.0.250.0030.00317.07
8.0.240.0040.00417.12
8.0.230.0000.00817.09
8.0.220.0070.00016.94
8.0.210.0080.00016.99
8.0.200.0030.00517.07
8.0.190.0040.00416.99
8.0.180.0060.00617.06
8.0.170.0060.00317.08
8.0.160.0000.00717.11
8.0.150.0040.00416.89
8.0.140.0000.00717.03
8.0.130.0030.00313.45
8.0.120.0060.00316.92
8.0.110.0040.00417.03
8.0.100.0000.00817.09
8.0.90.0040.00416.88
8.0.80.0040.01517.09
8.0.70.0040.00416.99
8.0.60.0070.00017.05
8.0.50.0080.00016.93
8.0.30.0120.01517.21
8.0.20.0090.01017.42
8.0.10.0030.00517.05
8.0.00.0130.00617.05
7.4.330.0000.00515.04
7.4.320.0000.00616.61
7.4.300.0000.00616.75
7.4.290.0070.00016.86
7.4.280.0030.00516.82
7.4.270.0030.00316.73
7.4.260.0030.00316.80
7.4.250.0050.00216.64
7.4.240.0040.00316.73
7.4.230.0040.00416.68
7.4.220.0110.00816.88
7.4.210.0080.00716.82
7.4.200.0040.00416.82
7.4.190.0040.00416.63
7.4.160.0080.00816.67
7.4.150.0160.01017.40
7.4.140.0050.01317.86
7.4.130.0120.00516.71
7.4.120.0080.00916.61
7.4.110.0100.00716.74
7.4.100.0130.00816.54
7.4.90.0070.01016.71
7.4.80.0150.00919.39
7.4.70.0050.01116.60
7.4.60.0060.01116.69
7.4.50.0030.00616.79
7.4.40.0030.01022.77
7.4.30.0090.01216.68
7.4.00.0070.00714.91
7.3.330.0020.00213.43
7.3.320.0030.00413.42
7.3.310.0060.00316.37
7.3.300.0000.00716.45
7.3.290.0120.00316.46
7.3.280.0080.01016.47
7.3.270.0000.01717.40
7.3.260.0100.00716.71
7.3.250.0110.00916.58
7.3.240.0050.01116.75
7.3.230.0090.00816.51
7.3.210.0080.00816.87
7.3.200.0030.01319.39
7.3.190.0100.01316.67
7.3.180.0150.00316.47
7.3.170.0090.01216.68
7.3.160.0070.00716.81
7.3.120.0070.01014.92
7.2.330.0110.00816.86
7.2.320.0100.00716.75
7.2.310.0070.01016.86
7.2.300.0120.01216.64
7.2.290.0100.00616.69
7.2.60.0040.00417.07
7.2.00.0030.01319.53
7.1.200.0090.00315.86
7.1.100.0000.01118.31
7.1.70.0050.00217.23
7.1.60.0120.01219.29
7.1.50.0150.00917.07
7.1.00.0070.07022.53
7.0.200.0030.00616.54
7.0.140.0030.07322.21
7.0.60.0000.08019.93
7.0.50.0100.06317.88
7.0.40.0130.08320.14
7.0.30.0230.04320.14
7.0.20.0170.07020.09
7.0.10.0200.07320.08
7.0.00.0000.05020.24
5.6.280.0000.07720.82
5.6.210.0130.06720.45
5.6.200.0070.05718.24
5.6.190.0030.05320.34
5.6.180.0270.06020.35
5.6.170.0270.06720.71
5.6.160.0070.08320.62
5.6.150.0000.04318.18
5.6.140.0100.05018.26
5.6.130.0070.08018.14
5.6.120.0100.06321.13
5.6.110.0130.07321.14
5.6.100.0100.03720.98
5.6.90.0070.08021.11
5.6.80.0070.03320.37
5.6.70.0330.07320.54
5.5.350.0000.08720.32
5.5.340.0070.03718.07
5.5.330.0200.07020.42
5.5.320.0030.04020.42
5.5.310.0270.04020.50
5.5.300.0100.06317.94
5.5.290.0030.04017.99
5.5.280.0000.05320.77
5.5.270.0030.05320.87
5.5.260.0100.08720.68
5.5.250.0130.07020.55
5.5.240.0170.06720.16
5.4.450.0830.03719.41
5.4.440.0700.07019.47
5.4.430.0170.06719.69
5.4.420.0530.07019.61
5.4.410.0670.06319.48
5.4.400.0130.05319.15
5.4.390.0700.07019.14
5.4.380.0100.05718.56
5.4.370.0130.05318.47
5.4.360.0130.05318.61
5.4.350.0130.05718.70
5.4.340.0170.05718.50
5.4.320.0060.03612.51
5.4.310.0060.03712.51
5.4.300.0070.04112.51
5.4.290.0060.03812.51
5.4.280.0110.03912.40
5.4.270.0080.03312.41
5.4.260.0050.03812.40
5.4.250.0060.03612.40
5.4.240.0080.03412.41
5.4.230.0100.04112.39
5.4.220.0180.04712.38
5.4.210.0150.04912.39
5.4.200.0180.04412.38
5.4.190.0360.08712.37
5.4.180.0150.04612.37
5.4.170.0180.04312.39
5.4.160.0200.04412.39
5.4.150.0170.04312.39
5.4.140.0230.03712.07
5.4.130.0140.04612.05
5.4.120.0150.04912.01
5.4.110.0190.04512.01
5.4.100.0180.04512.01
5.4.90.0220.07112.00
5.4.80.0150.04512.00
5.4.70.0230.03912.00
5.4.60.0160.04512.00
5.4.50.0150.04412.00
5.4.40.0140.04311.98
5.4.30.0330.06411.98
5.4.20.0210.04111.98
5.4.10.0160.04511.98
5.4.00.0380.08111.48
5.3.290.0040.04112.80
5.3.280.0070.03812.71
5.3.270.0170.05012.72
5.3.260.0160.04612.72
5.3.250.0170.04812.72
5.3.240.0160.04712.72
5.3.230.0310.06912.71
5.3.220.0160.04612.68
5.3.210.0210.07612.68
5.3.200.0170.05712.68
5.3.190.0480.08312.67
5.3.180.0240.04312.67
5.3.170.0230.07612.67
5.3.160.0260.04212.67
5.3.150.0140.04912.67
5.3.140.0230.04912.66
5.3.130.0520.10712.66
5.3.120.0250.04212.66
5.3.110.0170.04712.66
5.3.100.0170.05112.12
5.3.90.0250.04912.09
5.3.80.0330.06612.08
5.3.70.0180.04712.08
5.3.60.0200.04512.07
5.3.50.0200.05412.02
5.3.40.0200.04212.02
5.3.30.0200.03911.99
5.3.20.0160.05611.77
5.3.10.0190.04211.73
5.3.00.0180.04611.71
5.2.170.0220.0649.22
5.2.160.0190.0309.21
5.2.150.0260.0599.21
5.2.140.0130.0419.21
5.2.130.0180.0329.17
5.2.120.0150.0409.18
5.2.110.0300.0529.18
5.2.100.0120.0409.18
5.2.90.0150.0369.18
5.2.80.0120.0419.17
5.2.70.0190.0329.17
5.2.60.0150.0339.13
5.2.50.0120.0379.09
5.2.40.0160.0659.07
5.2.30.0100.0379.05
5.2.20.0130.0359.05
5.2.10.0090.0388.93
5.2.00.0130.0358.78
5.1.60.0120.0288.07
5.1.50.0150.0268.07
5.1.40.0140.0258.06
5.1.30.0150.0598.39
5.1.20.0180.0268.43
5.1.10.0090.0348.14
5.1.00.0130.0308.14
5.0.50.0090.0246.63
5.0.40.0100.0246.48
5.0.30.0090.0396.30
5.0.20.0110.0256.27
5.0.10.0120.0216.24
5.0.00.0100.0356.23
4.4.90.0060.0194.78
4.4.80.0070.0184.76
4.4.70.0060.0204.75
4.4.60.0060.0214.76
4.4.50.0050.0224.77
4.4.40.0100.0274.71
4.4.30.0080.0234.76
4.4.20.0090.0164.84
4.4.10.0050.0214.85
4.4.00.0090.0294.76
4.3.110.0050.0224.67
4.3.100.0100.0174.67
4.3.90.0070.0184.63
4.3.80.0090.0274.58
4.3.70.0060.0184.63
4.3.60.0080.0164.63
4.3.50.0090.0204.63
4.3.40.0080.0334.54
4.3.30.0060.0193.29
4.3.20.0070.0493.29
4.3.10.0090.0163.25
4.3.00.0130.03313.14

preferences:
37.1 ms | 401 KiB | 5 Q