3v4l.org

run code in 300+ PHP versions simultaneously
<?php # URL that generated this code: # http://txt2re.com/index-php.php3?s=directv%20HR24NC-500nc&18&20&32&33&-36&34&30&31&12&7&6 $txt='directv HR34NC-500nc'; $re1='.*?'; # Non-greedy match on filler $re2='(?:[a-z][a-z]+)'; # Uninteresting: word $re3='.*?'; # Non-greedy match on filler $re4='((?:[a-z][a-z]+))'; # Word 1 $re5='(\\d+)'; # Integer Number 1 $re6='(\\d)'; # Any Single Digit 1 $re7='(\\d)'; # Any Single Digit 2 $re8='.*?'; # Non-greedy match on filler $re9='(-)'; # Any Single Character 1 $re10='(\\d+)'; # Integer Number 2 $re11='(\\d)'; # Any Single Digit 3 $re12='(\\d)'; # Any Single Digit 4 if ($c=preg_match_all ("/".$re1.$re2.$re3.$re4.$re5.$re6.$re7.$re8.$re9.$re10.$re11.$re12."/is", $txt, $matches)) { $word1=$matches[1][0]; $int1=$matches[2][0]; $d1=$matches[3][0]; $d2=$matches[4][0]; $c1=$matches[5][0]; $int2=$matches[6][0]; $d3=$matches[7][0]; $d4=$matches[8][0]; print "($word1) ($int1) ($d1) ($d2) ($c1) ($int2) ($d3) ($d4) \n"; } #----- # Paste the code into a new php file. Then in Unix: # $ php x.php #----- ?>

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.70.0130.00718.39
8.3.60.0030.01017.00
8.3.50.0040.01122.19
8.3.40.0150.00018.88
8.3.30.0110.00319.16
8.3.20.0080.00020.21
8.3.10.0080.00023.66
8.3.00.0060.00319.51
8.2.180.0120.00416.50
8.2.170.0110.00322.96
8.2.160.0130.00320.38
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00822.45
8.2.110.0100.00022.32
8.2.100.0040.00717.97
8.2.90.0040.00719.07
8.2.80.0040.00417.97
8.2.70.0030.00617.75
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0050.00320.01
8.2.30.0000.00718.10
8.2.20.0000.00917.85
8.2.10.0040.00418.14
8.2.00.0000.00917.91
8.1.280.0070.01425.92
8.1.270.0040.00423.79
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0000.00923.96
8.1.230.0110.00019.18
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00617.36
8.1.190.0030.00517.35
8.1.180.0000.00918.89
8.1.170.0040.00418.77
8.1.160.0000.00722.06
8.1.150.0040.00418.66
8.1.140.0040.00417.62
8.1.130.0030.00317.88
8.1.120.0000.00717.62
8.1.110.0060.00317.57
8.1.100.0050.00317.59
8.1.90.0050.00317.53
8.1.80.0050.00217.61
8.1.70.0030.00317.56
8.1.60.0040.00717.75
8.1.50.0040.00417.71
8.1.40.0000.00717.63
8.1.30.0040.00417.75
8.1.20.0000.00817.84
8.1.10.0070.00017.64
8.1.00.0060.00317.61
8.0.300.0040.00418.77
8.0.290.0050.00217.16
8.0.280.0030.00518.48
8.0.270.0040.00417.26
8.0.260.0070.00017.21
8.0.250.0000.00717.03
8.0.240.0030.00517.10
8.0.230.0000.00817.09
8.0.220.0070.00017.02
8.0.210.0030.00616.99
8.0.200.0060.00017.14
8.0.190.0090.00017.02
8.0.180.0000.00717.07
8.0.170.0040.00416.95
8.0.160.0050.00217.10
8.0.150.0000.00717.02
8.0.140.0040.00716.90
8.0.130.0030.00313.57
8.0.120.0040.00417.01
8.0.110.0040.00417.07
8.0.100.0000.00817.10
8.0.90.0030.00516.95
8.0.80.0040.01617.05
8.0.70.0000.00817.08
8.0.60.0000.00717.11
8.0.50.0050.00217.18
8.0.30.0140.00917.37
8.0.20.0110.00817.43
8.0.10.0020.00516.99
8.0.00.0090.01116.79
7.4.330.0000.00515.11
7.4.320.0030.00316.69
7.4.300.0070.00016.66
7.4.290.0030.00316.74
7.4.280.0050.00316.61
7.4.270.0030.00316.74
7.4.260.0030.00316.64
7.4.250.0040.00416.74
7.4.240.0020.00616.74
7.4.230.0030.00316.52
7.4.220.0100.01616.68
7.4.210.0000.01416.76
7.4.200.0030.00316.86
7.4.190.0070.00016.73
7.4.160.0070.01416.75
7.4.150.0090.00917.40
7.4.140.0020.01717.86
7.4.130.0100.00916.75
7.4.120.0130.00616.67
7.4.110.0120.00616.79
7.4.100.0070.01016.64
7.4.90.0060.01316.56
7.4.80.0040.01419.39
7.4.70.0060.01616.55
7.4.60.0100.00716.57
7.4.50.0030.00616.61
7.4.40.0060.01216.51
7.4.30.0060.00916.65
7.4.00.0120.00315.03
7.3.330.0000.00513.17
7.3.320.0030.00313.16
7.3.310.0000.00816.40
7.3.300.0000.00716.48
7.3.290.0030.01016.43
7.3.280.0100.00716.46
7.3.270.0130.00317.40
7.3.260.0170.00016.50
7.3.250.0090.01016.61
7.3.240.0070.01116.45
7.3.230.0050.01116.41
7.3.210.0130.00316.69
7.3.200.0120.00619.39
7.3.190.0120.00616.66
7.3.180.0110.01116.89
7.3.170.0140.00316.79
7.3.160.0100.00616.50
7.3.120.0070.00714.70
7.2.330.0100.01016.56
7.2.320.0090.01516.86
7.2.310.0160.00616.62
7.2.300.0060.01216.67
7.2.290.0150.00616.48
7.2.60.0040.01116.93
7.2.00.0030.01319.47
7.1.200.0090.00315.93
7.1.100.0000.01218.30
7.1.70.0070.00317.21
7.1.60.0130.01319.46
7.1.50.0070.00417.07
7.1.00.0030.07722.46
7.0.200.0050.00317.13
7.0.140.0070.07322.08
7.0.100.0330.05320.04
7.0.90.0200.05320.00
7.0.80.0000.05019.94
7.0.70.0270.07019.89
7.0.60.0230.07320.07
7.0.50.0170.08020.30
7.0.40.0100.05320.07
7.0.30.0170.07020.09
7.0.20.0070.08320.03
7.0.10.0030.06020.18
7.0.00.0070.06020.04
5.6.280.0000.07720.93
5.6.250.0030.05020.63
5.6.240.0100.04020.58
5.6.230.0070.04320.67
5.6.220.0200.04020.66
5.6.210.0170.06720.69
5.6.200.0030.08720.97
5.6.190.0000.04721.08
5.6.180.0130.07321.00
5.6.170.0100.05021.17
5.6.160.0170.08020.95
5.6.150.0100.08321.09
5.6.140.0070.09321.14
5.6.130.0100.08020.96
5.6.120.0130.06321.04
5.6.110.0130.08321.05
5.6.100.0070.05021.01
5.6.90.0130.03321.06
5.6.80.0100.05720.43
5.6.70.0100.04320.46
5.6.60.0070.04020.52
5.6.50.0070.04020.42
5.6.40.0100.04020.38
5.6.30.0070.04320.54
5.6.20.0070.04320.39
5.6.10.0070.03720.44
5.6.00.0100.03320.36
5.5.380.0030.04320.46
5.5.370.0030.05320.35
5.5.360.0070.07720.42
5.5.350.0130.06320.34
5.5.340.0000.08020.91
5.5.330.0170.03720.90
5.5.320.0100.07020.92
5.5.310.0000.06320.76
5.5.300.0170.06720.88
5.5.290.0070.06020.93
5.5.280.0070.06320.61
5.5.270.0170.03320.87
5.5.260.0030.08020.92
5.5.250.0100.05320.56
5.5.240.0000.04320.15
5.5.230.0070.03720.28
5.5.220.0130.07320.28
5.5.210.0000.05720.18
5.5.200.0030.05320.29
5.5.190.0070.04020.25
5.5.180.0030.04720.18
5.5.160.0030.04019.95
5.5.150.0000.05020.08
5.5.140.0100.03320.17
5.5.130.0070.03720.23
5.5.120.0100.02720.09
5.5.110.0030.03720.27
5.5.100.0070.03319.99
5.5.90.0030.03320.07
5.5.80.0070.03019.94
5.5.70.0030.03320.07
5.5.60.0000.03720.09
5.5.50.0070.03020.07
5.5.40.0030.03320.16
5.5.30.0070.03720.05
5.5.20.0000.03720.10
5.5.10.0000.05719.99
5.5.00.0000.04720.05
5.4.450.0070.07019.36
5.4.440.0100.05719.27
5.4.430.0030.09019.30
5.4.420.0030.06019.11
5.4.410.0070.07319.31
5.4.400.0100.06718.84
5.4.390.0070.05718.95
5.4.380.0070.03718.81
5.4.370.0070.04719.06
5.4.360.0030.04719.07
5.4.350.0030.04019.09
5.4.340.0030.04019.03
5.4.320.0070.03718.80
5.4.310.0000.04018.96
5.4.300.0030.03319.01
5.4.290.0030.03718.78
5.4.280.0000.03719.05
5.4.270.0030.03019.04
5.4.260.0070.03318.92
5.4.250.0030.03318.79
5.4.240.0100.03719.13
5.4.230.0070.02718.95
5.4.220.0030.03319.11
5.4.210.0070.03319.12
5.4.200.0030.03719.05
5.4.190.0030.03319.03
5.4.180.0070.03019.06
5.4.170.0030.03318.79
5.4.160.0100.03318.76
5.4.150.0100.02719.04
5.4.140.0000.03316.34
5.4.130.0030.03716.33
5.4.120.0070.02716.33
5.4.110.0000.04316.26
5.4.100.0000.03316.25
5.4.90.0000.04016.42
5.4.80.0070.02716.24
5.4.70.0030.03316.30
5.4.60.0070.03316.29
5.4.50.0000.03316.18
5.4.40.0070.03016.33
5.4.30.0030.03316.40
5.4.20.0030.03716.35
5.4.10.0070.02716.19
5.4.00.0100.02315.75
5.3.290.0030.04714.70
5.3.280.0070.02714.60
5.3.270.0030.03714.62
5.3.260.0030.05014.57
5.3.250.0070.03314.48
5.3.240.0030.03714.64
5.3.230.0130.02314.52
5.3.220.0100.02314.59
5.3.210.0030.03014.39
5.3.200.0070.02714.41
5.3.190.0070.03014.43
5.3.180.0000.03314.44
5.3.170.0030.03314.59
5.3.160.0030.03014.54
5.3.150.0100.02714.54
5.3.140.0030.03314.43
5.3.130.0070.03014.52
5.3.120.0030.03314.52
5.3.110.0030.04014.42
5.3.100.0070.02714.02
5.3.90.0100.02313.89
5.3.80.0000.03714.01
5.3.70.0000.03714.01
5.3.60.0030.03313.95
5.3.50.0030.05013.87
5.3.40.0100.05013.73
5.3.30.0030.03013.92
5.3.20.0000.03313.57
5.3.10.0130.03313.52
5.3.00.0000.03713.64
5.2.170.0070.03012.36
5.2.160.0070.02012.36
5.2.150.0030.02712.36
5.2.140.0030.03012.36
5.2.130.0030.03712.36
5.2.120.0070.02712.36
5.2.110.0000.05312.36
5.2.100.0000.03312.36
5.2.90.0030.02712.36
5.2.80.0030.02712.36
5.2.70.0030.02712.36
5.2.60.0030.02712.36
5.2.50.0030.03312.36
5.2.40.0070.06012.36
5.2.30.0070.05712.36
5.2.20.0030.02712.36
5.2.10.0000.06312.36
5.2.00.0070.05712.36
5.1.60.0070.02012.36
5.1.50.0030.03312.36
5.1.40.0000.03012.36
5.1.30.0070.02312.36
5.1.20.0070.03712.36
5.1.10.0000.02312.36
5.1.00.0030.04312.36
5.0.50.0030.02712.36
5.0.40.0070.01712.36
5.0.30.0000.04712.36
5.0.20.0070.01712.36
5.0.10.0030.02312.36
5.0.00.0070.05312.36
4.4.90.0030.01312.36
4.4.80.0000.01712.36
4.4.70.0000.01712.36
4.4.60.0030.02712.36
4.4.50.0000.01712.36
4.4.40.0000.05312.36
4.4.30.0000.01312.36
4.4.20.0030.03312.36
4.4.10.0030.03312.36
4.4.00.0000.03012.36
4.3.110.0000.02012.36
4.3.100.0100.03012.36
4.3.90.0070.01012.36
4.3.80.0000.04012.36
4.3.70.0070.03012.36
4.3.60.0000.01712.36
4.3.50.0000.02712.36
4.3.40.0000.03012.36
4.3.30.0000.02712.36
4.3.20.0030.01712.36
4.3.10.0000.01712.36
4.3.00.0070.03012.36

preferences:
39.81 ms | 401 KiB | 5 Q