3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matrix = array(); $matrix[1] = array( 0 => 65.70, 1 => 'Coles', 2 => '34 days', 3 => 14 ); $matstring=implode(",",$matrix[1]); print "INSERT INTO Australia (Price, Company, Days, Weight) VALUES ('$matstring')"; print "\n"; $id = NULL; $id = 31; $id = (is_null($id)) ? 'NULL' : '$id' ; $table = 'atable'; $values = array('one','two','three','four','five'); $valstring=implode("','",$values); print "INSERT INTO " . $table . " VALUES ($id,'$valstring')"; ?>

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.0130.00318.30
8.3.50.0110.00422.10
8.3.40.0120.00318.54
8.3.30.0040.01119.21
8.3.20.0040.00420.24
8.3.10.0000.00821.92
8.3.00.0040.00422.35
8.2.180.0120.00616.63
8.2.170.0170.00022.96
8.2.160.0110.00321.02
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0050.00226.16
8.2.120.0080.00017.75
8.2.110.0070.00320.40
8.2.100.0120.00017.85
8.2.90.0040.00418.16
8.2.80.0050.00318.04
8.2.70.0000.01217.50
8.2.60.0030.00518.03
8.2.50.0000.00818.07
8.2.40.0000.00818.34
8.2.30.0040.00418.14
8.2.20.0050.00317.63
8.2.10.0040.00417.67
8.2.00.0000.00717.82
8.1.280.0150.00325.92
8.1.270.0000.00822.06
8.1.260.0000.00826.35
8.1.250.0030.00528.09
8.1.240.0040.00422.20
8.1.230.0040.00720.88
8.1.220.0000.00717.78
8.1.210.0080.00018.85
8.1.200.0030.00617.38
8.1.190.0050.00317.63
8.1.180.0000.00818.10
8.1.170.0080.00018.59
8.1.160.0040.00421.95
8.1.150.0000.00818.70
8.1.140.0050.00217.47
8.1.130.0030.00317.75
8.1.120.0050.00317.39
8.1.110.0070.00017.32
8.1.100.0030.00617.44
8.1.90.0070.00017.39
8.1.80.0050.00317.41
8.1.70.0000.00717.50
8.1.60.0040.00417.55
8.1.50.0080.00017.63
8.1.40.0000.00817.52
8.1.30.0000.00717.52
8.1.20.0040.00417.66
8.1.10.0080.00017.61
8.1.00.0060.00317.46
8.0.300.0040.00420.04
8.0.290.0000.00817.18
8.0.280.0050.00318.45
8.0.270.0050.00317.22
8.0.260.0030.00316.84
8.0.250.0070.00016.93
8.0.240.0040.00416.84
8.0.230.0070.00016.88
8.0.220.0000.00716.91
8.0.210.0030.00316.95
8.0.200.0030.00316.96
8.0.190.0030.00516.99
8.0.180.0000.00716.84
8.0.170.0040.00416.96
8.0.160.0030.00316.78
8.0.150.0040.00416.91
8.0.140.0000.00716.89
8.0.130.0000.00513.32
8.0.120.0040.00416.91
8.0.110.0030.00516.81
8.0.100.0000.00716.94
8.0.90.0000.00816.78
8.0.80.0080.00816.87
8.0.70.0040.00416.96
8.0.60.0050.00316.90
8.0.50.0050.00216.79
8.0.30.0110.01217.03
8.0.20.0080.01417.40
8.0.10.0040.00416.92
8.0.00.0090.00816.69
7.4.330.0000.00515.02
7.4.320.0030.00316.63
7.4.300.0030.00316.49
7.4.290.0040.00416.62
7.4.280.0070.00016.55
7.4.270.0070.00016.42
7.4.260.0030.00616.61
7.4.250.0000.00716.50
7.4.240.0040.00316.49
7.4.230.0030.00316.39
7.4.220.0210.00616.63
7.4.210.0060.01116.48
7.4.200.0000.00816.45
7.4.190.0040.00416.65
7.4.160.0080.00816.47
7.4.150.0110.00717.40
7.4.140.0130.00417.86
7.4.130.0070.01216.53
7.4.120.0110.00616.53
7.4.110.0040.02116.44
7.4.100.0160.00016.37
7.4.90.0100.00716.41
7.4.80.0060.01219.39
7.4.70.0070.01016.50
7.4.60.0120.00316.57
7.4.50.0000.00916.56
7.4.40.0120.00322.77
7.4.30.0030.01416.64
7.4.00.0070.00715.06
7.3.330.0060.00013.25
7.3.320.0050.00013.20
7.3.310.0040.00416.30
7.3.300.0030.00316.39
7.3.290.0040.01116.30
7.3.280.0080.00916.33
7.3.270.0110.00617.40
7.3.260.0070.01116.67
7.3.250.0080.01216.60
7.3.240.0070.01416.24
7.3.230.0000.01716.48
7.3.210.0070.01216.36
7.3.200.0120.00919.39
7.3.190.0130.00616.59
7.3.180.0060.00916.37
7.3.170.0100.00616.31
7.3.160.0130.01016.36
7.3.120.0070.01014.87
7.3.110.0070.00314.80
7.3.100.0000.01714.62
7.3.90.0110.00414.77
7.3.80.0070.01014.81
7.3.70.0050.00514.62
7.3.60.0040.01114.65
7.3.50.0030.00714.91
7.3.40.0070.00714.93
7.3.30.0120.00314.80
7.3.20.0110.00316.77
7.3.10.0040.00816.60
7.3.00.0060.00616.72
7.2.330.0100.01016.75
7.2.320.0120.01116.67
7.2.310.0110.00716.80
7.2.300.0100.00616.70
7.2.290.0110.00616.81
7.2.240.0060.00914.94
7.2.230.0080.00414.95
7.2.220.0000.01415.27
7.2.210.0090.00314.97
7.2.200.0030.01215.18
7.2.190.0090.00315.03
7.2.180.0040.01114.98
7.2.170.0110.00715.00
7.2.160.0030.00915.11
7.2.150.0060.00616.64
7.2.140.0030.01016.72
7.2.130.0070.00716.92
7.2.120.0100.00616.92
7.2.110.0040.00816.86
7.2.100.0060.01017.00
7.2.90.0070.01017.07
7.2.80.0030.00616.73
7.2.70.0070.01017.04
7.2.60.0050.00916.94
7.2.50.0030.01316.79
7.2.40.0070.00717.01
7.2.30.0100.00316.66
7.2.20.0060.01016.73
7.2.10.0000.01016.90
7.2.00.0090.00518.16
7.1.330.0030.01215.66
7.1.320.0110.00415.98
7.1.310.0040.01115.85
7.1.300.0000.01215.77
7.1.290.0110.00315.77
7.1.280.0030.00915.82
7.1.270.0000.01415.81
7.1.260.0000.01515.72
7.1.250.0100.00315.84
7.1.200.0060.00915.59
7.1.100.0060.00618.41
7.1.70.0030.00616.91
7.1.60.0030.02119.82
7.1.50.0120.00917.01
7.1.00.0030.07322.32
7.0.200.0040.00416.89
7.0.140.0070.07022.09
7.0.60.0070.07720.12
7.0.50.0100.07718.21
7.0.40.0130.08020.23
7.0.30.0270.08020.34
7.0.20.0270.06720.20
7.0.10.0070.06020.34
7.0.00.0030.04720.31
5.6.280.0030.07320.78
5.6.210.0100.07720.46
5.6.200.0000.08718.27
5.6.190.0070.04020.67
5.6.180.0500.06320.41
5.6.170.0400.05320.61
5.6.160.0070.05320.42
5.6.150.0030.08318.09
5.6.140.0000.08718.11
5.6.130.0100.08018.08
5.6.120.0130.07320.99
5.6.110.0030.08321.00
5.6.100.0130.03721.00
5.6.90.0070.05021.10
5.6.80.0070.04020.38
5.5.350.0230.05020.43
5.5.340.0030.04018.01
5.5.330.0130.08020.46
5.5.320.0300.07320.13
5.5.310.0370.07720.20
5.5.300.0100.06017.95
5.5.290.0070.03718.01
5.5.280.0030.08720.65
5.5.270.0030.04020.63
5.5.260.0100.07720.76
5.5.250.0000.06720.78
5.5.240.0000.07720.37
5.4.450.0730.04719.10
5.4.440.0730.06019.43
5.4.430.0130.05019.48
5.4.420.0100.05719.46
5.4.410.0100.07718.91
5.4.400.0100.05318.51
5.4.390.0100.05318.67
5.4.380.0500.05718.52
5.4.370.0170.05318.65
5.4.360.0130.05318.72
5.4.350.0470.06718.74
5.4.340.0330.05018.74
5.4.320.0110.03212.46
5.4.310.0080.03712.46
5.4.300.0070.03412.46
5.4.290.0070.04812.46
5.4.280.0100.03412.35
5.4.270.0060.04012.32
5.4.260.0050.03812.32
5.4.250.0070.04212.32
5.4.240.0060.03612.32
5.4.230.0060.03712.31
5.4.220.0050.03612.31
5.4.210.0090.03212.31
5.4.200.0070.04112.31
5.4.190.0070.03412.31
5.4.180.0080.04112.31
5.4.170.0060.04612.32
5.4.160.0060.04112.32
5.4.150.0060.03512.31
5.4.140.0070.04212.00
5.4.130.0070.03311.98
5.4.120.0090.04711.94
5.4.110.0060.03411.93
5.4.100.0060.03511.94
5.4.90.0040.03711.93
5.4.80.0070.03911.94
5.4.70.0070.04311.93
5.4.60.0040.03611.93
5.4.50.0060.03911.93
5.4.40.0030.03611.92
5.4.30.0050.03511.92
5.4.20.0050.03611.91
5.4.10.0060.03811.92
5.4.00.0100.03811.41
5.3.290.0070.04212.80
5.3.280.0050.03812.70
5.3.270.0050.03912.73
5.3.260.0090.03712.72
5.3.250.0100.04012.72
5.3.240.0070.03512.72
5.3.230.0090.03412.71
5.3.220.0110.03212.68
5.3.210.0050.04012.68
5.3.200.0050.03812.68
5.3.190.0010.04412.68
5.3.180.0050.03812.67
5.3.170.0050.03912.67
5.3.160.0140.04112.67
5.3.150.0100.04912.67
5.3.140.0090.04712.66
5.3.130.0060.04512.66
5.3.120.0120.04712.66
5.3.110.0120.04912.66
5.3.100.0080.04712.12
5.3.90.0080.05012.08
5.3.80.0060.04712.07
5.3.70.0100.05512.07
5.3.60.0070.03812.06
5.3.50.0090.03912.00
5.3.40.0070.03612.00
5.3.30.0080.03311.94
5.3.20.0050.03611.71
5.3.10.0040.03711.67
5.3.00.0100.03711.66
5.2.170.0050.0309.16
5.2.160.0040.0309.16
5.2.150.0050.0309.16
5.2.140.0030.0339.15
5.2.130.0070.0329.11
5.2.120.0110.0349.11
5.2.110.0070.0379.12
5.2.100.0070.0369.12
5.2.90.0060.0389.12
5.2.80.0060.0409.11
5.2.70.0070.0409.11
5.2.60.0090.0389.07
5.2.50.0100.0499.04
5.2.40.0100.0429.02
5.2.30.0050.0638.98
5.2.20.0090.0398.99
5.2.10.0040.0388.93
5.2.00.0070.0378.78
5.1.60.0070.0308.08
5.1.50.0060.0318.08
5.1.40.0050.0348.07
5.1.30.0070.0338.41
5.1.20.0060.0288.44
5.1.10.0050.0288.16
5.1.00.0050.0258.16
5.0.50.0040.0216.64
5.0.40.0050.0196.50
5.0.30.0030.0326.32
5.0.20.0060.0186.30
5.0.10.0030.0216.27
5.0.00.0060.0296.27
4.4.90.0050.0144.78
4.4.80.0020.0174.76
4.4.70.0000.0194.76
4.4.60.0020.0154.75
4.4.50.0030.0154.77
4.4.40.0050.0244.71
4.4.30.0050.0144.76
4.4.20.0010.0194.85
4.4.10.0030.0164.85
4.4.00.0030.0254.76
4.3.110.0030.0164.67
4.3.100.0030.0154.66
4.3.90.0020.0154.64
4.3.80.0020.0244.58
4.3.70.0050.0124.63
4.3.60.0020.0154.63
4.3.50.0020.0164.63
4.3.40.0060.0264.54
4.3.30.0010.0233.33
4.3.20.0030.0213.32
4.3.10.0030.0183.28
4.3.00.0130.0236.99

preferences:
51.66 ms | 400 KiB | 5 Q