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.0040.01116.34
8.3.50.0070.01018.07
8.3.40.0070.00718.88
8.3.30.0070.01018.99
8.3.20.0070.00020.16
8.3.10.0040.00423.66
8.3.00.0070.00317.50
8.2.180.0150.00318.66
8.2.170.0100.01022.96
8.2.160.0070.01020.48
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00722.28
8.2.110.0040.00422.24
8.2.100.0080.00419.76
8.2.90.0000.00819.27
8.2.80.0080.00017.97
8.2.70.0030.00617.75
8.2.60.0000.00817.91
8.2.50.0080.00018.07
8.2.40.0090.00318.01
8.2.30.0080.00019.81
8.2.20.0040.00417.79
8.2.10.0050.00217.98
8.2.00.0030.00517.75
8.1.270.0040.00423.77
8.1.260.0090.00026.35
8.1.250.0050.00328.09
8.1.240.0030.00623.92
8.1.230.0110.00019.08
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0040.00417.13
8.1.180.0070.00319.01
8.1.170.0040.00418.59
8.1.160.0000.00821.88
8.1.150.0090.00018.65
8.1.140.0050.00217.52
8.1.130.0030.00317.86
8.1.120.0070.00017.52
8.1.110.0000.00717.53
8.1.100.0040.00417.45
8.1.90.0040.00317.54
8.1.80.0000.00717.61
8.1.70.0030.00317.55
8.1.60.0030.00717.64
8.1.50.0060.00317.55
8.1.40.0040.00417.65
8.1.30.0080.00017.62
8.1.20.0040.00417.76
8.1.10.0000.00717.67
8.1.00.0020.00517.56
8.0.300.0030.00618.77
8.0.290.0070.00016.90
8.0.280.0070.00018.26
8.0.270.0070.00016.93
8.0.260.0000.00617.17
8.0.250.0040.00416.93
8.0.240.0040.00416.96
8.0.230.0040.00416.91
8.0.220.0040.00416.82
8.0.210.0030.00316.96
8.0.200.0000.00616.91
8.0.190.0050.00217.01
8.0.180.0040.00416.93
8.0.170.0040.00417.04
8.0.160.0040.00416.85
8.0.150.0030.00517.00
8.0.140.0040.00416.88
8.0.130.0050.00213.46
8.0.120.0000.00816.93
8.0.110.0070.00016.89
8.0.100.0000.00716.85
8.0.90.0040.00416.88
8.0.80.0030.01416.85
8.0.70.0040.00416.97
8.0.60.0000.00717.03
8.0.50.0000.00716.83
8.0.30.0100.00917.05
8.0.20.0170.00817.40
8.0.10.0050.00217.04
8.0.00.0120.00617.02
7.4.330.0050.00015.00
7.4.320.0000.00716.67
7.4.300.0000.00916.74
7.4.290.0020.00516.71
7.4.280.0030.00516.70
7.4.270.0030.00516.54
7.4.260.0060.00016.64
7.4.250.0000.00716.57
7.4.240.0020.00616.76
7.4.230.0040.00416.82
7.4.220.0100.00716.73
7.4.210.0100.00716.72
7.4.200.0040.00416.58
7.4.190.0070.00016.60
7.4.160.0070.01016.58
7.4.150.0060.01217.40
7.4.140.0120.00617.86
7.4.130.0120.00516.41
7.4.120.0110.00516.67
7.4.110.0090.00916.63
7.4.100.0120.00616.52
7.4.90.0170.00016.65
7.4.80.0150.00619.39
7.4.70.0120.01116.81
7.4.60.0050.01216.51
7.4.50.0040.00416.76
7.4.40.0090.01216.52
7.4.30.0090.00616.75
7.4.00.0090.00914.84
7.3.330.0030.00313.11
7.3.320.0000.00513.02
7.3.310.0000.00816.27
7.3.300.0000.00716.27
7.3.290.0130.00616.24
7.3.280.0090.01016.29
7.3.270.0120.00617.40
7.3.260.0120.00916.53
7.3.250.0110.00516.43
7.3.240.0100.00716.29
7.3.230.0030.01416.47
7.3.210.0110.00716.19
7.3.200.0120.00919.39
7.3.190.0090.01016.19
7.3.180.0110.00416.29
7.3.170.0130.00316.29
7.3.160.0180.00316.73
7.3.120.0040.01214.73
7.3.10.0060.00916.61
7.3.00.0140.00016.80
7.2.330.0150.00316.63
7.2.320.0030.01416.48
7.2.310.0030.01316.72
7.2.300.0120.00616.72
7.2.290.0000.01716.46
7.2.130.0040.00717.04
7.2.120.0080.00516.68
7.2.110.0160.00917.02
7.2.100.0140.00716.88
7.2.90.0070.01016.77
7.2.80.0100.01416.75
7.2.70.0000.01316.81
7.2.60.0180.00316.92
7.2.50.0030.01016.93
7.2.40.0000.01516.69
7.2.30.0060.00617.09
7.2.20.0060.01016.99
7.2.10.0100.00316.74
7.2.00.0090.00518.23
7.1.250.0120.00315.56
7.1.100.0030.00718.44
7.1.70.0030.01017.09
7.1.60.0060.01919.46
7.1.50.0070.01117.04
7.1.00.0030.07722.46
7.0.200.0000.00716.82
7.0.140.0000.07722.01
7.0.60.0030.04019.90
7.0.50.0000.04717.98
7.0.40.0070.05020.25
7.0.30.0370.04720.15
7.0.20.0270.08020.13
7.0.10.0030.04720.11
7.0.00.0070.08320.09
5.6.280.0070.07021.12
5.6.210.0130.07720.54
5.6.200.0070.08318.19
5.6.190.0100.05020.39
5.6.180.0330.07720.50
5.6.170.0130.05720.52
5.6.160.0100.03720.39
5.6.150.0070.07718.19
5.6.140.0070.08018.27
5.6.130.0000.08018.20
5.6.120.0100.04721.00
5.6.110.0030.05021.08
5.6.100.0030.06021.00
5.6.90.0070.08020.99
5.6.80.0100.03320.37
5.5.350.2430.03020.32
5.5.340.0030.06317.98
5.5.330.0030.08020.40
5.5.320.0330.07320.39
5.5.310.0300.06320.32
5.5.300.0030.07318.04
5.5.290.0070.03718.04
5.5.280.0070.08320.88
5.5.270.0070.03720.86
5.5.260.0070.07020.67
5.5.250.0070.07720.57
5.5.240.0100.06720.12
5.4.450.0200.05719.63
5.4.440.0370.04719.61
5.4.430.0300.04319.60
5.4.420.0200.05319.30
5.4.410.0230.05719.04
5.4.400.0200.06319.30
5.4.390.0300.06719.26
5.4.380.0430.05018.76
5.4.370.0230.05718.74
5.4.360.0270.05018.59
5.4.350.0330.07018.63
5.4.340.0370.04318.79
5.4.320.0060.03812.48
5.4.310.0090.04612.48
5.4.300.0030.04012.48
5.4.290.0090.05412.47
5.4.280.0060.05212.37
5.4.270.0030.05112.37
5.4.260.0090.03812.37
5.4.250.0060.03912.37
5.4.240.0120.04412.37
5.4.230.0160.06212.36
5.4.220.0070.03812.36
5.4.210.0070.04712.36
5.4.200.0060.03812.36
5.4.190.0030.04012.36
5.4.180.0080.03512.36
5.4.170.0090.03412.37
5.4.160.0070.04512.36
5.4.150.0080.03512.36
5.4.140.0050.04312.05
5.4.130.0120.05212.04
5.4.120.0070.04311.99
5.4.110.0060.04211.98
5.4.100.0050.03711.98
5.4.90.0080.03511.99
5.4.80.0060.03911.99
5.4.70.0050.03811.98
5.4.60.0060.03711.98
5.4.50.0050.03911.98
5.4.40.0050.03811.97
5.4.30.0100.04711.97
5.4.20.0070.04211.97
5.4.10.0040.03611.97
5.4.00.0030.03911.46
5.3.290.0080.05212.80
5.3.280.0090.03512.71
5.3.270.0040.04412.73
5.3.260.0070.04012.72
5.3.250.0100.03812.72
5.3.240.0040.04612.72
5.3.230.0070.03812.71
5.3.220.0080.03712.68
5.3.210.0110.03712.68
5.3.200.0040.04312.68
5.3.190.0080.03812.68
5.3.180.0080.03612.68
5.3.170.0060.03812.67
5.3.160.0110.03212.67
5.3.150.0050.03812.67
5.3.140.0060.03812.66
5.3.130.0090.04012.66
5.3.120.0070.03912.66
5.3.110.0090.04912.66
5.3.100.0070.03712.12
5.3.90.0070.03812.10
5.3.80.0050.04912.09
5.3.70.0050.05012.09
5.3.60.0110.03512.08
5.3.50.0060.05012.02
5.3.40.0080.04112.02
5.3.30.0060.04611.98
5.3.20.0100.03711.76
5.3.10.0050.04111.73
5.3.00.0120.04211.71
5.2.170.0050.0469.21
5.2.160.0060.0339.22
5.2.150.0040.0319.22
5.2.140.0050.0329.21
5.2.130.0080.0399.17
5.2.120.0070.0439.17
5.2.110.0120.0349.18
5.2.100.0070.0479.17
5.2.90.0050.0479.18
5.2.80.0090.0409.18
5.2.70.0070.0469.18
5.2.60.0130.0569.13
5.2.50.0090.0549.09
5.2.40.0090.0309.07
5.2.30.0070.0299.05
5.2.20.0060.0299.05
5.2.10.0040.0308.93
5.2.00.0030.0328.79
5.1.60.0060.0268.06
5.1.50.0080.0278.05
5.1.40.0080.0298.04
5.1.30.0060.0358.39
5.1.20.0060.0358.41
5.1.10.0050.0288.14
5.1.00.0050.0288.14
5.0.50.0030.0226.61
5.0.40.0080.0216.47
5.0.30.0020.0356.29
5.0.20.0040.0236.26
5.0.10.0020.0256.23
5.0.00.0040.0346.23
4.4.90.0020.0164.77
4.4.80.0070.0264.75
4.4.70.0050.0214.76
4.4.60.0040.0214.75
4.4.50.0040.0224.77
4.4.40.0020.0364.71
4.4.30.0040.0214.75
4.4.20.0070.0204.85
4.4.10.0030.0174.85
4.4.00.0040.0254.75
4.3.110.0030.0174.67
4.3.100.0030.0164.66
4.3.90.0060.0204.63
4.3.80.0040.0254.58
4.3.70.0030.0154.63
4.3.60.0040.0154.62
4.3.50.0040.0154.63
4.3.40.0020.0264.54
4.3.30.0030.0163.28
4.3.20.0030.0163.25
4.3.10.0010.0183.22
4.3.00.0030.0237.24

preferences:
60.21 ms | 400 KiB | 5 Q