3v4l.org

run code in 300+ PHP versions simultaneously
<?php $where = array('bla = :bla' => 12); $expression = null; foreach($where as $cond => $term) { if(preg_match('/(:\s+)/', $cond, $matches)) { $expression = $cond; } } echo $expression;

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.0150.00018.79
8.3.30.0070.00719.10
8.3.20.0040.00420.17
8.3.10.0040.00423.65
8.3.00.0040.00419.56
8.2.170.0100.01022.96
8.2.160.0100.00320.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00321.22
8.2.110.0030.00719.01
8.2.100.0080.00419.82
8.2.90.0060.00318.11
8.2.80.0030.00517.97
8.2.70.0000.00917.75
8.2.60.0030.00717.64
8.2.50.0060.00318.07
8.2.40.0040.00418.22
8.2.30.0040.00418.27
8.2.20.0050.00317.83
8.2.10.0040.00418.14
8.2.00.0000.00717.95
8.1.270.0050.00323.79
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0080.00022.07
8.1.230.0080.00320.92
8.1.220.0080.00017.79
8.1.210.0000.00918.95
8.1.200.0060.00617.48
8.1.190.0090.00017.35
8.1.180.0000.00818.10
8.1.170.0080.00318.76
8.1.160.0040.00421.95
8.1.150.0040.00418.81
8.1.140.0040.00417.59
8.1.130.0070.00017.84
8.1.120.0000.00717.67
8.1.110.0040.00417.64
8.1.100.0020.00517.61
8.1.90.0000.00717.61
8.1.80.0050.00217.66
8.1.70.0030.00317.52
8.1.60.0000.01117.73
8.1.50.0050.00317.68
8.1.40.0030.00517.68
8.1.30.0080.00017.62
8.1.20.0040.00417.84
8.1.10.0000.00717.56
8.1.00.0030.00617.57
8.0.300.0040.00419.98
8.0.290.0070.00016.74
8.0.280.0040.00418.45
8.0.270.0070.00017.26
8.0.260.0030.00317.28
8.0.250.0030.00317.09
8.0.240.0040.00417.03
8.0.230.0040.00417.09
8.0.220.0060.00316.99
8.0.210.0030.00317.06
8.0.200.0000.00717.05
8.0.190.0000.00816.96
8.0.180.0030.00517.04
8.0.170.0040.00416.93
8.0.160.0000.00717.03
8.0.150.0000.00717.02
8.0.140.0030.00316.84
8.0.130.0050.00013.44
8.0.120.0000.00816.91
8.0.110.0000.00716.87
8.0.100.0000.00716.91
8.0.90.0000.00716.89
8.0.80.0050.01017.07
8.0.70.0000.00716.85
8.0.60.0040.00417.14
8.0.50.0070.00016.97
8.0.30.0090.01017.09
8.0.20.0120.00717.40
8.0.10.0040.00417.24
8.0.00.0140.00917.14
7.4.330.0030.00315.00
7.4.320.0040.00416.78
7.4.300.0030.00316.79
7.4.290.0000.00816.85
7.4.280.0040.00416.68
7.4.270.0030.00316.64
7.4.260.0070.00316.76
7.4.250.0000.00816.77
7.4.240.0040.00416.69
7.4.230.0070.00016.83
7.4.220.0090.00916.78
7.4.210.0060.00916.76
7.4.200.0040.00416.80
7.4.160.0120.00916.53
7.4.150.0030.01317.40
7.4.140.0080.01217.86
7.4.130.0100.00716.84
7.4.120.0120.00816.69
7.4.110.0100.00716.62
7.4.100.0140.00716.66
7.4.90.0140.00316.66
7.4.80.0060.01219.39
7.4.70.0120.00616.54
7.4.60.0110.00816.60
7.4.50.0030.00616.50
7.4.40.0130.00316.37
7.4.30.0030.01416.66
7.4.00.0090.00814.88
7.3.330.0030.00313.13
7.3.320.0050.00013.10
7.3.310.0000.00716.23
7.3.300.0000.00716.36
7.3.290.0090.00616.45
7.3.280.0100.00816.46
7.3.270.0120.00617.40
7.3.260.0160.00316.58
7.3.250.0120.01116.70
7.3.240.0170.00316.69
7.3.230.0080.00816.54
7.3.210.0100.00716.67
7.3.200.0030.01819.39
7.3.190.0120.00616.43
7.3.180.0160.00316.77
7.3.170.0140.00716.46
7.3.160.0040.01216.82
7.3.120.0020.01415.18
7.3.110.0100.00715.06
7.3.100.0040.01115.18
7.3.90.0100.00715.29
7.3.80.0060.01015.34
7.3.70.0060.00614.80
7.3.60.0100.00315.07
7.3.50.0060.00615.09
7.3.40.0070.00415.03
7.3.30.0000.01514.85
7.3.20.0050.00516.86
7.3.10.0030.00916.87
7.3.00.0100.00616.82
7.2.330.0090.01316.74
7.2.320.0130.00616.77
7.2.310.0030.01316.69
7.2.300.0120.00616.63
7.2.290.0030.01916.73
7.2.250.0000.01915.15
7.2.240.0000.01715.15
7.2.230.0100.00715.19
7.2.220.0070.01014.98
7.2.210.0080.00814.98
7.2.200.0060.00615.13
7.2.190.0060.00915.05
7.2.180.0060.00914.99
7.2.170.0060.00315.14
7.2.130.0030.00717.18
7.2.120.0030.00716.93
7.2.110.0030.00916.91
7.2.100.0090.00317.21
7.2.90.0100.00717.05
7.2.80.0000.00916.86
7.2.70.0090.00617.23
7.2.60.0060.00817.06
7.2.50.0060.00917.25
7.2.40.0060.00617.09
7.2.30.0100.00017.05
7.2.20.0030.01017.14
7.2.10.0070.00717.02
7.2.00.0050.00818.23
7.1.330.0000.01316.21
7.1.320.0070.00716.01
7.1.310.0100.00715.96
7.1.300.0040.01115.78
7.1.290.0050.00816.26
7.1.280.0000.01016.02
7.1.270.0090.00616.04
7.1.260.0090.00615.63
7.1.250.0060.00315.81
7.1.200.0090.00315.73
7.1.100.0060.00618.39
7.1.70.0040.00417.14
7.1.60.0100.01419.70
7.1.50.0060.01316.93
7.1.00.0030.07722.45
7.0.200.0000.00716.89
7.0.140.0070.06321.96
7.0.60.0130.05320.07
7.0.50.0100.07717.79
7.0.40.0000.04720.22
7.0.30.0270.07720.35
7.0.20.0330.08020.33
7.0.10.0130.07020.02
7.0.00.0070.08720.18
5.6.280.0030.07320.86
5.6.210.0130.07720.66
5.6.200.0130.05718.12
5.6.190.0000.04720.28
5.6.180.0300.04320.43
5.6.170.0330.06320.71
5.6.160.0100.06720.38
5.6.150.0070.04318.17
5.6.140.0100.05718.16
5.6.130.0130.07018.07
5.6.120.0070.07320.99
5.6.110.0170.07721.00
5.6.100.0070.08021.07
5.6.90.0000.04320.95
5.6.80.0070.06320.38
5.5.350.0270.06720.37
5.5.340.0030.05317.91
5.5.330.0000.09320.28
5.5.320.0300.04320.17
5.5.310.0330.05720.23
5.5.300.0130.04317.96
5.5.290.0030.08317.98
5.5.280.0070.03720.94
5.5.270.0100.08320.76
5.5.260.0100.05720.68
5.5.250.0070.07320.58
5.5.240.0030.07720.36
5.4.450.0570.04019.48
5.4.440.0330.04319.57
5.4.430.0600.04019.41
5.4.420.0500.04719.46
5.4.410.0370.04319.08
5.4.400.0500.02719.09
5.4.390.0670.03318.91
5.4.380.0200.05018.66
5.4.370.0170.05018.60
5.4.360.0130.05318.59
5.4.350.0100.05718.66
5.4.340.0170.05018.68
5.4.320.0040.03812.46
5.4.310.0080.04612.45
5.4.300.0020.04012.45
5.4.290.0040.04012.44
5.4.280.0030.03912.35
5.4.270.0040.03812.35
5.4.260.0080.03512.35
5.4.250.0050.03912.35
5.4.240.0070.03512.35
5.4.230.0040.03912.34
5.4.220.0110.03112.34
5.4.210.0070.03312.34
5.4.200.0040.03912.34
5.4.190.0070.04012.34
5.4.180.0080.03912.34
5.4.170.0120.04112.35
5.4.160.0050.03512.35
5.4.150.0020.04012.34
5.4.140.0060.03712.02
5.4.130.0070.04512.02
5.4.120.0070.03311.97
5.4.110.0080.03211.96
5.4.100.0070.03411.97
5.4.90.0080.03511.97
5.4.80.0080.03511.97
5.4.70.0070.03411.96
5.4.60.0050.03511.97
5.4.50.0040.03611.96
5.4.40.0050.03511.95
5.4.30.0050.03711.95
5.4.20.0050.03611.95
5.4.10.0060.03411.95
5.4.00.0050.03711.44
5.3.290.0070.03912.80
5.3.280.0090.03712.71
5.3.270.0080.04412.72
5.3.260.0060.04712.72
5.3.250.0130.04712.72
5.3.240.0110.04212.72
5.3.230.0030.04112.71
5.3.220.0070.03612.68
5.3.210.0080.04012.68
5.3.200.0030.03912.68
5.3.190.0080.03512.68
5.3.180.0050.03712.67
5.3.170.0090.04412.67
5.3.160.0050.03912.67
5.3.150.0060.05412.67
5.3.140.0060.03812.66
5.3.130.0070.03712.66
5.3.120.0090.03612.66
5.3.110.0070.03812.66
5.3.100.0110.03212.12
5.3.90.0070.03612.09
5.3.80.0080.03312.08
5.3.70.0070.03612.07
5.3.60.0030.04012.06
5.3.50.0040.03912.00
5.3.40.0090.03912.00
5.3.30.0080.03211.95
5.3.20.0050.03511.73
5.3.10.0110.03511.70
5.3.00.0040.04411.69
5.2.170.0050.0329.19
5.2.160.0040.0299.19
5.2.150.0070.0279.19
5.2.140.0050.0299.19
5.2.130.0060.0379.14
5.2.120.0080.0309.15
5.2.110.0050.0289.16
5.2.100.0040.0289.15
5.2.90.0060.0279.15
5.2.80.0020.0329.14
5.2.70.0050.0299.14
5.2.60.0040.0309.10
5.2.50.0050.0299.07
5.2.40.0090.0249.05
5.2.30.0070.0279.03
5.2.20.0050.0289.02
5.2.10.0050.0288.92
5.2.00.0040.0328.78
5.1.60.0040.0258.06
5.1.50.0030.0278.06
5.1.40.0040.0268.04
5.1.30.0060.0378.39
5.1.20.0070.0368.41
5.1.10.0070.0258.14
5.1.00.0060.0258.14
5.0.50.0040.0216.62
5.0.40.0050.0286.48
5.0.30.0050.0336.29
5.0.20.0020.0216.26
5.0.10.0010.0236.23
5.0.00.0030.0326.22
4.4.90.0040.0144.78
4.4.80.0040.0144.75
4.4.70.0050.0134.76
4.4.60.0030.0154.75
4.4.50.0020.0184.77
4.4.40.0020.0264.71
4.4.30.0010.0174.76
4.4.20.0050.0144.84
4.4.10.0010.0174.85
4.4.00.0030.0244.76
4.3.110.0040.0154.67
4.3.100.0030.0154.66
4.3.90.0020.0154.63
4.3.80.0020.0254.58
4.3.70.0040.0134.63
4.3.60.0010.0164.63
4.3.50.0020.0164.63
4.3.40.0030.0244.54
4.3.30.0010.0173.28
4.3.20.0010.0163.26
4.3.10.0000.0173.22
4.3.00.0030.01714.85

preferences:
44.24 ms | 400 KiB | 5 Q