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.40.0140.00018.76
8.3.30.0150.00618.71
8.3.20.0040.00420.22
8.3.10.0050.00323.66
8.3.00.0080.00019.18
8.2.170.0110.00422.96
8.2.160.0070.00720.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00617.63
8.2.120.0040.00426.35
8.2.110.0060.00320.88
8.2.100.0070.00418.09
8.2.90.0000.00819.08
8.2.80.0060.00317.97
8.2.70.0000.00817.50
8.2.60.0030.00617.93
8.2.50.0040.00418.07
8.2.40.0070.00019.28
8.2.30.0000.00720.49
8.2.20.0100.00017.61
8.2.10.0040.00418.04
8.2.00.0060.00318.04
8.1.270.0070.00323.96
8.1.260.0040.00428.09
8.1.250.0060.00328.09
8.1.240.0090.00317.36
8.1.230.0040.00717.83
8.1.220.0030.00617.74
8.1.210.0030.00518.77
8.1.200.0000.01017.35
8.1.190.0080.00017.10
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0000.00721.95
8.1.150.0040.00418.72
8.1.140.0000.00819.48
8.1.130.0030.00317.62
8.1.120.0040.00417.43
8.1.110.0050.00217.40
8.1.100.0040.00417.42
8.1.90.0000.00717.40
8.1.80.0040.00417.41
8.1.70.0050.00317.27
8.1.60.0080.00017.50
8.1.50.0040.00417.56
8.1.40.0000.00817.50
8.1.30.0000.00817.69
8.1.20.0080.00017.53
8.1.10.0000.00717.43
8.1.00.0040.00417.54
8.0.300.0030.00618.77
8.0.290.0040.00416.63
8.0.280.0040.00218.29
8.0.270.0030.00317.18
8.0.260.0000.00617.18
8.0.250.0030.00316.92
8.0.240.0040.00416.95
8.0.230.0000.00716.86
8.0.220.0030.00416.89
8.0.210.0000.00816.78
8.0.200.0030.00316.88
8.0.190.0050.00316.91
8.0.180.0040.00416.89
8.0.170.0000.00716.88
8.0.160.0030.00316.84
8.0.150.0000.00816.87
8.0.140.0030.00716.85
8.0.130.0000.00813.30
8.0.120.0000.00816.83
8.0.110.0070.00016.93
8.0.100.0000.00716.89
8.0.90.0070.00016.72
8.0.80.0100.01016.94
8.0.70.0040.00416.89
8.0.60.0050.00316.82
8.0.50.0040.00416.70
8.0.30.0060.01316.97
8.0.20.0110.00917.40
8.0.10.0040.00417.02
8.0.00.0100.00716.61
7.4.330.0050.00016.79
7.4.320.0060.00016.46
7.4.300.0060.00016.59
7.4.290.0030.00316.60
7.4.280.0030.00616.58
7.4.270.0030.00316.44
7.4.260.0040.00416.49
7.4.250.0070.00016.55
7.4.240.0040.00216.55
7.4.230.0030.00316.39
7.4.220.0060.01516.48
7.4.210.0070.01416.55
7.4.200.0000.00716.58
7.4.160.0090.00616.35
7.4.150.0100.00717.40
7.4.140.0190.00317.86
7.4.130.0080.01016.65
7.4.120.0130.00416.52
7.4.110.0200.00516.65
7.4.100.0100.01316.46
7.4.90.0100.01016.74
7.4.80.0120.00919.39
7.4.70.0030.01316.38
7.4.60.0070.01316.36
7.4.50.0090.00616.56
7.4.40.0130.00316.50
7.4.30.0090.01216.56
7.4.00.0100.00714.76
7.3.330.0000.00713.30
7.3.320.0060.00013.07
7.3.310.0070.00016.38
7.3.300.0030.00316.35
7.3.290.0090.00716.36
7.3.280.0070.01116.31
7.3.270.0140.00317.40
7.3.260.0050.01416.12
7.3.250.0100.00716.45
7.3.240.0090.00916.32
7.3.230.0110.00716.59
7.3.210.0070.01016.48
7.3.200.0100.00716.48
7.3.190.0070.01016.24
7.3.180.0090.00616.56
7.3.170.0090.01016.27
7.3.160.0130.00316.38
7.3.120.0100.00715.01
7.3.110.0120.00015.05
7.3.100.0110.00414.98
7.3.90.0100.00314.74
7.3.80.0060.00614.78
7.3.70.0110.00414.81
7.3.60.0040.00814.85
7.3.50.0060.00314.82
7.3.40.0090.00614.39
7.3.30.0030.00714.79
7.3.20.0080.00316.82
7.3.10.0060.01216.34
7.3.00.0030.01016.59
7.2.330.0180.00616.37
7.2.320.0100.00616.24
7.2.310.0100.00616.59
7.2.300.0070.01016.53
7.2.290.0060.01216.41
7.2.250.0040.01515.01
7.2.240.0080.00815.04
7.2.230.0060.00914.66
7.2.220.0030.00914.52
7.2.210.0000.01414.98
7.2.200.0060.00315.00
7.2.190.0070.00714.88
7.2.180.0100.00714.84
7.2.170.0000.01014.96
7.2.60.0070.00716.53
7.2.00.0100.01019.25
7.1.330.0030.01015.56
7.1.320.0110.00415.61
7.1.310.0040.00815.61
7.1.300.0080.00415.66
7.1.290.0050.00515.59
7.1.280.0030.01015.83
7.1.270.0040.00415.69
7.1.260.0000.01715.46
7.1.200.0030.00915.45
7.1.100.0000.01018.13
7.1.70.0030.00717.07
7.1.60.0070.01719.36
7.1.50.0070.01516.86
7.1.00.0030.07322.28
7.0.200.0070.01016.46
7.0.100.0170.08019.98
7.0.90.0100.08719.96
7.0.80.0130.06719.97
7.0.70.0370.08019.84
7.0.60.0330.07720.06
7.0.50.0300.05320.16
7.0.40.0130.07320.00
7.0.30.0130.07320.03
7.0.20.0100.07720.00
7.0.10.0100.08720.12
7.0.00.0200.07320.12
5.6.280.0030.04020.98
5.6.250.0170.07320.66
5.6.240.0100.05320.74
5.6.230.0100.08320.66
5.6.220.0070.08020.58
5.6.210.0030.08320.48
5.6.200.0100.08721.11
5.6.190.0070.08721.08
5.6.180.0000.09021.03
5.6.170.0070.08321.02
5.6.160.0070.08721.02
5.6.150.0100.08021.10
5.6.140.0230.07021.16
5.6.130.0100.07720.95
5.6.120.0130.05720.93
5.6.110.0070.08321.06
5.6.100.0000.08720.91
5.6.90.0070.09020.99
5.6.80.0130.07720.46
5.6.70.0130.07320.43
5.6.60.0100.04720.32
5.6.50.0030.07720.41
5.6.40.0100.05720.52
5.6.30.0100.05720.37
5.6.20.0030.04320.48
5.6.10.0030.04020.51
5.6.00.0030.04320.26
5.5.380.0070.04720.56
5.5.370.0130.08020.35
5.5.360.0070.07720.41
5.5.350.0100.08320.46
5.5.340.0070.08320.77
5.5.330.0030.09020.91
5.5.320.0030.07320.75
5.5.310.0070.06720.89
5.5.300.0130.04720.82
5.5.290.0030.07320.64
5.5.280.0070.06320.88
5.5.270.0370.06320.90
5.5.260.0130.07020.88
5.5.250.0070.07720.63
5.5.240.0030.07320.30
5.5.230.0070.08020.24
5.5.220.0070.08020.25
5.5.210.0070.06720.27
5.5.200.0030.04320.18
5.5.190.0100.03320.14
5.5.180.0070.04020.23
5.5.160.0070.05320.16
5.5.150.0130.03720.27
5.5.140.0100.03320.17
5.5.130.0070.03720.14
5.5.120.0070.03720.11
5.5.110.0030.04020.16
5.5.100.0030.04020.07
5.5.90.0000.04019.90
5.5.80.0070.04720.04
5.5.70.0000.04320.11
5.5.60.0100.03720.05
5.5.50.0070.03720.05
5.5.40.0100.03019.99
5.5.30.0070.05020.01
5.5.20.0000.03719.99
5.5.10.0070.04319.97
5.5.00.0100.03719.99

preferences:
33.73 ms | 400 KiB | 5 Q