3v4l.org

run code in 500+ PHP versions simultaneously
<?php $rego_columns = [ "make", "model", "year", "rego", ]; $record = ['make' => 'A', 'model' => 'B', 'year' => 'C', 'rego' => 'D']; $tableValues = array_map(function($r) use ($record) { return $record[$r]; }, $rego_columns); $tableColumns = '`' . implode('`,`', $rego_columns) . '`'; $tableValues = '"' . implode('","', $tableValues) . '"'; echo 'INSERT INTO table_name (' . $tableColumns . ') VALUES (' . $tableValues . ')';

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.5.30.0110.00621.18
8.5.20.0120.01219.46
8.5.10.0110.00716.77
8.5.00.0120.00920.18
8.4.180.0180.00922.01
8.4.170.0110.01123.93
8.4.160.0120.01023.00
8.4.150.0050.00716.80
8.4.140.0140.00717.85
8.4.130.0050.00417.82
8.4.120.0030.00622.42
8.4.110.0130.00719.01
8.4.100.0100.00918.36
8.4.90.0090.00420.39
8.4.80.0070.01118.83
8.4.70.0100.01117.88
8.4.60.0060.00320.22
8.4.50.0130.00719.47
8.4.40.0070.01719.38
8.4.30.0100.01019.55
8.4.20.0100.01020.38
8.4.10.0070.01319.52
8.3.300.0110.00919.18
8.3.290.0110.01020.68
8.3.280.0130.00618.61
8.3.270.0130.00816.52
8.3.260.0140.00516.62
8.3.250.0090.00918.86
8.3.240.0100.00916.50
8.3.230.0120.00716.78
8.3.220.0120.00318.71
8.3.210.0110.00818.32
8.3.200.0070.00916.62
8.3.190.0130.00716.54
8.3.180.0120.00816.43
8.3.170.0100.01017.07
8.3.160.0090.00918.28
8.3.150.0120.00616.66
8.3.140.0090.00916.64
8.3.130.0080.00316.43
8.3.120.0080.00018.64
8.3.110.0040.00420.94
8.3.100.0140.00024.06
8.3.90.0050.00326.77
8.3.80.0040.00817.97
8.3.70.0030.01318.55
8.3.60.0220.00018.18
8.3.50.0120.00518.15
8.3.40.0090.01218.84
8.3.30.0120.00318.63
8.3.20.0040.00419.20
8.3.10.0040.00423.65
8.3.00.0040.00420.96
8.2.300.0140.00620.34
8.2.290.0090.00920.79
8.2.280.0120.00422.18
8.2.270.0110.00717.18
8.2.260.0040.00419.16
8.2.250.0070.01118.49
8.2.240.0080.00019.07
8.2.230.0120.00322.58
8.2.220.0100.00037.54
8.2.210.0070.00726.77
8.2.200.0060.00316.38
8.2.190.0040.01216.71
8.2.180.0120.00316.50
8.2.170.0070.00722.96
8.2.160.0120.00322.13
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.01419.76
8.2.120.0040.00426.35
8.2.110.0060.00321.04
8.2.100.0090.00317.91
8.2.90.0030.00619.17
8.2.80.0030.00517.97
8.2.70.0050.00317.75
8.2.60.0000.00917.93
8.2.50.0000.00818.07
8.2.40.0030.00518.22
8.2.30.0000.00718.24
8.2.20.0030.00518.18
8.2.10.0050.00518.10
8.2.00.0000.00818.03
8.1.340.0140.00517.66
8.1.330.0120.00715.86
8.1.320.0080.01116.36
8.1.310.0120.00618.46
8.1.300.0090.00017.64
8.1.290.0030.00630.84
8.1.280.0160.00625.92
8.1.270.0180.00022.19
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0030.00721.31
8.1.230.0040.00719.08
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0040.00717.22
8.1.190.0060.00317.48
8.1.180.0000.00818.10
8.1.170.0000.00818.64
8.1.160.0060.00318.89
8.1.150.0000.00818.90
8.1.140.0050.00222.06
8.1.130.0000.00720.08
8.1.120.0060.00317.49
8.1.110.0030.00517.46
8.1.100.0000.00817.33
8.1.90.0070.00017.36
8.1.80.0040.00417.47
8.1.70.0030.00317.46
8.1.60.0080.00017.54
8.1.50.0070.00417.44
8.1.40.0030.00617.40
8.1.30.0000.00817.49
8.1.20.0000.00817.63
8.1.10.0000.00817.58
8.1.00.0040.00417.41
8.0.300.0000.00818.77
8.0.290.0030.00716.63
8.0.280.0030.00318.43
8.0.270.0000.00716.81
8.0.260.0000.00618.38
8.0.250.0070.00016.89
8.0.240.0000.00716.94
8.0.230.0030.00316.96
8.0.220.0000.00716.93
8.0.210.0000.00716.77
8.0.200.0060.00016.86
8.0.190.0000.00716.88
8.0.180.0000.00816.92
8.0.170.0060.00316.90
8.0.160.0050.00316.94
8.0.150.0040.00416.89
8.0.140.0040.00416.86
8.0.130.0050.00013.30
8.0.120.0040.00416.86
8.0.110.0000.00716.80
8.0.100.0000.00716.76
8.0.90.0070.00016.83
8.0.80.0110.00616.87
8.0.70.0000.00816.66
8.0.60.0000.00816.78
8.0.50.0000.00816.88
8.0.30.0040.01817.02
8.0.20.0120.00817.43
8.0.10.0020.00516.88
8.0.00.0100.01016.53
7.4.330.0060.00015.55
7.4.320.0040.00416.52
7.4.300.0000.00616.59
7.4.290.0070.00016.57
7.4.280.0090.00016.50
7.4.270.0000.00716.51
7.4.260.0040.00416.48
7.4.250.0000.00716.32
7.4.240.0000.00716.50
7.4.230.0070.00016.71
7.4.220.0000.00816.59
7.4.210.0080.00616.58
7.4.200.0030.00316.59
7.4.160.0100.00916.46
7.4.140.0110.00817.86
7.4.130.0180.00016.33
7.4.120.0050.01216.55
7.4.110.0060.01616.58
7.4.100.0110.00616.52
7.4.90.0070.01016.66
7.4.80.0110.00619.39
7.4.70.0060.01016.39
7.4.60.0080.00816.41
7.4.50.0080.00316.18
7.4.40.0060.01316.42
7.4.10.0030.01715.02
7.4.00.0100.00614.97
7.3.330.0040.00313.30
7.3.320.0000.00513.17
7.3.310.0070.00016.36
7.3.300.0030.00316.35
7.3.290.0030.00316.30
7.3.280.0090.00516.33
7.3.260.0100.00716.48
7.3.240.0080.01016.52
7.3.230.0090.00816.54
7.3.210.0100.00716.26
7.3.200.0040.01216.45
7.3.190.0080.01216.36
7.3.180.0070.01316.58
7.3.170.0090.00916.31
7.3.160.0100.00616.30
7.3.130.0110.00714.63
7.3.120.0070.01114.91
7.3.110.0030.01614.71
7.3.100.0080.00814.90
7.3.90.0130.00314.82
7.3.80.0090.00014.95
7.3.70.0030.00614.79
7.3.60.0060.00614.97
7.3.50.0070.01014.66
7.3.40.0070.00414.72
7.3.30.0040.00814.91
7.3.20.0110.00416.61
7.3.10.0120.00616.55
7.3.00.0070.00716.64
7.2.330.0060.01216.72
7.2.320.0110.00616.80
7.2.310.0140.00316.65
7.2.300.0040.01316.70
7.2.290.0060.01616.85
7.2.260.0060.01215.17
7.2.250.0080.00314.77
7.2.240.0040.01115.14
7.2.230.0120.00615.20
7.2.220.0110.00714.91
7.2.210.0090.00615.21
7.2.200.0110.00415.12
7.2.190.0100.01015.02
7.2.180.0040.01514.80
7.2.170.0110.00415.11
7.2.160.0030.00914.89
7.2.150.0060.01216.73
7.2.140.0070.01116.94
7.2.130.0030.01017.11
7.2.120.0110.00416.60
7.2.110.0080.00616.83
7.2.100.0080.00816.46
7.2.90.0120.00416.80
7.2.80.0070.00916.79
7.2.70.0030.01416.87
7.2.60.0030.01416.76
7.2.50.0090.00716.78
7.2.40.0020.01217.01
7.2.30.0090.00716.93
7.2.20.0110.00316.78
7.2.10.0060.01016.82
7.2.00.0070.00816.89
7.1.330.0030.01015.94
7.1.320.0060.00915.96
7.1.310.0000.01215.70
7.1.300.0030.01515.85
7.1.290.0030.01015.84
7.1.280.0040.00715.44
7.1.270.0120.00615.77
7.1.260.0040.00715.74
7.1.250.0090.00615.74
7.1.240.0020.01315.70
7.1.230.0080.00815.70
7.1.220.0060.00815.51
7.1.210.0040.01115.47
7.1.200.0050.00815.60
7.1.190.0080.00415.72
7.1.180.0050.00715.76
7.1.170.0090.00515.63
7.1.160.0100.00415.75
7.1.150.0120.00215.76
7.1.140.0070.00415.82
7.1.130.0050.00715.55
7.1.120.0050.00515.75
7.1.110.0130.00115.64
7.1.100.0050.01015.71
7.1.90.0030.01415.64
7.1.80.0080.00615.79
7.1.70.0090.00515.87
7.1.60.0080.00515.71
7.1.50.0070.00515.62
7.1.40.0090.00415.82
7.1.30.0000.01315.75
7.1.20.0040.00815.86
7.1.10.0080.00815.74
7.1.00.0120.00215.82
7.0.330.0000.00915.53
7.0.320.0030.01015.41
7.0.310.0070.00715.57
7.0.300.0060.00315.57
7.0.290.0030.00515.64
7.0.280.0040.00815.40
7.0.270.0040.00715.27
7.0.260.0070.00715.14
7.0.250.0040.01115.37
7.0.240.0070.01315.59
7.0.230.0040.00415.38
7.0.220.0040.00715.33
7.0.210.0030.01015.48
7.0.200.0060.00615.54
7.0.190.0030.01015.18
7.0.180.0090.00315.37
7.0.170.0100.00315.34
7.0.160.0030.01015.54
7.0.150.0090.00615.45
7.0.140.0100.00015.61
7.0.130.0070.01015.27
7.0.120.0040.00715.21
7.0.110.0000.00815.54
7.0.100.0030.01015.57
7.0.90.0030.01015.17
7.0.80.0070.00715.43
7.0.70.0070.00715.40
7.0.60.0060.00615.23
7.0.50.0030.01015.65
7.0.40.0090.00613.52
7.0.30.0040.00713.38
7.0.20.0130.00313.55
7.0.10.0050.00313.42
7.0.00.0000.01313.42
5.6.400.0080.00314.70
5.6.390.0060.00614.63
5.6.380.0030.01114.29
5.6.370.0060.01014.71
5.6.360.0040.00814.72
5.6.350.0070.00414.63
5.6.340.0100.00314.60
5.6.330.0070.00714.42
5.6.320.0030.01014.45
5.6.310.0040.00414.51
5.6.300.0060.00914.20
5.6.290.0120.00314.44
5.6.280.0000.01414.35
5.6.270.0110.00014.29
5.6.260.0030.00914.55
5.6.250.0040.01114.27
5.6.240.0070.00314.55
5.6.230.0060.00714.30
5.6.220.0060.00914.32
5.6.210.0000.01114.57
5.6.200.0080.00414.53
5.6.190.0060.00614.34
5.6.180.0070.00714.14
5.6.170.0070.00414.42
5.6.160.0000.01414.13
5.6.150.0030.00614.43
5.6.140.0060.00914.20
5.6.130.0080.00614.18
5.6.120.0060.00914.39
5.6.110.0000.00914.47
5.6.100.0050.00514.83
5.6.90.0080.00614.19
5.6.80.0070.00714.42
5.6.70.0090.00014.27
5.6.60.0100.00014.66
5.6.50.0050.00914.63
5.6.40.0070.00714.11
5.6.30.0030.01014.03
5.6.20.0040.01414.20
5.6.10.0030.00914.47
5.6.00.0070.01014.48

preferences:
48.47 ms | 1944 KiB | 5 Q