3v4l.org

run code in 300+ PHP versions simultaneously
<?php # URL that generated this code: # http://txt2re.com/index-php.php3?s=14:Sep:2012%20%22This%20is%20an%20Example!%22&18 $txt='14:Sep:2012 "This is an Example!"'; $re1='.*?'; # Non-greedy match on filler $re2='(?:[a-z][a-z0-9_]*)'; # Uninteresting: var $re3='.*?'; # Non-greedy match on filler $re4='(?:[a-z][a-z0-9_]*)'; # Uninteresting: var $re5='.*?'; # Non-greedy match on filler $re6='((?:[a-z][a-z0-9_]*))'; # Variable Name 1 if ($c=preg_match_all ("/".$re1.$re2.$re3.$re4.$re5.$re6."/is", $txt, $matches)) { $var1=$matches[1][0]; print_r($matches); } #----- # 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.60.0040.01116.75
8.3.50.0120.00922.11
8.3.40.0120.00319.21
8.3.30.0110.00319.09
8.3.20.0040.00420.34
8.3.10.0070.00023.66
8.3.00.0110.00017.88
8.2.180.0090.00618.54
8.2.170.0070.00722.96
8.2.160.0000.01420.38
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00322.05
8.2.110.0030.00719.12
8.2.100.0120.00018.03
8.2.90.0050.00319.34
8.2.80.0030.00617.97
8.2.70.0000.00817.88
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0040.00418.22
8.2.30.0000.00918.21
8.2.20.0040.00417.91
8.2.10.0080.00018.08
8.2.00.0040.00417.81
8.1.280.0180.00025.92
8.1.270.0000.00822.14
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00321.43
8.1.230.0080.00317.77
8.1.220.0000.00817.74
8.1.210.0090.00018.77
8.1.200.0030.00617.35
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0080.00418.71
8.1.160.0040.00422.06
8.1.150.0080.00018.80
8.1.140.0040.00417.66
8.1.130.0000.00817.89
8.1.120.0040.00417.52
8.1.110.0020.00517.51
8.1.100.0070.00017.59
8.1.90.0040.00417.57
8.1.80.0050.00317.60
8.1.70.0030.00317.62
8.1.60.0030.00617.74
8.1.50.0000.00817.55
8.1.40.0070.00017.63
8.1.30.0050.00317.75
8.1.20.0080.00017.79
8.1.10.0000.00817.77
8.1.00.0000.00717.54
8.0.300.0040.00418.77
8.0.290.0030.00516.88
8.0.280.0000.00718.51
8.0.270.0000.00717.29
8.0.260.0000.00617.30
8.0.250.0030.00317.13
8.0.240.0000.00817.12
8.0.230.0000.00717.02
8.0.220.0030.00316.96
8.0.210.0030.00316.98
8.0.200.0000.00816.98
8.0.190.0040.00417.18
8.0.180.0040.00416.95
8.0.170.0030.00517.08
8.0.160.0030.00316.93
8.0.150.0000.00716.99
8.0.140.0040.00417.02
8.0.130.0040.00413.43
8.0.120.0050.00217.04
8.0.110.0050.00216.91
8.0.100.0040.00416.94
8.0.90.0020.00517.09
8.0.80.0080.00817.00
8.0.70.0000.00816.95
8.0.60.0040.00416.85
8.0.50.0000.00716.95
8.0.30.0070.01317.34
8.0.20.0100.00917.40
8.0.10.0060.00316.91
8.0.00.0110.00816.98
7.4.330.0000.00715.00
7.4.320.0000.00716.83
7.4.300.0030.00316.71
7.4.290.0090.00016.64
7.4.280.0070.00016.70
7.4.270.0000.00716.74
7.4.260.0000.00716.73
7.4.250.0040.00416.59
7.4.240.0020.00616.78
7.4.230.0050.00316.64
7.4.220.0130.01316.63
7.4.210.0060.00816.69
7.4.200.0070.00016.55
7.4.190.0000.00716.63
7.4.160.0130.01016.57
7.4.150.0180.00017.40
7.4.140.0100.00717.86
7.4.130.0110.00716.72
7.4.120.0120.00516.72
7.4.110.0150.00316.64
7.4.100.0030.01516.65
7.4.90.0130.00416.70
7.4.80.0080.00819.39
7.4.70.0030.01416.91
7.4.60.0060.01616.79
7.4.50.0060.00016.63
7.4.40.0030.01022.77
7.4.30.0060.00916.82
7.4.00.0050.01315.11
7.3.330.0050.00013.32
7.3.320.0030.00313.39
7.3.310.0040.00416.28
7.3.300.0030.00316.33
7.3.290.0090.01216.51
7.3.280.0130.00616.48
7.3.270.0070.01017.40
7.3.260.0070.01116.62
7.3.250.0100.00816.64
7.3.240.0110.00516.44
7.3.230.0110.00816.48
7.3.210.0090.00816.77
7.3.200.0030.01419.39
7.3.190.0090.00916.46
7.3.180.0080.00816.48
7.3.170.0140.00716.66
7.3.160.0140.00716.38
7.3.120.0070.00715.12
7.3.110.0090.01015.05
7.3.100.0060.00614.74
7.3.90.0070.00714.92
7.3.80.0060.00614.67
7.3.70.0070.01015.00
7.3.60.0040.00414.96
7.3.50.0060.00915.05
7.3.40.0060.00914.73
7.3.30.0040.00714.83
7.3.20.0070.00716.91
7.3.10.0110.00316.56
7.3.00.0090.00316.78
7.2.330.0040.01416.78
7.2.320.0100.01316.78
7.2.310.0090.01216.48
7.2.300.0090.01316.76
7.2.290.0080.00816.73
7.2.250.0090.00915.15
7.2.240.0000.01615.25
7.2.230.0000.01515.25
7.2.220.0120.00415.09
7.2.210.0060.00615.05
7.2.200.0130.00315.20
7.2.190.0060.00315.15
7.2.180.0090.00615.19
7.2.170.0070.01314.98
7.2.00.0040.00819.47
7.1.330.0040.01116.04
7.1.320.0120.00315.77
7.1.310.0030.01016.04
7.1.300.0030.01215.65
7.1.290.0080.00815.73
7.1.280.0060.01215.78
7.1.270.0050.00315.81
7.1.260.0080.00416.03
7.1.100.0000.01018.45
7.1.70.0050.00317.57
7.1.60.0090.01619.33
7.1.50.0090.01517.11
7.1.00.0070.07322.59
7.0.200.0000.00917.01
7.0.140.0000.07321.93
7.0.100.0100.05319.90
7.0.90.0100.07319.90
7.0.80.0270.05019.94
7.0.70.0070.07319.93
7.0.60.0070.08719.96
7.0.50.0070.08720.25
7.0.40.0100.05020.10
7.0.30.0230.03720.19
7.0.20.0030.05020.18
7.0.10.0100.04320.12
7.0.00.0070.04719.98
5.6.280.0070.06721.02
5.6.250.0100.07020.75
5.6.240.0070.08320.64
5.6.230.0130.09020.50
5.6.220.0070.07320.70
5.6.210.0100.08020.66
5.6.200.0130.08021.03
5.6.190.0200.08321.04
5.6.180.0200.06721.04
5.6.170.0170.04721.13
5.6.160.0070.05721.02
5.6.150.0030.04321.02
5.6.140.0030.04321.01
5.6.130.0030.04320.94
5.6.120.0030.04021.04
5.6.110.0070.08021.00
5.6.100.0070.07020.93
5.6.90.0030.06321.02
5.6.80.0000.04720.39
5.6.70.0030.04320.38
5.6.60.0030.05020.29
5.6.50.0070.04320.52
5.6.40.0100.03320.43
5.6.30.0030.04020.38
5.6.20.0070.03720.30
5.6.10.0000.04320.33
5.6.00.0030.04020.27
5.5.380.0130.06720.49
5.5.370.0100.08020.36
5.5.360.0030.04720.44
5.5.350.0030.09020.48
5.5.340.0170.07020.74
5.5.330.0070.08320.79
5.5.320.0030.08320.91
5.5.310.0070.05020.86
5.5.300.0000.04320.83
5.5.290.0070.04320.79
5.5.280.0070.04720.88
5.5.270.0030.06020.86
5.5.260.0130.06020.75
5.5.250.0100.03020.73
5.5.240.0070.03720.27
5.5.230.0070.03720.18
5.5.220.0030.04020.14
5.5.210.0130.06320.25
5.5.200.0070.03720.15
5.5.190.0070.03720.21
5.5.180.0100.03720.08
5.5.160.0000.04020.21
5.5.150.0130.03020.21
5.5.140.0030.04019.98
5.5.130.0070.03720.18
5.5.120.0030.04020.11
5.5.110.0030.04020.10
5.5.100.0030.04019.95
5.5.90.0000.04320.09
5.5.80.0030.04020.07
5.5.70.0070.03720.08
5.5.60.0030.04020.11
5.5.50.0100.07720.11
5.5.40.0100.04720.07
5.5.30.0030.08720.02
5.5.20.0000.09320.02
5.5.10.0100.07320.07
5.5.00.0100.07020.05
5.4.450.0170.03019.46
5.4.440.0100.04019.35
5.4.430.0100.05719.55
5.4.420.0130.07319.52
5.4.410.0070.03719.38
5.4.400.0070.03719.13
5.4.390.0030.04319.02
5.4.380.0200.02019.24
5.4.370.0100.03019.09
5.4.360.0130.02719.20
5.4.350.0000.04019.18
5.4.340.0130.05318.90
5.4.320.0000.04318.94
5.4.310.0070.03719.20
5.4.300.0030.03719.22
5.4.290.0030.04019.12
5.4.280.0030.04018.94
5.4.270.0030.03719.02
5.4.260.0030.03719.04
5.4.250.0070.03319.17
5.4.240.0030.03719.03
5.4.230.0000.04319.21
5.4.220.0130.06019.17
5.4.210.0030.05719.11
5.4.200.0170.07019.02
5.4.190.0200.06719.03
5.4.180.0170.05319.14
5.4.170.0030.07719.17
5.4.160.0100.04019.11
5.4.150.0100.06719.01
5.4.140.0070.07316.41
5.4.130.0170.06716.40
5.4.120.0030.06316.18
5.4.110.0130.06316.33
5.4.100.0000.04716.29
5.4.90.0070.03716.37
5.4.80.0070.04716.42
5.4.70.0100.07016.39
5.4.60.0070.07716.36
5.4.50.0030.07016.44
5.4.40.0070.07316.38
5.4.30.0100.06316.43
5.4.20.0030.07716.30
5.4.10.0070.07016.36
5.4.00.0030.06015.85
5.3.290.0030.03314.68
5.3.280.0030.04314.54
5.3.270.0130.07014.67
5.3.260.0070.09014.66
5.3.250.0170.04014.56
5.3.240.0130.06014.60
5.3.230.0170.05314.48
5.3.220.0130.06014.45
5.3.210.0030.07714.61
5.3.200.0170.06714.59
5.3.190.0200.04714.65
5.3.180.0100.06014.48
5.3.170.0030.05014.48
5.3.160.0070.04014.54
5.3.150.0030.08014.62
5.3.140.0070.04314.52
5.3.130.0070.07714.46
5.3.120.0070.03714.66
5.3.110.0130.07014.54
5.3.100.0070.04013.96
5.3.90.0070.07314.07
5.3.80.0030.08314.07
5.3.70.0030.08013.90
5.3.60.0030.06013.93
5.3.50.0070.05713.94
5.3.40.0070.05313.96
5.3.30.0070.06013.96
5.3.20.0170.06013.74
5.3.10.0030.05713.55
5.3.00.0070.05013.69
5.2.170.0070.06311.18
5.2.160.0030.04311.21
5.2.150.0000.03311.14
5.2.140.0070.03311.19
5.2.130.0070.05711.11
5.2.120.0030.05311.20
5.2.110.0070.05710.98
5.2.100.0070.02710.97
5.2.90.0070.04310.96
5.2.80.0030.06011.15
5.2.70.0100.05710.95
5.2.60.0070.04311.15
5.2.50.0070.03311.00
5.2.40.0030.05311.02
5.2.30.0070.05711.00
5.2.20.0070.05310.82
5.2.10.0070.04710.99
5.2.00.0070.03010.57
5.1.60.0030.05010.00
5.1.50.0030.05310.04
5.1.40.0100.0509.96
5.1.30.0070.04710.36
5.1.20.0030.06010.29
5.1.10.0170.04010.07
5.1.00.0000.0309.90
5.0.50.0030.0239.73
5.0.40.0100.0209.73
5.0.30.0070.0279.73
5.0.20.0030.0379.73
5.0.10.0000.0209.73
5.0.00.0000.0339.73
4.4.90.0000.0309.73
4.4.80.0000.0179.73
4.4.70.0000.0409.73
4.4.60.0000.0239.73
4.4.50.0000.0309.73
4.4.40.0030.0509.73
4.4.30.0030.0279.73
4.4.20.0070.0339.73
4.4.10.0000.0309.73
4.4.00.0000.0539.73
4.3.110.0000.0239.73
4.3.100.0000.0409.73
4.3.90.0000.0409.73
4.3.80.0030.0479.73
4.3.70.0030.0139.73
4.3.60.0030.0309.73
4.3.50.0070.0239.73
4.3.40.0070.0479.73
4.3.30.0000.0279.73
4.3.20.0000.0379.73
4.3.10.0030.0179.73
4.3.00.0000.0379.73

preferences:
40.64 ms | 401 KiB | 5 Q