3v4l.org

run code in 300+ PHP versions simultaneously
<?php atest(); function atest(){ $test = array( "StartDate" => "08/01/2013", "StartTime" =>"08:00:00", "DepartmentID" => "75275", "# Contacts Offered" => "3", "# Contacts Handled" => "4", "Average Talk Time" => "491.250000", "Average Delay" => "5.666667", "Percent SLA" => "1.333333"); $formatted = sprintf("%s %s TCSDATA %d %d %d %01.2f 0 %01.2f %01.2f \r\n", $test["StartDate"], $test["StartTime"], $test['DepartmentID'], $test['# Contacts Offered'], $test['# Contacts Handled'], $test['Average Talk Time'], $test['Average Delay'], $test['Percent SLA'] ); echo('<pre>'); echo( var_dump($test) ); echo('</pre>'); echo $formatted; } ?>

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.0070.01416.38
8.3.50.0110.00622.04
8.3.40.0040.01218.77
8.3.30.0140.00019.18
8.3.20.0000.00720.13
8.3.10.0080.00023.53
8.3.00.0050.00320.76
8.2.180.0160.00618.54
8.2.170.0100.00722.96
8.2.160.0070.00720.38
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0090.00926.16
8.2.120.0040.00422.18
8.2.110.0000.00921.91
8.2.100.0090.00317.91
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0040.00717.75
8.2.60.0080.00017.93
8.2.50.0080.00018.07
8.2.40.0050.00318.22
8.2.30.0050.00318.17
8.2.20.0040.00417.71
8.2.10.0060.00317.62
8.2.00.0000.00917.64
8.1.280.0140.00025.92
8.1.270.0030.00523.83
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00323.87
8.1.230.0040.00719.10
8.1.220.0050.00317.79
8.1.210.0040.00418.77
8.1.200.0000.01017.13
8.1.190.0080.00017.43
8.1.180.0080.00018.10
8.1.170.0030.00918.71
8.1.160.0050.00321.91
8.1.150.0040.00418.49
8.1.140.0050.00317.30
8.1.130.0060.00317.75
8.1.120.0040.00417.38
8.1.110.0030.00417.40
8.1.100.0000.00717.44
8.1.90.0050.00317.30
8.1.80.0040.00417.36
8.1.70.0000.00717.39
8.1.60.0000.00717.49
8.1.50.0050.00317.45
8.1.40.0000.00817.45
8.1.30.0000.00817.60
8.1.20.0070.00017.55
8.1.10.0040.00417.54
8.1.00.0060.00317.48
8.0.300.0040.00418.77
8.0.290.0000.00717.18
8.0.280.0070.00018.45
8.0.270.0000.00717.22
8.0.260.0070.00016.86
8.0.250.0030.00316.92
8.0.240.0060.00316.95
8.0.230.0000.00716.90
8.0.220.0000.00816.85
8.0.210.0050.00216.88
8.0.200.0060.00016.86
8.0.190.0030.00516.85
8.0.180.0000.00816.87
8.0.170.0030.00516.85
8.0.160.0030.00516.88
8.0.150.0070.00016.80
8.0.140.0000.00716.83
8.0.130.0030.00313.15
8.0.120.0040.00416.75
8.0.110.0070.00016.83
8.0.100.0050.00216.79
8.0.90.0050.00316.74
8.0.80.0040.01116.81
8.0.70.0070.00016.89
8.0.60.0040.00416.73
8.0.50.0030.00516.84
8.0.30.0080.01117.07
8.0.20.0120.00717.40
8.0.10.0080.00016.95
8.0.00.0140.00717.01
7.4.330.0000.00515.00
7.4.320.0000.00616.42
7.4.300.0000.00716.54
7.4.290.0030.00316.53
7.4.280.0070.00016.59
7.4.270.0070.00016.57
7.4.260.0070.00016.50
7.4.250.0050.00316.46
7.4.240.0000.00716.55
7.4.230.0050.00216.63
7.4.220.0100.00616.69
7.4.210.0040.01116.56
7.4.200.0050.00316.54
7.4.190.0030.00316.70
7.4.160.0130.00616.45
7.4.150.0170.00317.40
7.4.140.0130.00817.86
7.4.130.0090.00916.46
7.4.120.0080.00816.51
7.4.110.0070.01116.55
7.4.100.0140.00716.52
7.4.90.0140.00416.51
7.4.80.0080.01119.39
7.4.70.0070.01016.52
7.4.60.0160.00616.41
7.4.50.0080.00016.49
7.4.40.0030.01022.77
7.4.30.0120.00316.52
7.4.00.0100.00715.03
7.3.330.0000.00513.37
7.3.320.0000.00513.16
7.3.310.0040.00416.35
7.3.300.0030.00316.31
7.3.290.0120.00616.27
7.3.280.0080.00916.27
7.3.270.0140.00517.40
7.3.260.0110.00716.42
7.3.250.0100.00716.29
7.3.240.0030.01616.31
7.3.230.0120.00616.55
7.3.210.0090.01216.39
7.3.200.0060.01219.39
7.3.190.0170.00716.52
7.3.180.0090.00916.45
7.3.170.0120.00316.45
7.3.160.0060.00916.40
7.3.120.0030.00715.01
7.3.110.0060.00614.75
7.3.100.0030.01014.46
7.3.90.0070.00714.84
7.3.80.0070.00314.76
7.3.70.0000.01114.77
7.3.60.0030.01014.52
7.3.50.0060.00614.95
7.3.40.0110.00414.94
7.3.30.0130.00014.61
7.3.20.0130.00016.50
7.3.10.0030.00616.37
7.3.00.0030.00916.89
7.2.330.0070.01416.67
7.2.320.0100.00716.45
7.2.310.0040.01516.43
7.2.300.0120.00916.42
7.2.290.0130.00616.32
7.2.240.0070.00715.36
7.2.230.0080.00315.13
7.2.220.0100.00314.60
7.2.210.0060.01014.96
7.2.200.0080.00414.94
7.2.190.0030.01014.85
7.2.180.0000.01415.02
7.2.170.0040.01214.77
7.2.160.0090.00614.67
7.2.150.0090.00316.94
7.2.140.0040.00916.89
7.2.130.0030.01016.99
7.2.120.0000.01516.69
7.2.110.0120.00416.72
7.2.100.0120.00416.55
7.2.90.0040.00816.99
7.2.80.0090.00016.90
7.2.70.0100.00316.83
7.2.60.0040.00716.71
7.2.50.0000.01016.81
7.2.40.0030.00917.07
7.2.30.0110.00317.06
7.2.20.0060.00617.00
7.2.10.0080.00817.07
7.2.00.0030.01018.00
7.1.330.0000.01415.75
7.1.320.0000.01215.68
7.1.310.0090.00315.71
7.1.300.0070.00715.91
7.1.290.0070.00715.97
7.1.280.0030.00615.82
7.1.270.0030.00815.43
7.1.260.0030.00715.52
7.1.250.0080.00015.92
7.1.200.0130.00415.74
7.1.100.0030.01418.11
7.1.70.0100.00017.02
7.1.60.0080.01519.29
7.1.50.0070.01516.89
7.1.00.0100.07022.28
7.0.200.0000.01016.76
7.0.140.0030.06722.00
7.0.70.0770.06319.86
7.0.60.0670.04019.94
7.0.50.0670.05020.26
7.0.40.0170.08020.13
7.0.30.0070.05720.11
7.0.20.0030.06320.07
7.0.10.0230.07320.10
7.0.00.0000.08720.04
5.6.280.0000.07721.02
5.6.220.0200.06720.65
5.6.210.0100.05320.47
5.6.200.0230.07721.12
5.6.190.0200.07320.94
5.6.180.0200.07021.18
5.6.170.0100.08721.02
5.6.160.0070.04720.96
5.6.150.0100.08021.02
5.6.140.0230.07021.07
5.6.130.0130.08321.11
5.6.120.0100.05021.17
5.6.110.0070.04321.04
5.6.100.0070.07321.01
5.6.90.0130.08321.00
5.6.80.0130.07320.38
5.6.70.0070.07720.40
5.6.60.0070.08320.46
5.6.50.0070.08020.41
5.6.40.0070.08320.31
5.6.30.0070.08320.39
5.6.20.0000.04720.37
5.6.10.0130.07320.49
5.6.00.0000.08720.32
5.5.360.0130.08320.44
5.5.350.0030.07320.36
5.5.340.0030.08720.87
5.5.330.0100.05320.77
5.5.320.0070.08020.81
5.5.310.0030.08320.82
5.5.300.0070.07720.91
5.5.290.0130.05020.76
5.5.280.0170.08020.69
5.5.270.0030.04320.82
5.5.260.0030.05320.87
5.5.250.0130.05020.65
5.5.240.0100.04020.26
5.5.230.0000.09020.02
5.5.220.0070.09020.20
5.5.210.0130.06720.27
5.5.200.0100.07720.27
5.5.190.0100.08320.26
5.5.180.0030.07320.18
5.5.160.0170.06320.28
5.5.150.0100.08320.11
5.5.140.0100.08020.23
5.5.130.0070.04020.14
5.5.120.0030.07720.16
5.5.110.0100.08020.11
5.5.100.0030.05320.11
5.5.90.0030.08020.15
5.5.80.0130.08020.14
5.5.70.0130.08020.16
5.5.60.0100.08320.06
5.5.50.0070.07720.16
5.5.40.0100.07019.96
5.5.30.0130.07320.16
5.5.20.0000.06020.06
5.5.10.0030.08320.03
5.5.00.0100.07319.97
5.4.450.0070.05019.38
5.4.440.0070.07719.17
5.4.430.0030.08019.35
5.4.420.0130.04019.23
5.4.410.0070.05719.24
5.4.400.0200.06719.04
5.4.390.0130.04319.14
5.4.380.0170.07319.04
5.4.370.0070.07719.13
5.4.360.0100.07319.12
5.4.350.0130.04719.13
5.4.340.0030.06718.87
5.4.320.0030.08319.03
5.4.310.0100.04719.21
5.4.300.0170.06319.04
5.4.290.0030.07719.13
5.4.280.0070.07719.13
5.4.270.0130.07018.91
5.4.260.0070.05019.04
5.4.250.0200.04718.96
5.4.240.0230.05319.15
5.4.230.0030.08718.89
5.4.220.0070.07018.87
5.4.210.0030.08319.17
5.4.200.0030.07719.12
5.4.190.0100.07019.04
5.4.180.0070.08319.24
5.4.170.0070.07719.04
5.4.160.0000.04319.02
5.4.150.0030.04319.12
5.4.140.0000.04016.42
5.4.130.0030.03716.41
5.4.120.0100.06716.45
5.4.110.0070.07316.52
5.4.100.0030.04016.39
5.4.90.0100.04316.39
5.4.80.0100.07016.38
5.4.70.0100.04716.54
5.4.60.0100.07316.34
5.4.50.0100.06316.48
5.4.40.0070.07716.53
5.4.30.0100.07016.47
5.4.20.0030.06316.24
5.4.10.0100.06716.36
5.4.00.0030.07315.87
5.3.290.0070.05014.63
5.3.280.0000.07714.58
5.3.270.0070.07714.54
5.3.260.0100.05014.57
5.3.250.0130.06714.74
5.3.240.0030.05014.72
5.3.230.0100.04714.52
5.3.220.0000.06314.63
5.3.210.0130.06714.68
5.3.200.0070.04714.69
5.3.190.0000.04314.55
5.3.180.0070.07014.62
5.3.170.0030.03714.58
5.3.160.0130.07714.65
5.3.150.0070.07714.51
5.3.140.0000.04714.50
5.3.130.0030.07714.61
5.3.120.0100.07014.61
5.3.110.0100.04314.51
5.3.100.0100.07314.13
5.3.90.0070.05313.99
5.3.80.0030.06013.99
5.3.70.0070.07314.13
5.3.60.0100.07314.09
5.3.50.0030.05314.05
5.3.40.0030.06313.95
5.3.30.0070.04713.81
5.3.20.0100.04013.79
5.3.10.0070.07013.58
5.3.00.0070.07313.54
5.2.170.0000.07012.21
5.2.160.0070.06012.21
5.2.150.0030.06312.21
5.2.140.0030.06012.21
5.2.130.0000.04712.21
5.2.120.0000.03712.21
5.2.110.0070.03012.21
5.2.100.0070.06012.21
5.2.90.0100.04012.21
5.2.80.0070.05312.21
5.2.70.0030.03312.21
5.2.60.0030.06712.21
5.2.50.0070.04012.21
5.2.40.0030.05312.21
5.2.30.0030.07012.21
5.2.20.0070.06012.21
5.2.10.0030.05312.21
5.2.00.0100.05312.21
5.1.60.0030.04012.21
5.1.50.0030.04312.21
5.1.40.0070.05312.21
5.1.30.0030.04312.21
5.1.20.0100.05012.21
5.1.10.0070.05712.21
5.1.00.0100.06712.21
5.0.50.0030.04012.21
5.0.40.0000.04012.21
5.0.30.0030.05312.21
5.0.20.0030.04712.21
5.0.10.0030.04312.21
5.0.00.0070.06312.21
4.4.90.0070.02012.21
4.4.80.0000.03712.21
4.4.70.0030.03312.21
4.4.60.0030.02712.21
4.4.50.0000.03312.21
4.4.40.0070.04712.21
4.4.30.0030.02712.21
4.4.20.0000.04012.21
4.4.10.0000.03712.21
4.4.00.0030.05312.21
4.3.110.0030.02712.21
4.3.100.0030.03712.21
4.3.90.0000.04012.21
4.3.80.0030.04712.21
4.3.70.0030.02712.21
4.3.60.0000.04012.21
4.3.50.0100.02312.21
4.3.40.0000.05012.21
4.3.30.0000.03012.21
4.3.20.0000.03312.21
4.3.10.0000.03012.21
4.3.00.0000.03312.21

preferences:
46.77 ms | 401 KiB | 5 Q