3v4l.org

run code in 300+ PHP versions simultaneously
<?php $course_id = "SW_3200R50S14C"; $matches = array(); preg_match("/[0-9]+/",$course_id, $matches); print_r($matches); $matches = array(); preg_match("R/[0-9]+/",$course_id, $matches); 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.0100.00716.88
8.3.50.0090.00522.06
8.3.40.0120.00318.79
8.3.30.0140.00318.96
8.3.20.0040.00420.22
8.3.10.0000.00823.66
8.3.00.0070.00317.75
8.2.180.0140.00418.79
8.2.170.0120.00322.96
8.2.160.0130.00620.38
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00422.29
8.2.110.0090.00022.19
8.2.100.0120.00019.89
8.2.90.0030.00619.23
8.2.80.0060.00317.97
8.2.70.0040.00417.63
8.2.60.0000.00817.80
8.2.50.0080.00018.07
8.2.40.0000.00918.22
8.2.30.0040.00417.95
8.2.20.0030.00517.77
8.2.10.0000.00718.09
8.2.00.0070.00017.63
8.1.280.0160.00025.92
8.1.270.0030.00523.83
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00623.86
8.1.230.0070.00419.15
8.1.220.0030.00617.74
8.1.210.0080.00018.77
8.1.200.0030.00617.22
8.1.190.0030.00517.23
8.1.180.0030.00618.95
8.1.170.0040.00418.70
8.1.160.0040.00421.89
8.1.150.0000.00718.77
8.1.140.0050.00217.45
8.1.130.0050.00317.75
8.1.120.0000.00717.45
8.1.110.0070.00017.54
8.1.100.0000.00817.36
8.1.90.0000.00717.37
8.1.80.0040.00417.43
8.1.70.0040.00417.52
8.1.60.0000.00817.60
8.1.50.0040.00417.60
8.1.40.0040.00417.47
8.1.30.0040.00417.61
8.1.20.0040.00417.57
8.1.10.0040.00417.63
8.1.00.0040.00417.44
8.0.300.0060.00318.77
8.0.290.0000.00717.16
8.0.280.0000.00718.39
8.0.270.0040.00417.20
8.0.260.0000.00617.19
8.0.250.0000.00717.09
8.0.240.0040.00417.09
8.0.230.0070.00016.95
8.0.220.0030.00316.95
8.0.210.0000.00716.91
8.0.200.0000.00616.98
8.0.190.0040.00417.11
8.0.180.0000.00816.94
8.0.170.0030.00617.05
8.0.160.0050.00216.96
8.0.150.0000.00817.05
8.0.140.0080.00017.02
8.0.130.0070.00213.49
8.0.120.0050.00216.98
8.0.110.0080.00017.00
8.0.100.0040.00416.91
8.0.90.0050.00217.00
8.0.80.0060.01317.06
8.0.70.0070.00017.07
8.0.60.0080.00016.99
8.0.50.0000.00717.08
8.0.30.0120.00717.08
8.0.20.0080.01117.40
8.0.10.0000.00717.17
8.0.00.0100.00816.80
7.4.330.0030.00315.16
7.4.320.0000.00716.79
7.4.300.0030.00316.69
7.4.290.0000.00816.66
7.4.280.0080.00016.73
7.4.270.0000.00716.70
7.4.260.0030.00316.68
7.4.250.0000.00716.59
7.4.240.0020.00516.71
7.4.230.0000.00716.62
7.4.220.0090.01516.77
7.4.210.0060.00816.76
7.4.200.0000.00716.82
7.4.190.0040.00416.79
7.4.160.0060.01016.44
7.4.150.0140.00417.40
7.4.140.0110.00617.86
7.4.130.0130.00616.67
7.4.120.0140.00616.77
7.4.110.0120.00616.52
7.4.100.0150.00916.63
7.4.90.0110.00716.74
7.4.80.0110.00719.39
7.4.70.0080.00916.39
7.4.60.0140.00316.43
7.4.50.0030.00616.65
7.4.40.0170.00316.71
7.4.30.0070.01016.58
7.4.00.0090.00615.04
7.3.330.0000.00513.17
7.3.320.0050.00013.18
7.3.310.0030.00316.19
7.3.300.0030.00316.26
7.3.290.0090.00516.37
7.3.280.0090.00816.35
7.3.270.0150.00917.40
7.3.260.0130.01016.55
7.3.250.0110.00716.50
7.3.240.0050.01116.63
7.3.230.0100.00616.68
7.3.210.0110.00816.36
7.3.200.0170.00619.39
7.3.190.0100.01016.29
7.3.180.0030.01216.26
7.3.170.0190.00316.55
7.3.160.0060.01316.46
7.3.120.0040.01115.01
7.2.330.0210.03516.58
7.2.320.0060.01216.35
7.2.310.0060.01316.57
7.2.300.0030.01316.66
7.2.290.0090.01316.69
7.2.110.0040.01116.58
7.2.60.0030.01016.98
7.2.00.0090.00619.64
7.1.200.0060.00615.93
7.1.100.0030.00818.22
7.1.70.0040.00817.45
7.1.60.0140.01019.46
7.1.50.0040.01817.20
7.1.00.0130.06722.40
7.0.200.0000.00716.82
7.0.140.0100.06721.95
7.0.60.0000.08019.95
7.0.50.0070.06717.88
7.0.40.0000.08020.32
7.0.30.0230.03720.21
7.0.20.0300.05320.35
7.0.10.0100.08320.23
7.0.00.0070.04720.07
5.6.280.0030.07321.01
5.6.210.0070.08020.44
5.6.200.0100.07718.12
5.6.190.0030.05720.39
5.6.180.0200.03720.62
5.6.170.0330.07020.51
5.6.160.0030.04020.46
5.6.150.0070.05718.15
5.6.140.0070.04318.28
5.6.130.0100.05018.24
5.6.120.0000.04721.14
5.6.110.0070.07721.04
5.6.100.0100.08021.08
5.6.90.0070.04020.95
5.6.80.0100.06720.38
5.6.70.3900.04020.36
5.5.350.0270.06320.48
5.5.340.0100.07018.04
5.5.330.0130.04720.37
5.5.320.0270.03720.37
5.5.310.0100.04320.29
5.5.300.0170.07317.95
5.5.290.0170.06717.98
5.5.280.0030.04720.77
5.5.270.0200.07320.87
5.5.260.0000.04320.77
5.5.250.0130.07720.61
5.5.240.0370.06020.15
5.4.450.0230.05319.48
5.4.440.0270.05019.54
5.4.430.0230.05019.30
5.4.420.0230.05719.68
5.4.410.0170.05319.25
5.4.400.0170.05319.06
5.4.390.0130.06018.84
5.4.380.0330.05018.63
5.4.370.0300.05718.74
5.4.360.0230.05318.64
5.4.350.0330.05018.64
5.4.340.0400.04318.71
5.4.320.0040.03812.48
5.4.310.0060.05112.47
5.4.300.0060.03612.48
5.4.290.0050.03912.46
5.4.280.0040.03812.36
5.4.270.0070.03712.36
5.4.260.0060.03912.36
5.4.250.0120.06012.36
5.4.240.0060.04112.36
5.4.230.0110.05512.35
5.4.220.0130.05012.35
5.4.210.0120.05112.35
5.4.200.0080.04012.35
5.4.190.0100.05312.34
5.4.180.0060.05412.34
5.4.170.0060.03712.36
5.4.160.0080.03612.35
5.4.150.0090.03512.35
5.4.140.0090.04112.03
5.4.130.0050.03812.02
5.4.120.0170.08911.98
5.4.110.0090.03611.97
5.4.100.0080.03511.97
5.4.90.0050.05811.98
5.4.80.0090.05211.97
5.4.70.0060.04111.97
5.4.60.0050.03711.97
5.4.50.0090.03811.97
5.4.40.0080.03911.96
5.4.30.0110.04611.96
5.4.20.0080.05611.96
5.4.10.0080.05111.96
5.4.00.0060.05411.45
5.3.290.0060.03812.80
5.3.280.0100.05312.71
5.3.270.0090.05512.72
5.3.260.0100.05512.72
5.3.250.0090.05412.72
5.3.240.0070.05512.72
5.3.230.0060.05512.71
5.3.220.0110.10412.68
5.3.210.0070.07412.68
5.3.200.0090.05212.68
5.3.190.0080.05112.67
5.3.180.0070.05612.67
5.3.170.0060.05912.67
5.3.160.0110.05112.67
5.3.150.0060.05312.67
5.3.140.0090.03612.66
5.3.130.0050.04312.65
5.3.120.0070.04812.66
5.3.110.0080.04212.66
5.3.100.0070.04612.12
5.3.90.0110.05012.09
5.3.80.0120.03412.07
5.3.70.0080.03512.08
5.3.60.0080.03612.07
5.3.50.0070.04012.01
5.3.40.0080.05012.02
5.3.30.0100.04711.97
5.3.20.0070.04911.75
5.3.10.0110.04611.72
5.3.00.0100.04911.70
5.2.170.0060.0429.20
5.2.160.0100.0389.20
5.2.150.0090.0369.21
5.2.140.0050.0309.20
5.2.130.0070.0289.16
5.2.120.0040.0339.16
5.2.110.0060.0309.17
5.2.100.0060.0419.16
5.2.90.0060.0289.16
5.2.80.0040.0329.16
5.2.70.0060.0319.16
5.2.60.0070.0319.12
5.2.50.0070.0349.08
5.2.40.0050.0389.07
5.2.30.0070.0369.04
5.2.20.0070.0279.04
5.2.10.0030.0318.94
5.2.00.0050.0298.79
5.1.60.0040.0258.06
5.1.50.0030.0268.06
5.1.40.0040.0258.04
5.1.30.0060.0258.39
5.1.20.0040.0438.41
5.1.10.0080.0338.13
5.1.00.0060.0398.14
5.0.50.0060.0196.61
5.0.40.0030.0236.48
5.0.30.0040.0416.29
5.0.20.0060.0186.26
5.0.10.0060.0216.23
5.0.00.0040.0346.23
4.4.90.0030.0164.78
4.4.80.0030.0164.76
4.4.70.0050.0184.76
4.4.60.0030.0154.76
4.4.50.0020.0164.77
4.4.40.0050.0244.71
4.4.30.0020.0174.75
4.4.20.0040.0154.84
4.4.10.0060.0174.85
4.4.00.0020.0344.76
4.3.110.0050.0154.67
4.3.100.0020.0184.66
4.3.90.0050.0144.63
4.3.80.0020.0264.58
4.3.70.0060.0194.63
4.3.60.0080.0174.62
4.3.50.0040.0204.63
4.3.40.0030.0334.54
4.3.30.0030.0223.29
4.3.20.0010.0183.26
4.3.10.0030.0183.22
4.3.00.0000.0237.24

preferences:
41.52 ms | 401 KiB | 5 Q