3v4l.org

run code in 300+ PHP versions simultaneously
<?php $FileContent = 'Bot draws - nino: (JH)'; preg_match("#^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.0090.01216.63
8.3.50.0080.00817.65
8.3.40.0120.00318.95
8.3.30.0000.01619.01
8.3.20.0130.00319.03
8.3.10.0000.00820.73
8.3.00.0030.01219.63
8.2.180.0120.00917.00
8.2.170.0110.00722.96
8.2.160.0100.00721.06
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0100.00017.75
8.2.110.0070.00320.98
8.2.100.0030.01017.84
8.2.90.0000.00919.42
8.2.80.0000.00719.21
8.2.70.0060.00317.88
8.2.60.0060.00618.04
8.2.50.0030.00618.07
8.2.40.0000.00818.34
8.2.30.0000.01218.17
8.2.20.0070.00017.79
8.2.10.0020.00518.03
8.2.00.0040.00818.05
8.1.280.0040.01425.92
8.1.270.0060.00324.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00820.81
8.1.230.0000.01220.88
8.1.220.0000.00917.79
8.1.210.0090.00018.77
8.1.200.0030.00617.48
8.1.190.0000.00717.63
8.1.180.0040.00418.10
8.1.170.0040.00418.75
8.1.160.0000.00818.89
8.1.150.0050.00318.80
8.1.140.0040.00417.62
8.1.130.0030.00317.74
8.1.120.0040.00417.72
8.1.110.0070.00017.52
8.1.100.0040.00417.66
8.1.90.0050.00317.46
8.1.80.0040.00417.51
8.1.70.0030.00317.61
8.1.60.0090.00017.75
8.1.50.0000.00717.62
8.1.40.0030.00517.71
8.1.30.0040.00417.83
8.1.20.0060.00317.79
8.1.10.0030.00617.67
8.1.00.0040.00417.72
8.0.300.0030.00619.98
8.0.290.0040.00416.88
8.0.280.0000.00818.52
8.0.270.0030.00317.18
8.0.260.0000.00717.04
8.0.250.0040.00417.23
8.0.240.0040.00417.20
8.0.230.0030.00317.20
8.0.220.0070.00017.02
8.0.210.0030.00317.01
8.0.200.0030.00617.12
8.0.190.0000.00817.18
8.0.180.0040.00417.07
8.0.170.0040.00417.07
8.0.160.0040.00417.19
8.0.150.0050.00317.02
8.0.140.0080.00016.97
8.0.130.0000.00513.54
8.0.120.0000.00717.11
8.0.110.0000.00717.15
8.0.100.0040.00417.07
8.0.90.0000.00716.98
8.0.80.0040.01417.16
8.0.70.0040.00416.97
8.0.60.0040.00417.05
8.0.50.0040.00417.10
8.0.30.0150.00517.35
8.0.20.0070.01617.57
8.0.10.0070.00017.10
8.0.00.0090.00917.06
7.4.330.0000.00613.32
7.4.320.0060.00016.71
7.4.300.0070.00016.79
7.4.290.0040.00416.74
7.4.280.0040.00416.65
7.4.270.0040.00416.80
7.4.260.0050.00013.46
7.4.250.0060.00316.77
7.4.240.0070.00016.78
7.4.230.0000.00716.62
7.4.220.0060.01316.65
7.4.210.0080.00716.74
7.4.200.0070.00016.86
7.4.190.0070.00016.94
7.4.160.0130.00316.91
7.4.150.0100.00716.71
7.4.140.0160.00616.83
7.4.130.0070.01316.91
7.4.120.0110.00816.74
7.4.110.0150.00616.80
7.4.100.0060.01216.96
7.4.90.0040.02116.52
7.4.80.0100.01019.39
7.4.70.0110.01116.79
7.4.60.0030.01316.81
7.4.50.0080.00016.66
7.4.40.0070.00416.48
7.4.30.0030.01316.63
7.4.00.0070.00815.32
7.3.330.0000.00613.53
7.3.320.0060.00013.33
7.3.310.0000.00716.42
7.3.300.0000.00716.55
7.3.290.0030.01116.50
7.3.280.0050.01216.48
7.3.270.0060.01216.69
7.3.260.0100.00716.68
7.3.250.0060.01516.73
7.3.240.0090.00816.50
7.3.230.0100.00716.50
7.3.210.0090.01216.69
7.3.200.0030.01316.52
7.3.190.0120.00916.59
7.3.180.0150.00316.73
7.3.170.0030.01316.65
7.3.160.0100.00716.50
7.3.120.0100.00714.94
7.3.110.0070.01114.88
7.3.100.0000.01415.14
7.3.90.0030.00715.18
7.3.80.0000.01415.31
7.3.70.0070.00715.03
7.3.60.0030.01015.13
7.3.50.0060.00914.89
7.3.40.0000.01814.86
7.3.30.0090.00315.12
7.3.20.0050.00516.99
7.3.10.0090.00316.92
7.3.00.0070.00716.95
7.2.330.0080.01216.75
7.2.320.0000.01716.80
7.2.310.0100.01316.69
7.2.300.0100.00716.71
7.2.290.0070.01017.01
7.2.250.0100.00715.27
7.2.240.0130.00715.29
7.2.230.0070.01115.32
7.2.220.0070.00315.25
7.2.210.0000.01615.48
7.2.200.0000.00915.11
7.2.190.0080.00815.47
7.2.180.0090.00915.16
7.2.170.0110.00714.98
7.2.60.0030.01017.31
7.2.00.0000.01219.79
7.1.330.0000.01216.25
7.1.320.0000.01416.21
7.1.310.0070.00716.22
7.1.300.0090.00315.98
7.1.290.0030.01516.18
7.1.280.0090.00916.07
7.1.270.0030.01416.01
7.1.260.0110.00415.89
7.1.200.0160.00516.17
7.1.100.0080.00318.19
7.1.70.0050.00217.29
7.1.60.0000.02419.40
7.1.50.0090.01616.86
7.1.00.0030.08722.48
7.0.200.0160.00315.18
7.0.140.0130.06322.02
7.0.120.0030.07721.96
7.0.60.0070.08320.09
7.0.50.0170.05317.90
7.0.40.0100.06320.42
7.0.30.0330.04320.15
7.0.20.0230.08020.02
7.0.10.0270.03720.03
7.0.00.0030.04320.16
5.6.280.0100.06720.89
5.6.210.0130.05720.56
5.6.200.0130.06718.09
5.6.190.0000.04720.21
5.6.180.0330.07020.56
5.6.170.0230.04020.44
5.6.160.0130.03720.48
5.6.150.0030.05318.18
5.6.140.0170.07318.09
5.6.130.0100.06018.18
5.6.120.0030.07321.02
5.6.110.0100.06021.13
5.6.100.0030.07021.11
5.6.90.0070.07720.98
5.6.80.0030.08720.38
5.6.70.0270.07020.39
5.5.350.0300.07720.43
5.5.340.0130.07318.02
5.5.330.0000.05720.27
5.5.320.0230.06320.40
5.5.310.0300.06320.50
5.5.300.0030.08017.95
5.5.290.0070.07717.92
5.5.280.0100.07020.88
5.5.270.0000.04320.86
5.5.260.0070.07720.80
5.5.250.0200.08320.65
5.5.240.0100.03720.36
5.4.450.0100.05719.41
5.4.440.0100.07019.52
5.4.430.0000.07019.48
5.4.420.0070.03719.51
5.4.410.0030.03719.00
5.4.400.0100.06719.18
5.4.390.0030.03719.16
5.4.380.0000.04319.14
5.4.370.0030.05018.79
5.4.360.0000.08319.18
5.4.350.0030.03719.16
5.4.340.0030.07019.14
5.4.320.0130.07019.12
5.4.310.0130.06319.20
5.4.300.0000.04719.14
5.4.290.0130.05019.00
5.4.280.0070.03719.08
5.4.270.0070.04019.15
5.4.260.0030.07018.79
5.4.250.0000.05018.81
5.4.240.0100.05719.07
5.4.230.0030.07019.07
5.4.220.0130.06718.80
5.4.210.0000.04019.17
5.4.200.0070.03319.07
5.4.190.0030.04319.11
5.4.180.0030.06718.90
5.4.170.0100.03319.13
5.4.160.0030.04718.76
5.4.150.0030.06718.79
5.4.140.0070.03316.27
5.4.130.0030.04016.43
5.4.120.0030.03316.43
5.4.110.0030.03716.32
5.4.100.0070.04316.37
5.4.90.0100.03716.41
5.4.80.0100.03716.59
5.4.70.0100.06316.30
5.4.60.0130.03016.37
5.4.50.0100.05016.21
5.4.40.0030.04316.38
5.4.30.0030.04316.38
5.4.20.0000.03716.32
5.4.10.0070.05016.20
5.4.00.0030.03315.86
5.3.290.0070.06014.58
5.3.280.0070.03714.41
5.3.270.0000.04714.48
5.3.260.0100.07314.57
5.3.250.0070.07014.53
5.3.240.0030.05014.62
5.3.230.0030.04314.55
5.3.220.0030.06314.58
5.3.210.0000.04714.48
5.3.200.0070.03314.48
5.3.190.0000.04014.49
5.3.180.0070.06314.49
5.3.170.0070.07314.50
5.3.160.0100.05014.49
5.3.150.0070.06714.48
5.3.140.0000.04014.48
5.3.130.0070.07314.34
5.3.120.0070.07314.33
5.3.110.0000.07014.44
5.3.100.0030.04313.98
5.3.90.0070.03313.96
5.3.80.0000.04013.94
5.3.70.0030.03713.96
5.3.60.0000.06713.92
5.3.50.0030.03713.78
5.3.40.0030.04313.87
5.3.30.0130.05713.83
5.3.20.0030.03713.78
5.3.10.0070.04313.47
5.3.00.0000.08013.43
5.2.170.0070.02311.14
5.2.160.0000.06711.01
5.2.150.0030.03311.01
5.2.140.0170.05011.01
5.2.130.0030.04311.25
5.2.120.0030.03011.27
5.2.110.0000.05011.01
5.2.100.0030.06311.01
5.2.90.0030.06011.09
5.2.80.0070.05011.01
5.2.70.0030.03311.01
5.2.60.0000.03011.01
5.2.50.0000.03011.01
5.2.40.0030.04711.01
5.2.30.0000.04311.01
5.2.20.0000.03011.01
5.2.10.0070.02311.01
5.2.00.0030.05011.01
5.1.60.0000.04711.01
5.1.50.0000.02711.01
5.1.40.0030.02311.01
5.1.30.0030.02711.01
5.1.20.0100.03711.01
5.1.10.0000.02711.01
5.1.00.0070.02311.01
5.0.50.0000.02011.01
5.0.40.0070.03711.01
5.0.30.0000.03011.01
5.0.20.0030.04311.01
5.0.10.0000.02311.01
5.0.00.0000.03011.01
4.4.90.0000.02011.01
4.4.80.0000.01711.01
4.4.70.0030.02711.01
4.4.60.0070.02011.01
4.4.50.0030.01311.01
4.4.40.0000.03711.01
4.4.30.0030.01311.01
4.4.20.0000.02011.01
4.4.10.0000.04011.01
4.4.00.0000.05011.01
4.3.110.0000.01711.01
4.3.100.0130.02311.01
4.3.90.0030.03711.01
4.3.80.0000.04311.01
4.3.70.0070.01011.01
4.3.60.0070.03011.01
4.3.50.0000.01711.01
4.3.40.0070.04711.01
4.3.30.0000.03711.01
4.3.20.0000.03711.01
4.3.10.0000.02311.01
4.3.00.0000.01711.01

preferences:
52.9 ms | 401 KiB | 5 Q