3v4l.org

run code in 300+ PHP versions simultaneously
<?php $records = array('id'=>'2','name'=>'Andi'); foreach($records as $column => $value) { $key = ':' . $column; $placeholders[$key] = $value; } $columns = array_keys($records); $values = array_values($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.0110.00416.38
8.3.50.0120.01022.05
8.3.40.0110.00418.57
8.3.30.0110.00419.04
8.3.20.0030.00520.33
8.3.10.0040.00421.88
8.3.00.0040.00419.14
8.2.180.0070.01018.29
8.2.170.0070.01022.96
8.2.160.0100.00322.26
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0090.00019.54
8.2.110.0090.00022.25
8.2.100.0080.00417.78
8.2.90.0000.00719.20
8.2.80.0000.00817.97
8.2.70.0050.00317.50
8.2.60.0000.00818.04
8.2.50.0040.00418.07
8.2.40.0040.00418.34
8.2.30.0080.00019.24
8.2.20.0000.00717.66
8.2.10.0030.00618.12
8.2.00.0000.00717.62
8.1.280.0040.01125.92
8.1.270.0090.00018.93
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00323.96
8.1.230.0040.00819.22
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0030.00617.23
8.1.180.0070.00018.10
8.1.170.0030.00518.61
8.1.160.0000.00721.89
8.1.150.0040.00418.85
8.1.140.0070.00017.51
8.1.130.0050.00317.81
8.1.120.0000.00817.46
8.1.110.0000.00717.44
8.1.100.0040.00417.37
8.1.90.0000.00817.42
8.1.80.0000.00717.43
8.1.70.0000.00817.39
8.1.60.0080.00017.46
8.1.50.0080.00017.52
8.1.40.0040.00417.57
8.1.30.0050.00517.50
8.1.20.0070.00017.64
8.1.10.0040.00417.54
8.1.00.0000.00817.42
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.49
8.0.270.0030.00317.17
8.0.260.0000.00617.32
8.0.250.0070.00016.88
8.0.240.0030.00316.97
8.0.230.0000.00716.96
8.0.220.0000.00716.84
8.0.210.0000.00716.77
8.0.200.0000.00616.93
8.0.190.0070.00016.87
8.0.180.0000.01016.80
8.0.170.0060.00316.83
8.0.160.0000.00716.76
8.0.150.0050.00216.92
8.0.140.0030.00716.93
8.0.130.0060.00313.33
8.0.120.0000.00816.77
8.0.110.0070.00016.87
8.0.100.0050.00217.01
8.0.90.0070.00016.80
8.0.80.0100.01016.87
8.0.70.0070.00016.88
8.0.60.0040.00416.94
8.0.50.0040.00416.93
8.0.30.0120.01617.08
8.0.20.0090.01117.40
8.0.10.0070.00017.08
8.0.00.0100.00716.66
7.4.330.0000.00515.17
7.4.320.0030.00316.40
7.4.300.0000.00716.53
7.4.290.0000.00716.61
7.4.280.0030.00916.58
7.4.270.0030.00316.58
7.4.260.0080.00216.59
7.4.250.0000.00716.57
7.4.240.0020.00616.44
7.4.230.0000.00716.48
7.4.220.0030.01616.65
7.4.210.0160.00316.54
7.4.200.0020.00516.55
7.4.160.0080.01516.57
7.4.150.0200.00417.40
7.4.140.0160.00517.86
7.4.130.0110.00816.54
7.4.120.0130.00616.54
7.4.110.0030.01616.51
7.4.100.0070.01416.41
7.4.90.0120.00416.46
7.4.80.0090.01519.39
7.4.70.0120.00816.61
7.4.60.0060.00916.45
7.4.50.0000.00916.55
7.4.40.0140.00716.46
7.4.30.0040.01916.38
7.4.00.0000.01714.85
7.3.330.0080.00013.06
7.3.320.0000.00613.09
7.3.310.0040.00416.20
7.3.300.0030.00316.35
7.3.290.0080.00816.34
7.3.280.0100.01016.28
7.3.270.0130.01017.40
7.3.260.0150.00716.34
7.3.250.0180.00416.47
7.3.240.0060.01316.60
7.3.230.0130.00416.53
7.3.210.0130.00316.26
7.3.200.0110.00719.39
7.3.190.0090.00616.45
7.3.180.0100.01016.21
7.3.170.0150.00316.63
7.3.160.0140.00316.65
7.2.330.0000.01616.33
7.2.320.0150.00316.42
7.2.310.0060.01016.69
7.2.300.0060.01316.68
7.2.290.0130.00316.70
7.2.00.0130.01019.49
7.1.100.0030.01018.13
7.1.70.0040.00817.22
7.1.60.0070.01819.46
7.1.50.0100.00716.70
7.1.00.0030.07722.43
7.0.200.0000.00716.67
7.0.140.0000.08022.16
7.0.60.0070.05719.84
7.0.50.0130.05717.80
7.0.40.0070.05020.07
7.0.30.0270.05720.16
7.0.20.0230.06020.04
7.0.10.0130.07720.09
7.0.00.0070.08320.29
5.6.280.0030.07321.08
5.6.210.0100.07020.47
5.6.200.0070.07318.21
5.6.190.0030.06720.61
5.6.180.0330.07320.27
5.6.170.0270.07020.52
5.6.160.0130.05720.38
5.6.150.0070.06318.14
5.6.140.0000.04318.18
5.6.130.0070.06718.14
5.6.120.0130.07720.99
5.6.110.0030.07021.03
5.6.100.0030.04321.03
5.6.90.0030.05720.95
5.6.80.0070.05020.50
5.5.350.0300.07720.42
5.5.340.0000.04317.91
5.5.330.0000.08320.21
5.5.320.0070.07020.32
5.5.310.0270.03320.23
5.5.300.0130.06017.98
5.5.290.0100.07318.02
5.5.280.0100.06020.98
5.5.270.0130.07320.66
5.5.260.0100.08320.86
5.5.250.0170.07320.66
5.5.240.0070.07320.16
5.4.450.0730.05319.32
5.4.440.0800.05019.34
5.4.430.0070.05719.32
5.4.420.0930.04019.44
5.4.410.0730.05719.34
5.4.400.0900.04718.96
5.4.390.0100.05718.59
5.4.380.0070.06318.66
5.4.370.0200.05018.70
5.4.360.0230.04718.52
5.4.350.0200.05318.49
5.4.340.0170.05318.74
5.4.320.0270.04718.46
5.4.310.0130.05718.68
5.4.300.0100.06018.56
5.4.290.0130.05318.71
5.4.280.0230.04718.65
5.4.270.0300.05318.58
5.4.260.0130.06318.51
5.4.250.0130.06018.60
5.4.240.0130.05718.71
5.4.230.0200.05018.51
5.4.220.0270.04318.64
5.4.210.0330.03318.43
5.4.200.0170.04716.50
5.4.190.0200.04718.60
5.4.180.0100.05718.50
5.4.170.0200.05018.54
5.4.160.0170.05018.55
5.4.150.0170.05318.54
5.4.140.0200.04716.09
5.4.130.0170.04716.31
5.4.120.0130.05316.05
5.4.110.0100.05316.30
5.4.100.0070.05716.29
5.4.90.0170.05016.37
5.4.80.0030.06016.14
5.4.70.0200.04716.23
5.4.60.0270.04016.30
5.4.50.0170.04716.17
5.4.40.0130.05316.05
5.4.30.0170.04716.13
5.4.20.0200.04716.19
5.4.10.0170.04716.11
5.4.00.0170.04715.71
5.3.290.0230.04714.66
5.3.280.0100.06014.58
5.3.270.0200.05014.63
5.3.260.0070.06014.66
5.3.250.0200.04714.50
5.3.240.0100.05714.50
5.3.230.0170.05014.56
5.3.220.0270.04714.52
5.3.210.0170.05014.66
5.3.200.0200.04314.66
5.3.190.0130.05314.52
5.3.180.0130.05714.48
5.3.170.0170.05014.49
5.3.160.0170.04714.56
5.3.150.0170.05014.65
5.3.140.0100.05314.52
5.3.130.0070.05714.51
5.3.120.0030.07014.62
5.3.110.0170.05014.51
5.3.100.1230.06014.11
5.3.90.0830.06014.02
5.3.80.1000.05313.93
5.3.70.1030.06313.98
5.3.60.0970.06013.98
5.3.50.0800.05714.04
5.3.40.1000.06713.93
5.3.30.1100.05713.91
5.3.20.0900.04313.67
5.3.10.0930.04713.58
5.3.00.0830.05313.64
5.2.170.0730.04311.10
5.2.160.0730.04311.18
5.2.150.0830.03711.08
5.2.140.0770.04011.19
5.2.130.0770.04011.16
5.2.120.0800.03711.14
5.2.110.0770.04311.06
5.2.100.0770.04311.03
5.2.90.0700.04311.01
5.2.80.0770.04311.07
5.2.70.0800.03711.13
5.2.60.0730.04311.10
5.2.50.0770.03711.02
5.2.40.0630.04010.95
5.2.30.0600.04011.03
5.2.20.0600.04311.11
5.2.10.0570.04310.81
5.2.00.0600.04010.75
5.1.60.0600.03310.06
5.1.50.0630.0339.99
5.1.40.0600.04010.01
5.1.30.0670.03710.36
5.1.20.0700.02710.44
5.1.10.0570.04010.13
5.1.00.0600.04710.06
5.0.50.0300.0308.59
5.0.40.0330.0278.40
5.0.30.0330.0438.25
5.0.20.0370.0278.29
5.0.10.0270.0338.19
5.0.00.0370.0508.27
4.4.90.0300.0235.87
4.4.80.0330.0235.87
4.4.70.0300.0235.88
4.4.60.0300.0235.90
4.4.50.0300.0235.93
4.4.40.0370.0305.89
4.4.30.0330.0205.82
4.4.20.0300.0235.88
4.4.10.0330.0275.92
4.4.00.0370.0305.93
4.3.110.0300.0235.88
4.3.100.0300.0205.79
4.3.90.0370.0135.87
4.3.80.0230.0405.78
4.3.70.0300.0205.77
4.3.60.0300.0205.86
4.3.50.0230.0335.89
4.3.40.0300.0475.85
4.3.30.0130.0304.59
4.3.20.0170.0304.53
4.3.10.0170.0204.57
4.3.00.0030.03314.52

preferences:
69.65 ms | 401 KiB | 5 Q