3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches=array(); $string = 'This is a [templateVar]'; preg_match_all("^[^T]/", $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.40.0140.00418.58
8.3.30.0070.00718.77
8.3.20.0000.00820.21
8.3.10.0000.00820.54
8.3.00.0080.00019.13
8.2.170.0110.00422.96
8.2.160.0100.00720.55
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0050.00321.84
8.2.110.0120.00621.02
8.2.100.0060.00617.91
8.2.90.0030.00517.79
8.2.80.0060.00317.97
8.2.70.0050.00317.47
8.2.60.0210.00017.64
8.2.50.0070.00418.07
8.2.40.0070.00018.09
8.2.30.0030.00719.29
8.2.20.0040.00417.62
8.2.10.0000.00818.01
8.2.00.0030.00617.65
8.1.270.0000.00823.91
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00622.57
8.1.230.0050.00520.85
8.1.220.0080.00017.74
8.1.210.0100.00018.77
8.1.200.0030.00617.10
8.1.190.0030.00517.10
8.1.180.0020.00518.10
8.1.170.0050.00518.52
8.1.160.0060.00321.95
8.1.150.0000.00718.89
8.1.140.0000.00717.30
8.1.130.0030.00317.83
8.1.120.0070.00017.41
8.1.110.0040.00417.32
8.1.100.0000.00717.38
8.1.90.0000.00717.40
8.1.80.0040.00417.38
8.1.70.0000.00717.28
8.1.60.0080.00017.41
8.1.50.0000.00817.49
8.1.40.0040.00417.44
8.1.30.0000.00817.46
8.1.20.0000.00717.64
8.1.10.0040.00417.38
8.1.00.0040.00417.42
8.0.300.0000.00720.04
8.0.290.0030.00616.63
8.0.280.0070.00018.38
8.0.270.0000.00717.12
8.0.260.0060.00018.36
8.0.250.0030.00316.87
8.0.240.0000.00616.87
8.0.230.0040.00416.88
8.0.220.0030.00316.91
8.0.210.0030.00316.86
8.0.200.0040.00416.91
8.0.190.0030.00316.84
8.0.180.0030.00416.88
8.0.170.0040.00416.91
8.0.160.0030.00517.02
8.0.150.0050.00216.84
8.0.140.0000.00716.84
8.0.130.0000.00513.35
8.0.120.0060.00316.81
8.0.110.0000.00716.81
8.0.100.0050.00316.90
8.0.90.0040.00416.95
8.0.80.0000.01816.84
8.0.70.0000.00816.87
8.0.60.0070.00016.75
8.0.50.0050.00316.75
8.0.30.0070.01116.98
8.0.20.0120.00817.40
8.0.10.0050.00316.91
8.0.00.0110.00816.61
7.4.330.0000.00615.05
7.4.320.0030.00316.45
7.4.300.0040.00416.54
7.4.290.0000.00616.53
7.4.280.0080.00316.37
7.4.270.0000.00716.50
7.4.260.0030.00316.52
7.4.250.0000.00816.40
7.4.240.0020.00516.37
7.4.230.0040.00416.46
7.4.220.0030.01616.32
7.4.210.0040.01116.54
7.4.200.0000.00716.36
7.4.160.0040.01116.52
7.4.150.0120.00617.40
7.4.140.0090.00917.86
7.4.130.0100.00616.50
7.4.120.0080.00816.51
7.4.110.0120.00416.25
7.4.100.0150.00316.45
7.4.90.0080.00816.41
7.4.80.0070.01419.37
7.4.70.0120.01216.53
7.4.60.0090.00616.36
7.4.50.0040.00416.14
7.4.40.0070.01116.28
7.4.30.0080.01116.29
7.4.00.0070.01014.92
7.3.330.0000.00713.11
7.3.320.0060.00013.12
7.3.310.0070.00016.13
7.3.300.0000.00716.10
7.3.290.0060.00916.11
7.3.280.0140.00416.23
7.3.270.0170.00617.40
7.3.260.0170.00916.48
7.3.250.0090.00916.30
7.3.240.0060.01016.19
7.3.230.0060.00916.41
7.3.210.0110.00616.48
7.3.200.0070.01019.39
7.3.190.0060.01216.25
7.3.180.0130.00316.20
7.3.170.0090.00616.27
7.3.160.0090.00616.14
7.2.330.0140.00316.41
7.2.320.0030.01316.38
7.2.310.0060.01316.22
7.2.300.0120.01016.26
7.2.290.0130.00916.26
7.2.60.0040.01116.54
7.2.00.0060.00919.37
7.1.200.0100.00315.66
7.1.100.0070.00717.98
7.1.70.0060.01016.91
7.1.60.0090.01519.32
7.1.50.0100.01316.89
7.1.00.0030.07322.54
7.0.200.0050.00216.39
7.0.140.0030.07722.22
7.0.60.0070.04720.09
7.0.50.0030.08317.82
7.0.40.0130.05320.27
7.0.30.0300.07020.30
7.0.20.0230.05020.30
7.0.10.0030.05720.21
7.0.00.0100.06720.27
5.6.280.0070.07021.09
5.6.210.0070.08320.50
5.6.200.0070.07018.21
5.6.190.0070.07320.32
5.6.180.0300.05020.67
5.6.170.0170.04320.41
5.6.160.0030.05020.54
5.6.150.0000.07018.11
5.6.140.0100.08018.16
5.6.130.0070.06718.11
5.6.120.0170.07020.87
5.6.110.0130.08320.96
5.6.100.0100.08321.07
5.6.90.0130.07020.96
5.6.80.0070.07720.39
5.5.350.0230.07720.51
5.5.340.0070.08317.89
5.5.330.0170.05020.47
5.5.320.0300.07720.51
5.5.310.0270.05720.12
5.5.300.0070.04317.92
5.5.290.0070.08018.00
5.5.280.0070.08020.79
5.5.270.0100.08020.85
5.5.260.0070.08020.75
5.5.250.0100.09020.65
5.5.240.0170.07320.26
5.4.450.0230.03319.57
5.4.440.1100.05319.47
5.4.430.1070.06019.27
5.4.420.0670.00019.48
5.4.410.0630.00019.41
5.4.400.0630.00019.03
5.4.390.0630.00019.16
5.4.380.0700.00018.95
5.4.370.0670.00019.08
5.4.360.0830.00019.00
5.4.350.0630.00019.27
5.4.340.0630.00019.00
5.4.320.0100.03212.45
5.4.310.0040.04012.45
5.4.300.0050.03712.45
5.4.290.0060.03712.45
5.4.280.0070.03312.34
5.4.270.0050.03612.35
5.4.260.0060.03612.34
5.4.250.0110.03112.34
5.4.240.0040.03712.35
5.4.230.0060.03812.34
5.4.220.0100.03112.34
5.4.210.0050.03512.34
5.4.200.0050.03712.34
5.4.190.0070.03512.33
5.4.180.0040.03912.33
5.4.170.0050.03612.34
5.4.160.0030.03812.34
5.4.150.0060.03412.34
5.4.140.0070.03412.02
5.4.130.0070.03312.01
5.4.120.0070.03311.97
5.4.110.0080.03311.96
5.4.100.0070.03411.96
5.4.90.0040.03811.96
5.4.80.0060.03611.96
5.4.70.0060.03311.96
5.4.60.0040.03511.96
5.4.50.0030.03711.96
5.4.40.0070.03411.95
5.4.30.0070.03411.95
5.4.20.0030.03711.95
5.4.10.0090.03011.95
5.4.00.0060.03511.43
5.3.290.0110.03912.80
5.3.280.0080.03612.71
5.3.270.0080.03712.72
5.3.260.0070.03712.72
5.3.250.0040.03912.72
5.3.240.0080.03512.71
5.3.230.0070.03912.71
5.3.220.0070.04412.68
5.3.210.0050.04012.68
5.3.200.0120.03012.68
5.3.190.0120.03112.68
5.3.180.0070.03612.68
5.3.170.0070.03412.66
5.3.160.0060.03612.67
5.3.150.0070.03612.67
5.3.140.0070.03412.66
5.3.130.0060.03912.65
5.3.120.0050.04012.66
5.3.110.0030.04112.65
5.3.100.0080.03412.12
5.3.90.0040.03712.09
5.3.80.0070.03512.07
5.3.70.0040.03812.08
5.3.60.0080.03912.06
5.3.50.0080.03812.00
5.3.40.0060.03512.00
5.3.30.0060.03411.94
5.3.20.0090.03211.72
5.3.10.0080.03611.69
5.3.00.0060.03611.67
5.2.170.0080.0279.18
5.2.160.0050.0289.18
5.2.150.0040.0319.18
5.2.140.0050.0309.18
5.2.130.0050.0299.14
5.2.120.0060.0279.14
5.2.110.0020.0319.14
5.2.100.0080.0249.14
5.2.90.0070.0279.14
5.2.80.0030.0319.13
5.2.70.0050.0309.13
5.2.60.0040.0319.08
5.2.50.0040.0319.06
5.2.40.0050.0289.03
5.2.30.0050.0299.01
5.2.20.0050.0289.00
5.2.10.0070.0268.92
5.2.00.0060.0278.77
5.1.60.0030.0248.06
5.1.50.0020.0268.05
5.1.40.0070.0228.04
5.1.30.0030.0278.39
5.1.20.0030.0288.41
5.1.10.0050.0258.13
5.1.00.0040.0358.13
5.0.50.0060.0266.61
5.0.40.0030.0206.47
5.0.30.0020.0336.29
5.0.20.0070.0166.26
5.0.10.0040.0196.23
5.0.00.0050.0296.22
4.4.90.0030.0154.78
4.4.80.0030.0144.75
4.4.70.0010.0174.75
4.4.60.0010.0164.76
4.4.50.0030.0194.77
4.4.40.0030.0264.70
4.4.30.0040.0134.76
4.4.20.0030.0194.85
4.4.10.0030.0144.85
4.4.00.0010.0314.76
4.3.110.0030.0164.67
4.3.100.0060.0174.66
4.3.90.0040.0144.63
4.3.80.0040.0234.58
4.3.70.0010.0154.63
4.3.60.0010.0224.63
4.3.50.0030.0154.63
4.3.40.0020.0254.54
4.3.30.0020.0173.28
4.3.20.0010.0173.25
4.3.10.0020.0183.21
4.3.00.0000.0207.96

preferences:
76.45 ms | 400 KiB | 5 Q