3v4l.org

run code in 300+ PHP versions simultaneously
<?php $records = array('id'=>'2','name'=>'Andi'); $values = array(); foreach($records as $column => $value) { $key = ':' . $column; $values[] = $key; $placeholders[$key] = $value; } $columns = array_keys($records);

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.0100.01016.63
8.3.50.0120.01022.00
8.3.40.0110.00318.91
8.3.30.0070.00719.24
8.3.20.0070.00020.34
8.3.10.0040.00421.85
8.3.00.0000.00819.14
8.2.180.0070.01118.29
8.2.170.0000.01422.96
8.2.160.0070.00722.08
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00419.54
8.2.110.0100.00722.10
8.2.100.0060.00617.78
8.2.90.0000.00719.21
8.2.80.0060.00317.97
8.2.70.0050.00317.38
8.2.60.0030.00517.80
8.2.50.0030.00618.07
8.2.40.0040.00418.28
8.2.30.0040.00419.13
8.2.20.0000.00717.63
8.2.10.0080.00018.04
8.2.00.0040.00417.81
8.1.280.0100.00325.92
8.1.270.0030.00618.81
8.1.260.0090.00026.35
8.1.250.0000.00828.09
8.1.240.0070.00323.71
8.1.230.0030.00919.09
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0050.00317.35
8.1.180.0030.00518.10
8.1.170.0050.00318.78
8.1.160.0050.00222.02
8.1.150.0040.00418.89
8.1.140.0000.00717.37
8.1.130.0050.00317.81
8.1.120.0000.00817.45
8.1.110.0040.00417.45
8.1.100.0040.00417.35
8.1.90.0050.00317.46
8.1.80.0040.00417.52
8.1.70.0050.00317.38
8.1.60.0040.00417.61
8.1.50.0030.00617.43
8.1.40.0050.00217.53
8.1.30.0030.00617.65
8.1.20.0040.00417.59
8.1.10.0040.00417.56
8.1.00.0000.00817.40
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00818.46
8.0.270.0030.00317.26
8.0.260.0000.00617.20
8.0.250.0000.00717.02
8.0.240.0070.00016.96
8.0.230.0040.00417.02
8.0.220.0050.00216.88
8.0.210.0070.00016.95
8.0.200.0000.00716.94
8.0.190.0040.00416.95
8.0.180.0000.00716.89
8.0.170.0080.00016.75
8.0.160.0050.00316.89
8.0.150.0000.00816.85
8.0.140.0080.00316.88
8.0.130.0050.00313.30
8.0.120.0080.00016.86
8.0.110.0040.00416.80
8.0.100.0080.00016.75
8.0.90.0040.00416.93
8.0.80.0130.00716.90
8.0.70.0070.00016.88
8.0.60.0030.00516.69
8.0.50.0000.00716.83
8.0.30.0120.00216.96
8.0.20.0150.00717.40
8.0.10.0000.00717.04
8.0.00.0130.00716.79
7.4.330.0020.00215.03
7.4.320.0000.00616.61
7.4.300.0000.00716.58
7.4.290.0000.00716.45
7.4.280.0110.00016.58
7.4.270.0000.00716.59
7.4.260.0000.00716.58
7.4.250.0040.00416.51
7.4.240.0050.00216.50
7.4.230.0080.00016.53
7.4.220.0100.01016.64
7.4.210.0090.00616.63
7.4.200.0000.00716.41
7.4.160.0060.01516.52
7.4.150.0110.00817.40
7.4.140.0140.00717.86
7.4.130.0150.00716.58
7.4.120.0140.00716.45
7.4.110.0100.01416.47
7.4.100.0070.01216.51
7.4.90.0130.00316.47
7.4.80.0060.01519.39
7.4.70.0070.01116.42
7.4.60.0030.01316.49
7.4.50.0040.00416.57
7.4.40.0130.00716.69
7.4.30.0060.01916.59
7.4.00.0110.00614.97
7.3.330.0090.00013.21
7.3.320.0050.00013.18
7.3.310.0030.00316.30
7.3.300.0000.00716.24
7.3.290.0070.00916.34
7.3.280.0090.00916.39
7.3.270.0060.01217.40
7.3.260.0160.00916.32
7.3.250.0100.00816.41
7.3.240.0030.01316.31
7.3.230.0090.00616.39
7.3.210.0040.01316.34
7.3.200.0110.01119.39
7.3.190.0120.00316.63
7.3.180.0120.00316.37
7.3.170.0100.01016.46
7.3.160.0080.00816.64
7.3.120.0100.01014.83
7.3.110.0110.00715.04
7.3.100.0100.00314.81
7.3.90.0120.00315.00
7.3.80.0100.00314.90
7.3.70.0000.01314.81
7.3.60.0090.00614.78
7.3.50.0100.00314.62
7.3.40.0030.00714.51
7.3.30.0070.00714.96
7.3.20.0060.01016.59
7.3.10.0000.01116.63
7.3.00.0040.00416.49
7.2.330.0070.01016.45
7.2.320.0060.01616.64
7.2.310.0060.01116.48
7.2.300.0090.00616.58
7.2.290.0070.01016.43
7.2.250.0000.01815.06
7.2.240.0070.01314.95
7.2.230.0080.00414.96
7.2.220.0030.00615.01
7.2.210.0030.01314.98
7.2.200.0100.00315.16
7.2.190.0070.01114.87
7.2.180.0090.00614.95
7.2.170.0030.01014.88
7.2.60.0030.01416.78
7.2.00.0040.00819.57
7.1.330.0090.00615.59
7.1.320.0040.00415.80
7.1.310.0040.01115.88
7.1.300.0060.00915.82
7.1.290.0060.00615.84
7.1.280.0030.00615.90
7.1.270.0030.01015.77
7.1.260.0090.00615.86
7.1.200.0270.01315.50
7.1.100.0070.00717.96
7.1.70.0040.00417.38
7.1.60.0070.01719.46
7.1.50.0030.01017.10
7.1.00.0030.07722.29
7.0.200.0030.00616.86
7.0.140.0070.07022.09
7.0.60.0030.09020.00
7.0.50.0100.07717.68
7.0.40.0130.08020.35
7.0.30.0200.05320.20
7.0.20.0130.09020.09
7.0.10.0170.07720.16
7.0.00.0070.05720.33
5.6.280.0000.07720.91
5.6.210.0130.07720.47
5.6.200.0030.09018.22
5.6.190.0000.04720.27
5.6.180.3300.03720.61
5.6.170.0200.08720.44
5.6.160.0100.05020.48
5.6.150.0000.04018.16
5.6.140.0030.05018.18
5.6.130.0100.07318.17
5.6.120.0030.08721.07
5.6.110.0100.04321.13
5.6.100.0030.08720.96
5.6.90.0300.07020.97
5.6.80.0030.04020.48
5.6.70.4400.04320.37
5.5.350.0300.07720.43
5.5.340.0100.06717.89
5.5.330.0030.04320.21
5.5.320.0330.07020.31
5.5.310.0200.04320.34
5.5.300.0030.07718.01
5.5.290.0070.04017.91
5.5.280.0070.03720.79
5.5.270.0070.07320.66
5.5.260.0100.08020.86
5.5.250.0030.04020.46
5.5.240.0370.07020.07
5.4.450.0630.06319.64
5.4.440.1230.05719.15
5.4.430.1270.04019.27
5.4.420.1030.06319.63
5.4.410.0830.04719.34
5.4.400.0100.05018.83
5.4.390.0230.04718.56
5.4.380.0130.07018.76
5.4.370.0230.04318.70
5.4.360.0100.05718.69
5.4.350.0230.05018.50
5.4.340.0200.05018.68
5.4.320.0230.04718.60
5.4.310.0270.04318.73
5.4.300.0100.06018.50
5.4.290.0130.05718.77
5.4.280.0300.05318.52
5.4.270.0230.04718.57
5.4.260.0200.05318.67
5.4.250.0230.04718.77
5.4.240.0200.05318.61
5.4.230.0230.04718.76
5.4.220.0200.05318.51
5.4.210.0230.04718.44
5.4.200.0200.06316.50
5.4.190.0270.06018.76
5.4.180.0200.05318.75
5.4.170.0200.05318.76
5.4.160.0100.05718.61
5.4.150.0170.05318.50
5.4.140.0130.05316.26
5.4.130.0130.05016.09
5.4.120.0200.04316.25
5.4.110.0170.04716.16
5.4.100.0130.05316.23
5.4.90.0130.07016.22
5.4.80.0170.05016.02
5.4.70.0100.07016.29
5.4.60.0030.06016.05
5.4.50.0100.06016.10
5.4.40.0100.05716.07
5.4.30.0170.05016.20
5.4.20.0130.05316.23
5.4.10.0200.04316.28
5.4.00.0130.05315.68
5.3.290.0230.05314.55
5.3.280.0130.05314.68
5.3.270.0100.05714.58
5.3.260.0130.05714.70
5.3.250.0170.05014.60
5.3.240.0200.04714.68
5.3.230.0170.05014.56
5.3.220.0130.06014.52
5.3.210.0170.05314.55
5.3.200.0200.06314.64
5.3.190.0170.05014.65
5.3.180.0200.04714.47
5.3.170.0130.05314.61
5.3.160.0170.05014.49
5.3.150.0130.05714.66
5.3.140.0270.04014.55
5.3.130.0070.06314.56
5.3.120.0170.05314.46
5.3.110.0170.06014.51
5.3.100.0230.04313.98
5.3.90.0170.05014.08
5.3.80.0200.04713.98
5.3.70.0100.06314.00
5.3.60.0170.05013.93
5.3.50.0130.05313.94
5.3.40.0170.05313.86
5.3.30.0130.05314.01
5.3.20.0170.04713.60
5.3.10.0130.05013.73
5.3.00.0100.05313.64
5.2.170.0130.04311.10
5.2.160.0170.04011.13
5.2.150.0170.03711.28
5.2.140.0030.05011.18
5.2.130.0200.04011.23
5.2.120.0230.02711.07
5.2.110.0170.03711.05
5.2.100.0130.03711.09
5.2.90.0100.04311.08
5.2.80.0070.05011.05
5.2.70.0100.04311.05
5.2.60.0130.04010.98
5.2.50.0170.03711.07
5.2.40.0070.04311.13
5.2.30.0170.03710.96
5.2.20.0200.03711.01
5.2.10.0070.04310.87
5.2.00.0100.04010.71
5.1.60.0030.04010.02
5.1.50.0100.0339.96
5.1.40.0130.03010.09
5.1.30.0130.03310.34
5.1.20.0100.03710.50
5.1.10.0200.02710.18
5.1.00.0030.04310.05
5.0.50.0070.0308.56
5.0.40.0070.0278.43
5.0.30.0100.0438.34
5.0.20.0100.0278.27
5.0.10.0100.0278.34
5.0.00.0030.0478.27
4.4.90.0070.0205.83
4.4.80.0000.0275.90
4.4.70.0070.0305.88
4.4.60.0030.0305.89
4.4.50.0000.0275.91
4.4.40.0100.0305.87
4.4.30.0030.0235.91
4.4.20.0070.0205.93
4.4.10.0000.0275.92
4.4.00.0000.0405.92
4.3.110.0070.0235.76
4.3.100.0100.0175.80
4.3.90.0070.0235.83
4.3.80.0070.0335.80
4.3.70.0070.0205.83
4.3.60.0070.0205.77
4.3.50.0070.0205.80
4.3.40.0130.0275.75
4.3.30.0070.0204.63
4.3.20.0070.0204.66
4.3.10.0000.0234.52
4.3.00.0000.03714.52

preferences:
53.31 ms | 401 KiB | 5 Q