3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches=array(); $string = 'This is a [templateVar]'; preg_match_all("/\[[a-z]*\]/", $string, $matches); var_dump($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.0110.00418.36
8.3.50.0120.00921.99
8.3.40.0040.01118.54
8.3.30.0100.00318.70
8.3.20.0040.00420.20
8.3.10.0040.00420.64
8.3.00.0080.00019.25
8.2.180.0040.01218.25
8.2.170.0040.01122.96
8.2.160.0060.00819.13
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0050.00319.83
8.2.110.0110.00022.25
8.2.100.0070.00417.84
8.2.90.0000.00819.22
8.2.80.0030.00517.97
8.2.70.0000.00917.63
8.2.60.0030.00617.90
8.2.50.0000.00818.07
8.2.40.0040.00417.93
8.2.30.0030.00519.27
8.2.20.0080.00017.74
8.2.10.0000.00717.88
8.2.00.0040.00417.81
8.1.280.0070.01025.92
8.1.270.0040.00423.77
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0000.00922.09
8.1.230.0090.00319.16
8.1.220.0080.00017.74
8.1.210.0000.00918.77
8.1.200.0100.00317.13
8.1.190.0030.00517.25
8.1.180.0030.00718.10
8.1.170.0030.00518.67
8.1.160.0000.00721.87
8.1.150.0080.00018.71
8.1.140.0000.00817.40
8.1.130.0030.00317.88
8.1.120.0000.00717.44
8.1.110.0030.00517.55
8.1.100.0000.00717.53
8.1.90.0040.00417.56
8.1.80.0040.00417.44
8.1.70.0030.00317.42
8.1.60.0040.00417.56
8.1.50.0040.00417.50
8.1.40.0000.01017.52
8.1.30.0080.00017.72
8.1.20.0040.00417.64
8.1.10.0070.00017.50
8.1.00.0080.00017.59
8.0.300.0070.00018.77
8.0.290.0000.00816.63
8.0.280.0040.00418.35
8.0.270.0030.00317.16
8.0.260.0040.00417.21
8.0.250.0030.00316.91
8.0.240.0000.00616.92
8.0.230.0000.00717.02
8.0.220.0000.00716.86
8.0.210.0000.00816.93
8.0.200.0030.00317.04
8.0.190.0050.00317.04
8.0.180.0000.00716.97
8.0.170.0060.00316.94
8.0.160.0050.00216.97
8.0.150.0030.00316.81
8.0.140.0090.00016.97
8.0.130.0030.00313.43
8.0.120.0030.00616.88
8.0.110.0000.00816.95
8.0.100.0050.00216.87
8.0.90.0000.00716.76
8.0.80.0060.00916.96
8.0.70.0040.00416.75
8.0.60.0000.00716.88
8.0.50.0050.00316.90
8.0.30.0110.01317.10
8.0.20.0120.00817.40
8.0.10.0070.00016.97
8.0.00.0090.00916.80
7.4.330.0050.00015.00
7.4.320.0030.00316.65
7.4.300.0000.00716.60
7.4.290.0000.00716.58
7.4.280.0090.00316.57
7.4.270.0040.00416.71
7.4.260.0000.00816.69
7.4.250.0000.00916.70
7.4.240.0020.00516.70
7.4.230.0030.00316.45
7.4.220.0070.01416.77
7.4.210.0000.01416.61
7.4.200.0040.00216.47
7.4.160.0060.00916.54
7.4.150.0100.00717.40
7.4.140.0100.00717.86
7.4.130.0030.01516.60
7.4.120.0120.00516.62
7.4.110.0060.01116.39
7.4.100.0140.00416.53
7.4.90.0110.00716.43
7.4.80.0070.01019.37
7.4.70.0110.00716.42
7.4.60.0070.01016.56
7.4.50.0000.00716.71
7.4.40.0140.00816.52
7.4.30.0190.00416.59
7.4.00.0100.00714.88
7.3.330.0050.00013.02
7.3.320.0030.00313.15
7.3.310.0000.00716.15
7.3.300.0030.00316.38
7.3.290.0030.01116.24
7.3.280.0060.01116.29
7.3.270.0090.00917.40
7.3.260.0090.00916.59
7.3.250.0120.00516.49
7.3.240.0100.00616.44
7.3.230.0060.01116.67
7.3.210.0060.01716.57
7.3.200.0160.00319.39
7.3.190.0110.00616.35
7.3.180.0160.00316.39
7.3.170.0110.00516.35
7.3.160.0040.01316.32
7.3.10.0060.00816.63
7.3.00.0110.00416.46
7.2.330.0110.00716.45
7.2.320.0080.00816.58
7.2.310.0140.00316.52
7.2.300.0100.00616.62
7.2.290.0140.00316.74
7.2.130.0080.00516.80
7.2.120.0060.00516.79
7.2.110.0030.00716.76
7.2.100.0100.00516.86
7.2.90.0050.01216.80
7.2.80.0090.00816.60
7.2.70.0100.00516.71
7.2.60.0070.00816.91
7.2.50.0070.00616.89
7.2.40.0070.00716.78
7.2.30.0050.00916.88
7.2.20.0030.01116.75
7.2.10.0050.00716.91
7.2.00.0070.00617.64
7.1.250.0080.00715.82
7.1.200.0000.00916.07
7.1.100.0030.01018.32
7.1.70.0040.00417.14
7.1.60.0030.02019.32
7.1.50.0060.01917.02
7.1.00.0070.07322.55
7.0.200.0000.00916.95
7.0.140.0030.07321.95
7.0.60.0030.05319.96
7.0.50.0070.08317.88
7.0.40.0100.07020.42
7.0.30.0300.07720.23
7.0.20.0170.07320.18
7.0.10.0100.05320.14
7.0.00.0130.06720.03
5.6.280.0070.06720.90
5.6.210.0130.08020.61
5.6.200.0100.08318.12
5.6.190.0070.04320.61
5.6.180.0430.04020.60
5.6.170.0200.04720.55
5.6.160.0030.06320.33
5.6.150.0070.04018.21
5.6.140.0100.08018.21
5.6.130.0100.06318.20
5.6.120.0030.06020.95
5.6.110.0100.06020.88
5.6.100.0130.07720.88
5.6.90.0070.07321.02
5.6.80.0170.07020.39
5.5.350.0230.07720.32
5.5.340.0070.08317.95
5.5.330.0070.08320.45
5.5.320.0430.07720.29
5.5.310.0270.08020.13
5.5.300.0030.04017.95
5.5.290.0070.08017.90
5.5.280.0170.07320.68
5.5.270.0100.05720.88
5.5.260.0170.07320.95
5.5.250.0130.07320.69
5.5.240.0630.05320.34
5.4.450.0300.06719.10
5.4.440.0970.06319.31
5.4.430.1530.04719.51
5.4.420.0700.00019.51
5.4.410.0830.00019.36
5.4.400.0630.00019.05
5.4.390.0670.00018.92
5.4.380.0870.00019.16
5.4.370.0670.00018.95
5.4.360.0830.00019.09
5.4.350.0870.00019.09
5.4.340.0630.00019.06
5.4.320.0070.03812.45
5.4.310.0070.04712.45
5.4.300.0070.03412.45
5.4.290.0100.03412.45
5.4.280.0060.03512.35
5.4.270.0060.03512.35
5.4.260.0070.03512.35
5.4.250.0030.04012.35
5.4.240.0090.03212.35
5.4.230.0110.03612.34
5.4.220.0060.04512.34
5.4.210.0040.03512.34
5.4.200.0050.04112.34
5.4.190.0050.03412.33
5.4.180.0050.04112.33
5.4.170.0040.04112.34
5.4.160.0050.03412.34
5.4.150.0070.04112.34
5.4.140.0080.04112.02
5.4.130.0050.03612.01
5.4.120.0040.03511.96
5.4.110.0060.03711.96
5.4.100.0090.03511.96
5.4.90.0080.03411.97
5.4.80.0080.03611.96
5.4.70.0050.04111.96
5.4.60.0080.03011.96
5.4.50.0050.03511.96
5.4.40.0060.03511.95
5.4.30.0040.03711.95
5.4.20.0070.03311.95
5.4.10.0070.03311.95
5.4.00.0040.03711.44
5.3.290.0070.03812.80
5.3.280.0080.03712.70
5.3.270.0060.03812.72
5.3.260.0070.03812.72
5.3.250.0080.03612.72
5.3.240.0060.03712.72
5.3.230.0050.03812.71
5.3.220.0030.03912.68
5.3.210.0060.04012.68
5.3.200.0090.04912.68
5.3.190.0060.03712.68
5.3.180.0080.03812.68
5.3.170.0050.04112.67
5.3.160.0040.03812.67
5.3.150.0080.04012.67
5.3.140.0050.03712.66
5.3.130.0060.04412.66
5.3.120.0080.04012.66
5.3.110.0090.03912.66
5.3.100.0090.04112.12
5.3.90.0050.04012.08
5.3.80.0100.03712.08
5.3.70.0060.03712.07
5.3.60.0100.03312.06
5.3.50.0050.03812.00
5.3.40.0050.03812.00
5.3.30.0090.03111.95
5.3.20.0070.03711.73
5.3.10.0020.04411.70
5.3.00.0070.03511.69
5.2.170.0030.0339.19
5.2.160.0040.0329.19
5.2.150.0040.0319.19
5.2.140.0080.0279.18
5.2.130.0050.0289.14
5.2.120.0060.0269.14
5.2.110.0040.0299.15
5.2.100.0040.0309.15
5.2.90.0070.0279.15
5.2.80.0050.0329.14
5.2.70.0070.0279.14
5.2.60.0040.0319.10
5.2.50.0080.0329.06
5.2.40.0040.0339.05
5.2.30.0050.0299.02
5.2.20.0040.0299.01
5.2.10.0030.0338.91
5.2.00.0040.0308.77
5.1.60.0020.0268.06
5.1.50.0030.0288.05
5.1.40.0020.0268.04
5.1.30.0040.0278.39
5.1.20.0070.0328.41
5.1.10.0040.0298.13
5.1.00.0030.0448.14
5.0.50.0060.0216.61
5.0.40.0030.0196.47
5.0.30.0040.0306.28
5.0.20.0050.0176.25
5.0.10.0040.0196.23
5.0.00.0020.0356.23
4.4.90.0010.0164.78
4.4.80.0050.0134.75
4.4.70.0040.0204.75
4.4.60.0040.0144.76
4.4.50.0020.0154.77
4.4.40.0020.0264.71
4.4.30.0040.0154.76
4.4.20.0040.0154.85
4.4.10.0030.0164.85
4.4.00.0020.0314.76
4.3.110.0030.0154.67
4.3.100.0040.0194.66
4.3.90.0020.0204.63
4.3.80.0040.0224.58
4.3.70.0030.0134.63
4.3.60.0040.0124.63
4.3.50.0020.0164.63
4.3.40.0020.0244.54
4.3.30.0010.0173.28
4.3.20.0010.0173.25
4.3.10.0010.0163.22
4.3.00.0030.0137.96

preferences:
41.92 ms | 401 KiB | 5 Q