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.0040.01118.43
8.3.50.0100.01121.97
8.3.40.0040.01418.83
8.3.30.0070.00719.09
8.3.20.0040.00420.29
8.3.10.0040.00422.10
8.3.00.0000.00822.39
8.2.180.0000.01416.75
8.2.170.0150.00022.96
8.2.160.0070.00721.06
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0050.00317.75
8.2.110.0030.00620.38
8.2.100.0130.00017.91
8.2.90.0030.00618.11
8.2.80.0040.00417.97
8.2.70.0120.00017.63
8.2.60.0000.00817.93
8.2.50.0030.00518.07
8.2.40.0000.00718.27
8.2.30.0040.00418.05
8.2.20.0040.00417.61
8.2.10.0040.00417.73
8.2.00.0000.00717.64
8.1.280.0150.00025.92
8.1.270.0060.00323.99
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0060.00322.14
8.1.230.0040.00821.04
8.1.220.0040.00417.80
8.1.210.0040.00418.90
8.1.200.0000.01017.38
8.1.190.0030.00517.63
8.1.180.0000.00818.10
8.1.170.0000.00918.67
8.1.160.0040.00422.08
8.1.150.0040.00418.61
8.1.140.0040.00417.38
8.1.130.0030.00317.81
8.1.120.0070.00017.48
8.1.110.0070.00017.53
8.1.100.0000.00717.52
8.1.90.0030.00317.43
8.1.80.0040.00417.47
8.1.70.0000.00717.46
8.1.60.0030.00617.47
8.1.50.0030.00617.41
8.1.40.0080.00017.46
8.1.30.0040.00417.67
8.1.20.0000.00817.66
8.1.10.0000.00717.58
8.1.00.0040.00417.52
8.0.300.0000.00820.07
8.0.290.0040.00417.18
8.0.280.0000.00718.39
8.0.270.0000.00817.21
8.0.260.0000.00616.90
8.0.250.0000.00716.88
8.0.240.0030.00317.00
8.0.230.0070.00016.93
8.0.220.0000.00716.94
8.0.210.0000.00716.95
8.0.200.0000.00616.89
8.0.190.0080.00016.84
8.0.180.0000.00816.97
8.0.170.0040.00417.00
8.0.160.0030.00416.95
8.0.150.0080.00016.73
8.0.140.0030.00516.85
8.0.130.0060.00013.38
8.0.120.0030.00516.89
8.0.110.0040.00416.75
8.0.100.0080.00016.86
8.0.90.0040.00416.80
8.0.80.0050.01616.94
8.0.70.0000.00716.92
8.0.60.0000.00716.81
8.0.50.0030.00516.89
8.0.30.0210.00517.26
8.0.20.0090.01017.40
8.0.10.0000.00816.87
8.0.00.0120.00816.85
7.4.330.0020.00215.00
7.4.320.0000.00616.60
7.4.300.0040.00416.53
7.4.290.0000.00816.57
7.4.280.0030.00316.57
7.4.270.0000.00716.59
7.4.260.0000.00716.65
7.4.250.0050.00316.34
7.4.240.0040.00316.61
7.4.230.0030.00316.35
7.4.220.0070.01116.60
7.4.210.0050.01316.48
7.4.200.0000.00716.30
7.4.190.0000.00816.66
7.4.160.0130.00816.50
7.4.150.0060.01217.40
7.4.140.0110.00717.86
7.4.130.0070.01016.46
7.4.120.0110.00616.58
7.4.110.0110.01416.59
7.4.100.0140.00316.65
7.4.90.0060.01216.72
7.4.80.0000.01919.39
7.4.70.0080.00816.47
7.4.60.0120.00616.54
7.4.50.0000.00816.21
7.4.40.0100.00222.77
7.4.30.0100.00716.45
7.4.00.0060.00915.05
7.3.330.0020.00213.20
7.3.320.0000.00513.20
7.3.310.0000.00716.39
7.3.300.0060.00016.27
7.3.290.0060.01216.34
7.3.280.0080.01216.39
7.3.270.0100.00717.40
7.3.260.0120.00616.57
7.3.250.0140.00516.60
7.3.240.0090.01516.60
7.3.230.0090.00916.39
7.3.210.0130.00716.53
7.3.200.0090.01219.39
7.3.190.0110.01116.41
7.3.180.0060.00916.32
7.3.170.0130.01016.59
7.3.160.0080.01516.39
7.3.120.0040.01115.09
7.2.330.0130.00616.78
7.2.320.0090.00916.72
7.2.310.0170.00716.83
7.2.300.0130.00316.73
7.2.290.0090.00916.65
7.2.60.0070.00717.01
7.2.00.0030.01219.57
7.1.200.0080.00415.99
7.1.100.0000.01118.13
7.1.70.0070.00416.90
7.1.60.0080.01519.82
7.1.50.0100.01016.98
7.1.00.0030.07022.54
7.0.200.0040.00416.86
7.0.140.0070.08722.16
7.0.60.0070.07320.32
7.0.50.0030.06718.26
7.0.40.0200.07320.43
7.0.30.0200.05320.38
7.0.20.0300.07720.55
7.0.10.0300.07320.45
7.0.00.0030.08320.41
5.6.280.0000.07720.86
5.6.210.0130.07720.54
5.6.200.0070.03718.16
5.6.190.0030.04720.48
5.6.180.3230.04320.48
5.6.170.0300.06720.50
5.6.160.0070.04320.51
5.6.150.0070.05318.19
5.6.140.0070.07718.16
5.6.130.0000.06018.07
5.6.120.0070.08721.09
5.6.110.0070.09021.11
5.6.100.0070.04020.97
5.6.90.0030.09021.03
5.6.80.0070.08020.37
5.5.350.0100.06720.44
5.5.340.0100.07717.91
5.5.330.0070.07720.19
5.5.320.0330.06720.34
5.5.310.0230.04320.17
5.5.300.0200.06717.95
5.5.290.0130.05717.89
5.5.280.0130.05320.89
5.5.270.0130.06020.98
5.5.260.0000.06020.86
5.5.250.0070.08720.46
5.5.240.0130.07320.26
5.4.450.0530.04319.57
5.4.440.0300.04319.46
5.4.430.1400.00019.27
5.4.420.0630.00019.58
5.4.410.0100.07318.96
5.4.400.0130.06718.62
5.4.390.0270.05718.68
5.4.380.0230.05718.61
5.4.370.0200.04318.66
5.4.360.0300.04018.63
5.4.350.0130.05718.78
5.4.340.0200.04718.77
5.4.320.0050.03912.46
5.4.310.0080.03612.45
5.4.300.0110.03512.46
5.4.290.0100.04412.45
5.4.280.0010.04612.35
5.4.270.0070.03512.32
5.4.260.0050.04512.32
5.4.250.0040.04612.32
5.4.240.0060.04012.32
5.4.230.0050.03912.32
5.4.220.0060.03512.31
5.4.210.0040.03612.31
5.4.200.0040.04012.31
5.4.190.0020.04012.31
5.4.180.0070.03412.31
5.4.170.0060.03712.32
5.4.160.0010.03912.31
5.4.150.0040.03612.31
5.4.140.0060.04012.00
5.4.130.0060.04811.98
5.4.120.0080.04011.94
5.4.110.0100.03511.94
5.4.100.0050.03611.93
5.4.90.0060.03711.94
5.4.80.0050.03711.94
5.4.70.0070.03311.93
5.4.60.0020.03911.93
5.4.50.0040.03611.93
5.4.40.0050.03411.92
5.4.30.0080.03411.91
5.4.20.0060.04311.92
5.4.10.0050.04311.92
5.4.00.0050.03611.41
5.3.290.0050.04512.80
5.3.280.0050.03712.71
5.3.270.0090.03912.72
5.3.260.0040.04012.72
5.3.250.0050.03812.72
5.3.240.0030.04012.72
5.3.230.0080.03612.71
5.3.220.0070.03612.68
5.3.210.0050.04112.68
5.3.200.0060.03712.68
5.3.190.0070.03612.68
5.3.180.0070.03512.67
5.3.170.0040.03812.67
5.3.160.0050.03712.68
5.3.150.0060.03712.67
5.3.140.0050.03712.66
5.3.130.0070.04512.66
5.3.120.0050.04012.66
5.3.110.0090.03612.66
5.3.100.0060.03612.12
5.3.90.0070.03712.09
5.3.80.0050.03712.07
5.3.70.0100.03212.08
5.3.60.0060.03512.06
5.3.50.0050.03712.00
5.3.40.0050.03712.00
5.3.30.0040.03711.94
5.3.20.0060.03411.70
5.3.10.0070.03411.67
5.3.00.0040.03711.66
5.2.170.0070.0359.16
5.2.160.0040.0309.16
5.2.150.0040.0319.16
5.2.140.0060.0299.16
5.2.130.0050.0289.12
5.2.120.0050.0389.12
5.2.110.0030.0319.12
5.2.100.0050.0289.13
5.2.90.0030.0309.12
5.2.80.0070.0299.11
5.2.70.0030.0329.11
5.2.60.0050.0299.06
5.2.50.0060.0289.04
5.2.40.0060.0279.01
5.2.30.0040.0318.98
5.2.20.0080.0268.99
5.2.10.0050.0278.93
5.2.00.0040.0298.79
5.1.60.0040.0258.09
5.1.50.0070.0218.08
5.1.40.0010.0278.07
5.1.30.0050.0248.41
5.1.20.0040.0278.44
5.1.10.0030.0278.16
5.1.00.0040.0258.16
5.0.50.0040.0206.64
5.0.40.0050.0256.50
5.0.30.0050.0336.31
5.0.20.0040.0186.30
5.0.10.0070.0226.27
5.0.00.0040.0306.27
4.4.90.0030.0204.78
4.4.80.0030.0204.75
4.4.70.0010.0174.75
4.4.60.0030.0164.75
4.4.50.0020.0164.77
4.4.40.0020.0264.71
4.4.30.0010.0174.76
4.4.20.0040.0144.85
4.4.10.0010.0224.85
4.4.00.0030.0304.76
4.3.110.0050.0194.66
4.3.100.0050.0134.67
4.3.90.0020.0154.63
4.3.80.0010.0274.58
4.3.70.0000.0174.63
4.3.60.0020.0154.62
4.3.50.0030.0164.63
4.3.40.0030.0244.54
4.3.30.0040.0163.34
4.3.20.0020.0183.32
4.3.10.0020.0193.27
4.3.00.0170.01715.59

preferences:
46.73 ms | 401 KiB | 5 Q