3v4l.org

run code in 300+ PHP versions simultaneously
<?php $totaltcost = 3; $costperunit = 2; $fillCost = array("cost" => $totalCost, "costxunit" => $costperunit); vardump($fillCost);

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.00716.63
8.3.50.0120.00318.26
8.3.40.0100.00318.71
8.3.30.0140.00718.67
8.3.20.0050.00320.22
8.3.10.0050.00323.71
8.3.00.0030.00519.50
8.2.180.0000.01516.63
8.2.170.0070.00722.96
8.2.160.0130.00720.52
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0030.00617.63
8.2.120.0070.00026.35
8.2.110.0000.00920.39
8.2.100.0040.00718.18
8.2.90.0000.00819.34
8.2.80.0040.00417.97
8.2.70.0030.00617.60
8.2.60.0060.00317.80
8.2.50.0040.00418.07
8.2.40.0040.00419.41
8.2.30.0000.00720.68
8.2.20.0030.00517.74
8.2.10.0040.00418.11
8.2.00.0000.00718.10
8.1.280.0040.01425.92
8.1.270.0060.00323.82
8.1.260.0040.00428.09
8.1.250.0100.00028.09
8.1.240.0030.00623.80
8.1.230.0070.00419.18
8.1.220.0000.00717.74
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0080.00017.13
8.1.180.0050.00318.10
8.1.170.0040.00418.49
8.1.160.0040.00422.00
8.1.150.0000.00718.81
8.1.140.0050.00319.38
8.1.130.0030.00317.68
8.1.120.0040.00417.44
8.1.110.0000.00717.37
8.1.100.0030.00517.36
8.1.90.0030.00317.39
8.1.80.0000.00717.41
8.1.70.0000.00817.45
8.1.60.0000.00717.39
8.1.50.0000.00817.58
8.1.40.0040.00417.54
8.1.30.0000.00817.57
8.1.20.0030.00617.47
8.1.10.0040.00417.58
8.1.00.0080.00017.54
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0070.00018.42
8.0.270.0000.00717.09
8.0.260.0030.00317.18
8.0.250.0040.00416.96
8.0.240.0050.00316.94
8.0.230.0000.00716.91
8.0.220.0000.00816.82
8.0.210.0050.00316.86
8.0.200.0030.00316.82
8.0.190.0000.00816.86
8.0.180.0000.00816.91
8.0.170.0040.00416.90
8.0.160.0070.00016.84
8.0.150.0040.00416.75
8.0.140.0100.00316.78
8.0.130.0000.00613.24
8.0.120.0050.00316.88
8.0.110.0050.00216.93
8.0.100.0040.00416.70
8.0.90.0070.00016.77
8.0.80.0000.01716.81
8.0.70.0040.00416.75
8.0.60.0080.00016.94
8.0.50.0080.00016.88
8.0.30.0110.01117.21
8.0.20.0140.00417.40
8.0.10.0040.00417.06
8.0.00.0100.00716.66
7.4.330.0000.00516.77
7.4.320.0060.00016.50
7.4.300.0030.00316.63
7.4.290.0000.00716.47
7.4.280.0060.00316.59
7.4.270.0030.00316.46
7.4.260.0050.00316.34
7.4.250.0030.00516.36
7.4.240.0040.00416.57
7.4.230.0030.00316.38
7.4.220.0140.01116.63
7.4.210.0070.01316.46
7.4.200.0050.00216.57
7.4.160.0040.01116.52
7.4.150.0060.01017.40
7.4.140.0100.01217.86
7.4.130.0080.00816.59
7.4.120.0120.00616.43
7.4.110.0060.01316.73
7.4.100.0200.00416.50
7.4.90.0000.01616.38
7.4.80.0170.00019.39
7.4.70.0090.01316.56
7.4.60.0080.01216.57
7.4.50.0080.00416.65
7.4.40.0060.00916.40
7.4.30.0100.01016.55
7.4.00.0070.01014.96
7.3.330.0050.00213.21
7.3.320.0050.00013.08
7.3.310.0000.00716.47
7.3.300.0000.00616.31
7.3.290.0100.00816.29
7.3.280.0070.00916.34
7.3.270.0100.00717.40
7.3.260.0070.01016.59
7.3.250.0120.00516.38
7.3.240.0090.01316.43
7.3.230.0090.00916.59
7.3.210.0130.00616.55
7.3.200.0060.01016.21
7.3.190.0040.01116.35
7.3.180.0120.00916.28
7.3.170.0060.01316.27
7.3.160.0100.00716.55
7.3.120.0080.01114.89
7.3.110.0020.01514.61
7.3.100.0070.00814.77
7.3.90.0060.00914.77
7.3.80.0050.00814.81
7.3.70.0060.00914.73
7.3.60.0050.01114.86
7.3.50.0050.00814.71
7.3.40.0080.00314.71
7.3.30.0010.01614.84
7.3.20.0050.01016.70
7.3.10.0080.00816.60
7.3.00.0070.00716.61
7.2.330.0040.01416.25
7.2.320.0060.01016.56
7.2.310.0040.01216.46
7.2.300.0160.00316.52
7.2.290.0030.01316.31
7.2.250.0050.01314.90
7.2.240.0090.00814.85
7.2.230.0070.00814.85
7.2.220.0070.00614.70
7.2.210.0070.00714.85
7.2.200.0040.00914.85
7.2.190.0030.01014.79
7.2.180.0050.00514.74
7.2.170.0050.00814.83
7.2.60.0090.00916.79
7.2.00.0070.00719.50
7.1.330.0040.01115.76
7.1.320.0070.00815.60
7.1.310.0060.00715.61
7.1.300.0080.00815.51
7.1.290.0050.00615.62
7.1.280.0070.00615.70
7.1.270.0100.00415.71
7.1.260.0080.00415.73
7.1.200.0000.01515.49
7.1.100.0030.00818.07
7.1.70.0030.00917.21
7.1.60.0100.01319.36
7.1.50.0100.01016.91
7.1.00.0030.07322.31
7.0.200.0030.00616.79
7.0.100.0000.05720.02
7.0.90.0100.07719.96
7.0.80.0030.08019.89
7.0.70.0000.08020.01
7.0.60.0170.05319.88
7.0.50.0100.08020.29
7.0.40.0170.07020.19
7.0.30.0070.08320.15
7.0.20.0100.08320.13
7.0.10.0130.04320.10
7.0.00.0100.08020.07
5.6.280.0000.05720.90
5.6.250.0070.08020.66
5.6.240.0070.08020.61
5.6.230.0030.05020.56
5.6.220.0070.03720.59
5.6.210.0070.07720.66
5.6.200.0100.08021.18
5.6.190.0100.07721.05
5.6.180.0130.07021.02
5.6.170.0170.07020.96
5.6.160.0170.07021.04
5.6.150.0130.07720.95
5.6.140.0030.08320.95
5.6.130.0100.06021.06
5.6.120.0100.08721.16
5.6.110.0170.07721.05
5.6.100.0100.08020.96
5.6.90.0200.06720.99
5.6.80.0100.07320.45
5.6.70.0070.05020.55
5.6.60.0130.07020.30
5.6.50.0030.07720.41
5.6.40.0170.07720.42
5.6.30.0170.06720.44
5.6.20.0230.06020.37
5.6.10.0130.07320.52
5.6.00.0030.08020.29
5.5.380.0030.07720.48
5.5.370.0070.08020.40
5.5.360.0130.07020.35
5.5.350.0100.03720.40
5.5.340.0130.07720.92
5.5.330.0000.09020.87
5.5.320.0130.07020.88
5.5.310.0130.07720.86
5.5.300.0000.05720.79
5.5.290.0130.08020.82
5.5.280.0070.07720.82
5.5.270.0070.09020.63
5.5.260.0200.07320.84
5.5.250.0030.08020.58
5.5.240.0030.08320.30
5.5.230.0070.06020.20
5.5.220.0030.08020.19
5.5.210.0100.07320.23
5.5.200.0200.06720.27
5.5.190.0070.05019.99
5.5.180.0030.08320.27
5.5.160.0130.07720.28
5.5.150.0130.05720.17
5.5.140.0100.07720.18
5.5.130.0070.07320.26
5.5.120.0100.08020.15
5.5.110.0070.07720.17
5.5.100.0070.05019.97
5.5.90.0070.07320.08
5.5.80.0200.06720.07
5.5.70.0100.07319.93
5.5.60.0030.06320.13
5.5.50.0030.07319.96
5.5.40.0100.04319.95
5.5.30.0030.07320.04
5.5.20.0030.08020.05
5.5.10.0030.05720.04
5.5.00.0070.08019.94

preferences:
55.75 ms | 400 KiB | 5 Q