3v4l.org

run code in 300+ PHP versions simultaneously
<?php $FileContent = 'Bot draws - nino: (JH)'; preg_match_all("#^Bot draws - ([a-z0-9\-\._]+)\: ?(\((.*)\))?$#i",$FileContent,$Matches); if ( is_array($Matches) && isset($Matches[0]) && count($Matches[0]) > 0 ) { foreach ( $Matches[0] as $key=>$val ) { $$Matches[1][$key] = create_function($Matches[2][$key],$Matches[3][$key]); } } echo $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.0140.00016.75
8.3.50.0220.00722.06
8.3.40.0070.00718.90
8.3.30.0110.00319.04
8.3.20.0040.00420.38
8.3.10.0040.00423.53
8.3.00.0030.00619.51
8.2.180.0120.00918.53
8.2.170.0150.00422.96
8.2.160.0070.01420.52
8.2.150.0040.00424.18
8.2.140.0110.00724.66
8.2.130.0000.00826.16
8.2.120.0040.00422.26
8.2.110.0070.00321.14
8.2.100.0040.00718.16
8.2.90.0040.00419.20
8.2.80.0060.00317.97
8.2.70.0030.00618.00
8.2.60.0080.00017.93
8.2.50.0080.00018.07
8.2.40.0080.00018.34
8.2.30.0040.00418.08
8.2.20.0040.00418.05
8.2.10.0000.00818.09
8.2.00.0040.00418.10
8.1.280.0040.01425.92
8.1.270.0060.00323.96
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00622.20
8.1.230.0070.00419.03
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0090.00017.47
8.1.190.0050.00517.48
8.1.180.0050.00318.10
8.1.170.0040.00418.79
8.1.160.0000.00721.99
8.1.150.0040.00418.80
8.1.140.0050.00217.72
8.1.130.0030.00317.79
8.1.120.0070.00017.61
8.1.110.0000.00717.61
8.1.100.0000.00817.53
8.1.90.0030.00517.59
8.1.80.0050.00217.53
8.1.70.0030.00717.50
8.1.60.0000.00817.64
8.1.50.0050.00317.61
8.1.40.0050.00317.77
8.1.30.0040.00417.82
8.1.20.0080.00017.66
8.1.10.0000.00717.71
8.1.00.0040.00417.56
8.0.300.0000.00720.20
8.0.290.0040.00416.75
8.0.280.0000.00818.36
8.0.270.0050.00317.29
8.0.260.0000.00616.97
8.0.250.0070.00017.18
8.0.240.0040.00417.21
8.0.230.0000.00717.18
8.0.220.0070.00017.05
8.0.210.0000.00717.04
8.0.200.0000.00617.02
8.0.190.0050.00217.08
8.0.180.0070.00017.16
8.0.170.0080.00017.13
8.0.160.0000.00817.23
8.0.150.0070.00016.92
8.0.140.0000.00717.01
8.0.130.0030.00313.47
8.0.120.0030.00517.04
8.0.110.0040.00417.09
8.0.100.0040.00417.18
8.0.90.0030.00517.15
8.0.80.0080.01217.16
8.0.70.0040.00417.16
8.0.60.0000.00717.08
8.0.50.0070.00016.91
8.0.30.0080.01017.45
8.0.20.0130.00617.41
8.0.10.0070.00017.10
8.0.00.0120.00616.87
7.4.330.0030.00315.12
7.4.320.0040.00416.75
7.4.300.0000.00616.64
7.4.290.0030.00316.88
7.4.280.0040.00416.75
7.4.270.0030.00316.68
7.4.260.0000.00716.68
7.4.250.0040.00416.68
7.4.240.0020.00516.74
7.4.230.0000.00716.78
7.4.220.0060.01316.71
7.4.210.0050.00916.71
7.4.200.0000.00716.67
7.4.190.0030.00316.98
7.4.160.0100.00616.80
7.4.150.0100.01017.40
7.4.140.0190.01017.86
7.4.130.0100.00616.84
7.4.120.0080.00916.76
7.4.110.0090.00916.71
7.4.100.0090.00916.91
7.4.90.0130.00716.86
7.4.80.0030.01719.39
7.4.70.0070.01016.64
7.4.60.0130.00316.91
7.4.50.0000.00816.77
7.4.40.0070.01022.77
7.4.30.0090.00616.62
7.4.00.0060.00915.16
7.3.330.0000.00513.34
7.3.320.0000.00513.58
7.3.310.0040.00416.55
7.3.300.0070.00016.54
7.3.290.0050.00916.49
7.3.280.0080.01216.50
7.3.270.0100.01017.40
7.3.260.0000.01716.57
7.3.250.0140.00716.66
7.3.240.0140.00316.44
7.3.230.0000.02016.65
7.3.210.0150.00316.52
7.3.200.0130.00319.39
7.3.190.0090.01216.46
7.3.180.0130.00316.66
7.3.170.0090.00616.46
7.3.160.0110.01116.44
7.3.120.0110.00314.98
7.2.330.0090.00916.78
7.2.320.0080.00817.04
7.2.310.0100.01316.90
7.2.300.0130.01016.89
7.2.290.0130.00316.80
7.2.60.0060.00617.21
7.2.00.0080.00819.80
7.1.200.0060.00615.90
7.1.100.0000.01318.20
7.1.70.0080.00317.21
7.1.60.0100.01319.33
7.1.50.0070.01017.21
7.1.00.0000.07722.36
7.0.200.0030.00516.84
7.0.140.0030.07322.05
7.0.60.0300.07721.84
7.0.50.0070.03717.88
7.0.40.0030.04320.23
7.0.30.0400.07020.23
7.0.20.0330.07320.09
7.0.10.0030.04320.07
7.0.00.0130.07720.34
5.6.280.0000.07721.14
5.6.210.0100.07720.51
5.6.200.0100.08318.24
5.6.190.0100.08020.34
5.6.180.0330.04720.55
5.6.170.0270.04320.62
5.6.160.0000.09320.43
5.6.150.0100.07718.14
5.6.140.0030.04718.28
5.6.130.0030.05718.21
5.6.120.0070.08020.98
5.6.110.0070.08320.98
5.6.100.0100.04020.97
5.6.90.0230.07721.10
5.6.80.0070.04720.38
5.5.350.0330.07020.30
5.5.340.0100.08318.04
5.5.330.0030.05020.21
5.5.320.0370.04320.32
5.5.310.0330.05720.30
5.5.300.0030.04017.98
5.5.290.0000.09017.98
5.5.280.0100.03720.77
5.5.270.0130.04020.75
5.5.260.0030.07020.88
5.5.250.0030.04320.46
5.5.240.0330.07320.25
5.4.450.0130.05719.27
5.4.440.0100.04019.49
5.4.430.1630.04319.39
5.4.420.2970.04719.21
5.4.410.4430.04019.13
5.4.400.0130.07319.09
5.4.390.2000.04318.86
5.4.380.3770.03318.94
5.4.370.3830.03318.81
5.4.360.2800.03719.15
5.4.350.2570.03319.02
5.4.340.3430.04319.10
5.4.320.0900.04719.08
5.4.310.2300.04019.16
5.4.300.2830.03718.94
5.4.290.0970.04318.90
5.4.280.1200.04318.94
5.4.270.2870.04719.15
5.4.260.3230.03318.94
5.4.250.4030.03719.08
5.4.240.2330.04018.96
5.4.230.3830.03019.07
5.4.220.1300.05018.94
5.4.210.0230.03719.05
5.4.200.0170.04318.81
5.4.190.0200.03319.07
5.4.180.0570.03318.93
5.4.170.0700.03318.93
5.4.160.0370.04019.14
5.4.150.0430.04019.05
5.4.140.0200.04716.55
5.4.130.1270.02316.40
5.4.120.0300.03716.35
5.4.110.0270.04716.57
5.4.100.0500.03316.27
5.4.90.0300.03016.53
5.4.80.0330.03016.36
5.4.70.0330.03016.50
5.4.60.0470.03316.45
5.4.50.0630.04316.45
5.4.40.3070.03716.42
5.4.30.3630.04016.48
5.4.20.4400.04016.50
5.4.10.3400.03316.30
5.4.00.4170.03315.89
5.3.290.0800.03314.72
5.3.280.4070.04014.77
5.3.270.1370.04014.63
5.3.260.0900.03314.53
5.3.250.0170.04714.50
5.3.240.0300.03314.75
5.3.230.0370.04014.53
5.3.220.0170.04314.72
5.3.210.0270.03314.59
5.3.200.0300.03314.73
5.3.190.0200.03714.63
5.3.180.0330.03714.63
5.3.170.0170.03714.60
5.3.160.0430.03714.46
5.3.150.1600.03314.59
5.3.140.3800.06714.55
5.3.130.3200.04014.59
5.3.120.3630.04014.56
5.3.110.3630.03714.55
5.3.100.3470.03714.07
5.3.90.4200.05014.09
5.3.80.1800.05314.05
5.3.70.1870.04314.10
5.3.60.0470.06014.00
5.3.50.0330.06014.01
5.3.40.1800.04313.94
5.3.30.3830.03714.06
5.3.20.3800.03713.86
5.3.10.2970.03713.70
5.3.00.3370.04013.62
5.2.170.0230.04711.11
5.2.160.0600.03011.31
5.2.150.3130.03011.11
5.2.140.4130.02311.12
5.2.130.2170.02311.11
5.2.120.3500.03711.03
5.2.110.3070.02311.11
5.2.100.3500.03011.26
5.2.90.3500.03311.14
5.2.80.3100.03011.14
5.2.70.4130.03011.07
5.2.60.0930.04311.09
5.2.50.0530.04010.98
5.2.40.0370.03711.01
5.2.30.0270.04010.90
5.2.20.0300.05711.04
5.2.10.0330.04310.80
5.2.00.0300.02710.69
5.1.60.0370.02710.09
5.1.50.0370.02010.02
5.1.40.0330.0239.89
5.1.30.0400.04710.39
5.1.20.0270.03010.25
5.1.10.0430.04310.01
5.1.00.0430.0409.99
5.0.50.0170.0408.59
5.0.40.0230.0438.44
5.0.30.0200.0438.24
5.0.20.0170.0308.17
5.0.10.0300.0338.16
5.0.00.0170.0538.24
4.4.90.1170.0177.07
4.4.80.0200.0207.07
4.4.70.0230.0307.07
4.4.60.0200.0207.07
4.4.50.0100.0237.07
4.4.40.0200.0437.07
4.4.30.0200.0307.07
4.4.20.0170.0137.07
4.4.10.0130.0277.07
4.4.00.0200.0377.07
4.3.110.0170.0307.07
4.3.100.0230.0237.07
4.3.90.0230.0237.07
4.3.80.0200.0307.07
4.3.70.0170.0207.07
4.3.60.0200.0337.07
4.3.50.0230.0307.07
4.3.40.0130.0277.07
4.3.30.0130.0307.07
4.3.20.0100.0377.07
4.3.10.0100.0377.07
4.3.00.0100.0307.07

preferences:
39.63 ms | 401 KiB | 5 Q