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='is'; # Uninteresting: var $re3='.*?'; # Non-greedy match on filler $re4='(is)'; # Variable Name 1 if ($c=preg_match_all ("/".$re1.$re2.$re3.$re4."/is", $txt, $matches)) { $var1=$matches[1][0]; print "($var1) \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.60.0060.01216.63
8.3.50.0140.00222.00
8.3.40.0040.01119.11
8.3.30.0140.00419.21
8.3.20.0070.00020.37
8.3.10.0040.00423.66
8.3.00.0000.00819.27
8.2.180.0080.00816.63
8.2.170.0070.00722.96
8.2.160.0070.01320.39
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0070.00426.16
8.2.120.0080.00020.69
8.2.110.0070.00322.25
8.2.100.0080.00417.82
8.2.90.0040.00419.27
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0090.00018.03
8.2.50.0050.00318.10
8.2.40.0050.00321.32
8.2.30.0060.00318.23
8.2.20.0050.00217.80
8.2.10.0040.00418.06
8.2.00.0050.00317.77
8.1.280.0100.00325.92
8.1.270.0040.00423.97
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0040.00423.87
8.1.230.0070.00417.82
8.1.220.0060.00317.74
8.1.210.0030.00518.77
8.1.200.0000.00917.48
8.1.190.0040.00417.48
8.1.180.0060.00318.10
8.1.170.0000.00818.70
8.1.160.0040.00422.05
8.1.150.0000.00818.78
8.1.140.0040.00417.61
8.1.130.0070.00017.86
8.1.120.0000.00717.66
8.1.110.0080.00317.61
8.1.100.0070.00017.58
8.1.90.0030.00617.63
8.1.80.0050.00317.51
8.1.70.0060.00317.55
8.1.60.0000.00817.63
8.1.50.0000.00917.74
8.1.40.0000.00817.66
8.1.30.0000.00817.64
8.1.20.0030.00617.77
8.1.10.0000.00817.68
8.1.00.0040.00417.55
8.0.300.0050.00218.77
8.0.290.0040.00416.75
8.0.280.0000.00718.46
8.0.270.0040.00417.23
8.0.260.0000.00617.19
8.0.250.0030.00317.02
8.0.240.0050.00317.07
8.0.230.0080.00017.10
8.0.220.0070.00017.02
8.0.210.0030.00316.95
8.0.200.0030.00317.14
8.0.190.0050.00316.95
8.0.180.0050.00317.03
8.0.170.0030.00517.03
8.0.160.0000.00717.00
8.0.150.0000.00717.07
8.0.140.0070.00016.89
8.0.130.0030.00313.48
8.0.120.0080.00017.03
8.0.110.0050.00316.95
8.0.100.0000.00716.89
8.0.90.0000.00716.93
8.0.80.0090.01016.98
8.0.70.0000.00816.98
8.0.60.0030.00317.07
8.0.50.0080.00016.93
8.0.30.0120.00617.32
8.0.20.0140.00517.40
8.0.10.0000.00817.13
8.0.00.0100.00717.08
7.4.330.0020.00215.17
7.4.320.0040.00416.64
7.4.300.0000.00616.72
7.4.290.0070.00016.68
7.4.280.0040.00416.79
7.4.270.0070.00016.57
7.4.260.0000.00716.77
7.4.250.0000.00716.59
7.4.240.0030.00316.83
7.4.230.0000.00716.73
7.4.220.0070.01816.58
7.4.210.0080.00816.68
7.4.200.0000.00716.73
7.4.190.0000.00716.86
7.4.160.0060.00916.66
7.4.150.0060.01317.40
7.4.140.0110.00917.86
7.4.130.0100.01216.68
7.4.120.0080.00916.63
7.4.110.0110.00716.56
7.4.100.0120.00916.67
7.4.90.0110.00716.79
7.4.80.0060.01319.39
7.4.70.0120.00316.64
7.4.60.0100.01016.71
7.4.50.0050.00016.61
7.4.40.0070.01116.61
7.4.30.0120.00416.61
7.4.00.0060.00915.12
7.3.330.0000.00513.34
7.3.320.0030.00313.43
7.3.310.0000.00716.38
7.3.300.0000.00716.39
7.3.290.0100.01016.55
7.3.280.0070.01116.52
7.3.270.0130.00617.40
7.3.260.0110.00616.77
7.3.250.0090.00916.65
7.3.240.0000.01716.76
7.3.230.0190.00316.69
7.3.210.0150.00416.54
7.3.200.0120.00919.39
7.3.190.0160.00616.65
7.3.180.0130.00316.76
7.3.170.0090.00616.51
7.3.160.0110.00316.53
7.3.120.0070.00715.28
7.3.10.0130.00316.60
7.3.00.0090.00616.54
7.2.330.0120.00916.70
7.2.320.0120.00616.82
7.2.310.0080.01316.90
7.2.300.0100.00716.94
7.2.290.0070.01116.91
7.2.130.0130.00317.13
7.2.120.0060.00316.84
7.2.110.0040.00716.79
7.2.100.0090.00616.93
7.2.90.0030.01017.20
7.2.80.0040.00817.39
7.2.70.0000.01217.25
7.2.60.0030.01317.18
7.2.50.0090.00317.19
7.2.40.0090.00617.25
7.2.30.0080.00817.26
7.2.20.0090.00917.24
7.2.10.0110.00016.86
7.2.00.0030.01218.44
7.1.250.0000.01415.85
7.1.200.0000.01115.88
7.1.100.0070.00318.67
7.1.70.0040.00417.10
7.1.60.0070.01719.46
7.1.50.0130.01016.98
7.1.00.0070.06722.46
7.0.200.0060.00616.77
7.0.140.0000.07722.09
7.0.60.0070.08319.83
7.0.50.0070.07717.82
7.0.40.0030.09020.25
7.0.30.0330.03720.23
7.0.20.0300.06320.33
7.0.10.0070.06720.02
7.0.00.0100.08720.34
5.6.280.0000.07720.82
5.6.210.0070.08320.51
5.6.200.0130.07718.17
5.6.190.0070.08020.77
5.6.180.0430.07020.61
5.6.170.0300.07320.41
5.6.160.0170.07020.42
5.6.150.0030.06318.21
5.6.140.0100.07018.13
5.6.130.0000.06718.18
5.6.120.0200.06321.00
5.6.110.0070.04020.99
5.6.100.0130.07321.01
5.6.90.0070.08720.88
5.6.80.0070.08320.39
5.5.350.0000.03320.46
5.5.340.0000.04017.91
5.5.330.0100.07720.14
5.5.320.1430.04720.50
5.5.310.0330.06720.30
5.5.300.0070.07717.97
5.5.290.0100.08017.94
5.5.280.0070.04020.67
5.5.270.0030.09020.72
5.5.260.0300.04320.79
5.5.250.0100.04320.66
5.5.240.0000.08320.23
5.4.450.0430.05019.36
5.4.440.0230.05319.54
5.4.430.0770.02719.38
5.4.420.0630.04319.45
5.4.410.0500.03719.29
5.4.400.0570.03719.07
5.4.390.0430.03719.21
5.4.380.0500.03019.06
5.4.370.0630.03719.25
5.4.360.1270.02319.25
5.4.350.0570.04318.88
5.4.340.0630.04718.90
5.4.320.0600.04318.88
5.4.310.0400.04319.16
5.4.300.0830.04019.07
5.4.290.0600.04319.13
5.4.280.0570.04018.78
5.4.270.0400.03718.77
5.4.260.0370.04719.16
5.4.250.0630.03719.07
5.4.240.0630.03719.21
5.4.230.0730.03718.89
5.4.220.0600.06318.79
5.4.210.0800.03318.76
5.4.200.0570.03719.24
5.4.190.0730.03319.20
5.4.180.0600.04018.92
5.4.170.0400.03719.13
5.4.160.0630.05319.20
5.4.150.0370.04319.14
5.4.140.0370.03716.33
5.4.130.0600.04016.46
5.4.120.0500.04316.53
5.4.110.0630.03716.46
5.4.100.0170.03716.17
5.4.90.0730.04316.47
5.4.80.0570.03316.27
5.4.70.1030.03016.42
5.4.60.0870.04016.26
5.4.50.0500.04016.36
5.4.40.0370.03716.15
5.4.30.0470.04016.43
5.4.20.1070.01716.38
5.4.10.0830.03716.18
5.4.00.0800.04015.77
5.3.290.0500.05015.25
5.3.280.0200.05315.25
5.3.270.0330.04315.24
5.3.260.0800.05715.24
5.3.250.0800.03715.24
5.3.240.0330.04315.24
5.3.230.0600.03015.24
5.3.220.0570.04315.24
5.3.210.0600.03715.24
5.3.200.0870.04015.24
5.3.190.0670.04015.24
5.3.180.0500.04715.24
5.3.170.0400.03715.24
5.3.160.0770.03315.24
5.3.150.0530.04315.24
5.3.140.0870.03715.24
5.3.130.0500.04315.24
5.3.120.0600.04715.24
5.3.110.0730.03315.24
5.3.100.0100.04315.24
5.3.90.0370.04015.24
5.3.80.0570.04015.24
5.3.70.0430.04315.24
5.3.60.0500.04015.24
5.3.50.0300.04315.24
5.3.40.0230.03715.24
5.3.30.0400.04015.24
5.3.20.0570.03715.24
5.3.10.1000.03315.24
5.3.00.0700.03015.24
5.2.170.0600.03715.24
5.2.160.0430.04715.24
5.2.150.0330.04315.24
5.2.140.0730.03015.24
5.2.130.0670.03015.24
5.2.120.0670.02715.24
5.2.110.0630.02315.24
5.2.100.0430.02015.24
5.2.90.0470.02715.24
5.2.80.0270.03315.24
5.2.70.0530.03315.24
5.2.60.0270.03315.24
5.2.50.0370.02015.24
5.2.40.0370.02715.24
5.2.30.0200.03015.24
5.2.20.0230.02715.24
5.2.10.0230.03015.24
5.2.00.0300.02715.24
5.1.60.0400.03315.24
5.1.50.0570.01715.24
5.1.40.0630.02015.24
5.1.30.0400.02315.24
5.1.20.0300.03015.24
5.1.10.0300.02315.24
5.1.00.0570.02715.24
5.0.50.0100.03015.24
5.0.40.0270.02015.24
5.0.30.0270.02715.24
5.0.20.0100.02015.24
5.0.10.0300.01015.24
5.0.00.0070.03315.24
4.4.90.0200.02015.24
4.4.80.0230.01715.24
4.4.70.0130.01715.24
4.4.60.0230.01715.24
4.4.50.0130.01715.24
4.4.40.0100.01715.24
4.4.30.0200.01715.24
4.4.20.0100.01715.24
4.4.10.0200.01315.24
4.4.00.0030.02715.24
4.3.110.0100.01715.24
4.3.100.0270.01715.24
4.3.90.0270.01015.24
4.3.80.0100.02315.24
4.3.70.0070.01715.24
4.3.60.0200.01315.24
4.3.50.0170.01015.24
4.3.40.0130.02315.24
4.3.30.0030.02315.24
4.3.20.0100.02315.24
4.3.10.0200.01315.24
4.3.00.0200.03715.24

preferences:
37.69 ms | 400 KiB | 5 Q