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:]]+)([[:digit:]]+)$/', $ticketName, $matches); 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.0110.00718.55
8.3.50.0290.00521.27
8.3.40.0070.00718.80
8.3.30.0070.00720.30
8.3.20.0040.00420.16
8.3.10.0040.00420.90
8.3.00.0050.00322.39
8.2.180.0120.00617.00
8.2.170.0140.00022.96
8.2.160.0030.01020.37
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0060.00319.39
8.2.110.0090.00019.27
8.2.100.0090.00318.03
8.2.90.0000.00819.17
8.2.80.0040.00418.03
8.2.70.0050.00317.75
8.2.60.0030.00617.93
8.2.50.0030.00618.07
8.2.40.0090.00018.15
8.2.30.0000.00719.49
8.2.20.0000.00817.81
8.2.10.0030.00617.96
8.2.00.0090.00017.88
8.1.280.0090.00625.92
8.1.270.0060.00323.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00422.54
8.1.230.0040.00721.04
8.1.220.0040.00418.77
8.1.210.0050.00320.75
8.1.200.0030.00717.35
8.1.190.0040.00417.39
8.1.180.0000.00818.10
8.1.170.0000.00818.73
8.1.160.0000.00718.89
8.1.150.0040.00418.64
8.1.140.0000.00717.45
8.1.130.0030.00317.85
8.1.120.0040.00417.47
8.1.110.0020.00517.56
8.1.100.0080.00017.59
8.1.90.0000.00817.43
8.1.80.0040.00417.58
8.1.70.0040.00417.54
8.1.60.0030.00617.77
8.1.50.0000.00717.67
8.1.40.0080.00017.62
8.1.30.0000.00817.68
8.1.20.0030.00517.73
8.1.10.0040.00417.66
8.1.00.0080.00017.71
8.0.300.0000.00819.87
8.0.290.0020.00517.05
8.0.280.0030.00518.40
8.0.270.0000.00717.34
8.0.260.0050.00516.90
8.0.250.0030.00316.95
8.0.240.0000.00817.04
8.0.230.0000.00717.00
8.0.220.0050.00216.95
8.0.210.0000.00716.96
8.0.200.0000.00617.02
8.0.190.0030.00517.05
8.0.180.0020.00517.04
8.0.170.0040.00417.04
8.0.160.0000.00716.96
8.0.150.0000.00716.96
8.0.140.0000.00816.93
8.0.130.0000.00613.41
8.0.120.0080.00016.97
8.0.110.0050.00316.80
8.0.100.0000.00716.80
8.0.90.0000.00716.86
8.0.80.0120.00316.95
8.0.70.0070.00016.96
8.0.60.0050.00216.98
8.0.50.0000.00716.96
8.0.30.0130.00717.22
8.0.20.0120.00617.40
8.0.10.0000.00717.04
8.0.00.0060.01216.82
7.4.330.0050.00016.69
7.4.320.0000.00616.66
7.4.300.0070.00016.82
7.4.290.0000.00716.82
7.4.280.0030.00316.70
7.4.270.0000.00716.68
7.4.260.0030.00313.38
7.4.250.0040.00416.63
7.4.240.0000.00716.84
7.4.230.0070.00016.62
7.4.220.0120.01316.77
7.4.210.0100.00616.73
7.4.200.0060.00016.63
7.4.190.0050.00216.77
7.4.160.0080.00816.64
7.4.150.0040.01417.40
7.4.140.0150.00317.86
7.4.130.0140.00916.60
7.4.120.0090.00816.69
7.4.110.0130.01016.56
7.4.100.0170.00016.72
7.4.90.0090.01016.61
7.4.80.0120.00419.39
7.4.70.0060.01116.67
7.4.60.0150.00316.54
7.4.50.0030.00516.48
7.4.40.0040.01122.77
7.4.30.0110.00616.78
7.4.00.0090.00315.23
7.3.330.0050.00013.29
7.3.320.0060.00013.46
7.3.310.0040.00416.42
7.3.300.0000.00616.43
7.3.290.0070.00716.41
7.3.280.0090.00716.47
7.3.270.0090.00917.40
7.3.260.0120.00618.24
7.3.250.0090.01016.62
7.3.240.0130.00816.60
7.3.230.0180.00316.86
7.3.210.0120.00616.64
7.3.200.0040.01319.39
7.3.190.0200.00016.71
7.3.180.0130.00316.58
7.3.170.0000.01616.61
7.3.160.0030.01316.32
7.3.120.0000.01614.95
7.3.10.0260.00416.43
7.3.00.0160.00416.39
7.2.330.0090.00916.88
7.2.320.0110.00916.82
7.2.310.0070.01016.79
7.2.300.0080.00816.99
7.2.290.0130.00316.65
7.2.130.0290.01016.68
7.2.120.0150.00816.95
7.2.110.0160.00816.78
7.2.100.0160.00317.02
7.2.90.0070.01116.71
7.2.80.0040.01116.68
7.2.70.0080.00816.88
7.2.60.0050.01317.02
7.2.50.0140.00417.13
7.2.40.0030.01116.88
7.2.30.0030.01017.10
7.2.20.0130.01017.21
7.2.10.0140.00416.66
7.2.00.0090.00618.45
7.1.250.0030.01415.93
7.1.200.0000.01515.96
7.1.100.0060.01018.34
7.1.70.0030.00517.40
7.1.60.0030.00717.30
7.1.50.0030.00917.19
7.1.40.0030.00916.92
7.1.30.0000.01116.94
7.1.20.0060.01616.89
7.1.10.0040.00416.79
7.1.00.0060.00316.99
7.0.200.0070.00416.87
7.0.190.0050.00317.00
7.0.180.0030.01016.65
7.0.170.0040.00416.52
7.0.160.0060.01016.52
7.0.150.0000.01016.52
7.0.140.0040.00416.53
7.0.130.0000.00816.77
7.0.120.0050.00216.68
7.0.110.0040.00416.62
7.0.100.0050.00216.52
7.0.90.0060.00316.52
7.0.80.0030.00616.52
7.0.70.0000.00816.56
7.0.60.0030.00716.52
7.0.50.0000.00716.71
7.0.40.0040.00416.52
7.0.30.0030.00616.52
7.0.20.0000.01016.52
7.0.10.0050.00516.52
7.0.00.0050.00316.52
5.6.300.0000.04820.80
5.6.290.0000.05720.89
5.6.280.0070.04621.07
5.6.270.0100.05420.98
5.6.260.0030.04620.80
5.6.250.0070.04520.95
5.6.240.0100.04320.82
5.6.230.0030.04420.87
5.6.220.0100.03320.81
5.6.210.0030.05620.80
5.6.200.0130.05420.84
5.6.190.0070.04320.84
5.6.180.0130.05220.94
5.6.170.0030.04720.84
5.6.160.0070.04021.02
5.6.150.0030.04220.96
5.6.140.0030.04320.80
5.6.130.0060.03820.87
5.6.120.0100.06620.84
5.6.110.0030.04720.95
5.6.100.0000.04620.85
5.6.90.0030.04220.79
5.6.80.0130.05920.21
5.6.70.0030.07820.39
5.6.60.0330.03020.38
5.6.50.0190.06120.34
5.6.40.0030.05720.17
5.6.30.0030.08420.14
5.6.20.0030.04620.26
5.6.10.0030.05320.31
5.6.00.0160.03920.36
5.5.380.0130.03817.49
5.5.370.0070.04317.49
5.5.360.0030.03917.53
5.5.350.0060.05517.66
5.5.340.0130.06618.07
5.5.330.0100.03318.01
5.5.320.0070.03818.09
5.5.310.0060.03618.07
5.5.300.0000.04318.01
5.5.290.0060.03818.09
5.5.280.0130.04017.74
5.5.270.0070.08318.00
5.5.260.0030.04517.96
5.5.250.0100.03417.84
5.5.240.0000.04617.47
5.5.230.0160.03617.39
5.5.220.0060.03917.39
5.5.210.0200.03017.48
5.5.200.0000.08417.34
5.5.190.0070.05017.53
5.5.180.0030.04517.40
5.5.160.0030.04117.44
5.5.150.0030.04717.18
5.5.140.0030.03717.37
5.5.130.0000.04117.36
5.5.120.0030.05017.44
5.5.110.0060.03917.47
5.5.100.0030.03717.33
5.5.90.0000.04417.32
5.5.80.0070.03917.34
5.5.70.0070.03617.22
5.5.60.0030.04017.07
5.5.50.0170.03717.25
5.5.40.0030.03717.07
5.5.30.0070.03317.31
5.5.20.0070.04316.94
5.5.10.0000.05317.29
5.5.00.0100.06317.41
5.4.450.0000.08619.39
5.4.440.0100.06819.52
5.4.430.0100.06519.24
5.4.420.0000.06419.25
5.4.410.0070.04419.27
5.4.400.0030.03919.10
5.4.390.0040.04319.16
5.4.380.0030.04418.89
5.4.370.0000.05019.08
5.4.360.0030.04018.99
5.4.350.0000.04119.07
5.4.340.0030.04219.17
5.4.320.0000.04218.97
5.4.310.0070.04019.08
5.4.300.0030.04419.13
5.4.290.0090.03819.09
5.4.280.0030.04119.11
5.4.270.0060.04118.89
5.4.260.0000.04419.13
5.4.250.0000.05318.97
5.4.240.0030.04018.97
5.4.230.0000.04318.98
5.4.220.0030.04219.07
5.4.210.0100.03519.18
5.4.200.0070.03318.92
5.4.190.0030.03819.08
5.4.180.0030.04018.96
5.4.170.0070.04818.91
5.4.160.0060.04218.96
5.4.150.0070.05719.19
5.4.140.0030.04216.58
5.4.130.0000.05116.52
5.4.120.0130.03516.52
5.4.110.0210.03816.52
5.4.100.0000.04916.52
5.4.90.0030.04116.68
5.4.80.0030.04016.58
5.4.70.0090.03716.64
5.4.60.0070.04016.68
5.4.50.0100.03316.53
5.4.40.0030.04516.59
5.4.30.0030.04016.52
5.4.20.0130.03616.52
5.4.10.0030.04816.60
5.4.00.0070.03316.52
5.3.290.0070.03916.52
5.3.280.0030.03816.52
5.3.270.0030.05516.52
5.3.260.0030.04016.52
5.3.250.0000.05016.52
5.3.240.0000.04316.52
5.3.230.0000.04516.52
5.3.220.0030.04716.52
5.3.210.0000.04716.52
5.3.200.0030.04716.52
5.3.190.0070.04316.52
5.3.180.0030.04416.52
5.3.170.0000.04616.52
5.3.160.0100.04016.52
5.3.150.0100.03816.52
5.3.140.0100.03916.52
5.3.130.0170.05116.52
5.3.120.0000.04416.52
5.3.110.0030.04516.52
5.3.100.0140.03116.52
5.3.90.0300.02416.52
5.3.80.0000.04016.52
5.3.70.0070.03916.52
5.3.60.0030.04316.52
5.3.50.0030.04116.52
5.3.40.0100.03416.52
5.3.30.0100.03116.52
5.3.20.0030.03716.52
5.3.10.0100.03116.52
5.3.00.0030.04116.52
5.2.170.0060.04116.52
5.2.160.0070.03116.52
5.2.150.0030.03216.52
5.2.140.0130.04116.52
5.2.130.0100.03216.52
5.2.120.0030.03116.52
5.2.110.0140.02016.52
5.2.100.0040.03516.52
5.2.90.0160.03816.52
5.2.80.0070.02616.52
5.2.70.0000.03716.52
5.2.60.0030.03116.52
5.2.50.0070.05116.52
5.2.40.0000.03916.52
5.2.30.0040.03416.52
5.2.20.0070.02916.52
5.2.10.0070.02716.52
5.2.00.0000.03416.52
5.1.60.0120.01916.52
5.1.50.0000.03216.52
5.1.40.0030.02416.52
5.1.30.0000.03316.52
5.1.20.0030.03016.52
5.1.10.0070.02016.52
5.1.00.0030.02316.52
5.0.50.0000.02416.52
5.0.40.0030.02716.52
5.0.30.0100.03216.52
5.0.20.0030.03016.52
5.0.10.0100.01916.52
5.0.00.0000.03416.52
4.4.90.0000.02216.52
4.4.80.0030.02116.52
4.4.70.0000.01816.52
4.4.60.0040.01416.52
4.4.50.0030.01616.52
4.4.40.0000.02816.52
4.4.30.0030.01616.52
4.4.20.0000.01616.52
4.4.10.0030.01316.52
4.4.00.0000.03916.52
4.3.110.0060.01816.52
4.3.100.0030.01316.52
4.3.90.0030.01516.52
4.3.80.0030.02216.52
4.3.70.0060.01116.52
4.3.60.0000.02116.52
4.3.50.0040.01516.52
4.3.40.0000.03016.52
4.3.30.0030.01416.52
4.3.20.0000.02216.52
4.3.10.0000.01716.52
4.3.00.0030.01416.52

preferences:
34.6 ms | 401 KiB | 5 Q