3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('protein' => 'proteiny', 'total_fat' => 'total faty', 'carbohydrates' => 'carbohydrates', 'food_energy' => 'food energy'); $b = array('protein' => 'grams', 'total_fat' => 'grams', 'carbohydrates' => 'grams', 'food_energy' => 'kcals'); foreach($a as $k => $e) { $res[] = array('slug' => $k, 'name' => $e, 'format' => $b[$k]); } print_r($res);

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.5.10.0100.00516.75
8.5.00.0110.00920.18
8.4.150.0020.00014.05
8.4.140.0120.00917.59
8.4.130.0100.01018.85
8.4.120.0110.00823.82
8.4.110.0130.00720.86
8.4.100.0090.01218.59
8.4.90.0120.00820.39
8.4.80.0060.00218.89
8.4.70.0100.00918.05
8.4.60.0090.01218.62
8.4.50.0110.01018.80
8.4.40.0070.01019.48
8.4.30.0110.00720.57
8.4.20.0090.00918.71
8.4.10.0030.00617.57
8.3.280.0120.01018.30
8.3.270.0150.00516.43
8.3.260.0090.00916.33
8.3.250.0130.00619.16
8.3.240.0140.00617.23
8.3.230.0120.00716.69
8.3.220.0060.00218.87
8.3.210.0080.00716.69
8.3.200.0080.00816.80
8.3.190.0050.00317.17
8.3.180.0060.00517.09
8.3.170.0040.00420.37
8.3.160.0100.00719.13
8.3.150.0090.00917.36
8.3.140.0140.00418.92
8.3.130.0040.00418.42
8.3.120.0150.00416.50
8.3.110.0070.01416.65
8.3.100.0040.00420.07
8.3.90.0040.00418.37
8.3.80.0060.00318.56
8.3.70.0060.00918.43
8.3.60.0110.01118.55
8.3.50.0060.01321.11
8.3.40.0130.00318.75
8.3.30.0140.00718.79
8.3.20.0070.00021.73
8.3.10.0040.00422.14
8.3.00.0040.00423.48
8.2.290.0060.00220.58
8.2.280.0130.00618.21
8.2.270.0070.01117.44
8.2.260.0070.00716.64
8.2.250.0060.00318.50
8.2.240.0160.00318.88
8.2.230.0080.00020.94
8.2.220.0030.00724.06
8.2.210.0150.00326.77
8.2.200.0030.00616.75
8.2.190.0140.00716.63
8.2.180.0110.00716.75
8.2.170.0140.00322.96
8.2.160.0100.00322.11
8.2.150.0030.00524.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0080.00026.16
8.2.110.0030.00619.25
8.2.100.0030.00917.91
8.2.90.0000.00817.63
8.2.80.0040.00417.97
8.2.70.0000.01217.93
8.2.60.0090.00018.22
8.2.50.0030.00518.10
8.2.40.0040.00419.42
8.2.30.0070.00019.33
8.2.20.0040.00418.00
8.2.10.0000.00719.37
8.2.00.0040.00419.36
8.1.330.0110.00721.63
8.1.320.0120.00916.30
8.1.310.0060.00316.84
8.1.300.0030.00620.38
8.1.290.0060.00318.88
8.1.280.0080.00825.92
8.1.270.0080.00022.07
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0090.00022.19
8.1.230.0000.01119.09
8.1.220.0060.00317.74
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0080.00017.35
8.1.180.0030.00518.10
8.1.170.0050.00318.71
8.1.160.0000.00718.77
8.1.150.0000.00718.79
8.1.140.0030.00320.81
8.1.130.0030.00320.11
8.1.120.0040.00417.44
8.1.110.0040.00417.46
8.1.100.0040.00417.50
8.1.90.0040.00417.34
8.1.80.0000.00817.45
8.1.70.0030.00317.43
8.1.60.0050.00317.52
8.1.50.0040.00417.41
8.1.40.0030.00517.57
8.1.30.0000.00717.59
8.1.20.0000.00817.61
8.1.10.0040.00417.49
8.1.00.0070.00017.50
8.0.300.0060.00319.60
8.0.290.0040.00416.75
8.0.280.0040.00418.48
8.0.270.0030.00317.26
8.0.260.0030.00319.98
8.0.250.0030.00316.86
8.0.240.0060.00016.97
8.0.230.0070.00016.86
8.0.220.0000.00716.88
8.0.210.0020.00516.76
8.0.200.0060.00016.91
8.0.190.0040.00416.92
8.0.180.0000.00916.84
8.0.170.0000.00816.84
8.0.160.0070.00016.89
8.0.150.0060.00316.74
8.0.140.0000.00716.79
8.0.130.0000.00513.30
8.0.120.0040.00416.88
8.0.110.0000.00716.86
8.0.100.0000.00716.93
8.0.90.0050.00316.89
8.0.80.0110.00416.94
8.0.70.0050.00216.76
8.0.60.0030.00516.75
8.0.50.0040.00416.90
8.0.30.0100.00717.09
8.0.20.0090.00916.95
8.0.10.0000.00716.84
8.0.00.0120.00916.81
7.4.330.0000.00515.55
7.4.320.0060.00016.62
7.4.300.0030.00616.59
7.4.290.0000.00816.46
7.4.280.0000.00816.54
7.4.270.0050.00516.60
7.4.260.0030.00313.26
7.4.250.0070.00016.55
7.4.240.0050.00216.54
7.4.230.0070.00016.36
7.4.220.0030.00316.61
7.4.210.0070.00916.49
7.4.200.0030.00316.50
7.4.140.0140.00417.86
7.4.130.0120.00616.44
7.4.120.0150.00616.54
7.4.110.0150.00316.58
7.4.100.0140.00416.34
7.4.90.0100.00716.68
7.4.80.0060.01419.39
7.4.70.0100.01016.54
7.4.60.0060.01016.53
7.4.50.0100.00716.25
7.4.40.0100.00716.51
7.4.00.0020.01314.89
7.3.330.0070.00016.41
7.3.320.0000.00513.03
7.3.310.0030.00316.28
7.3.300.0000.00816.35
7.3.290.0050.01016.31
7.3.280.0090.01016.27
7.3.260.0100.00816.49
7.3.240.0080.01116.41
7.3.230.0100.01016.27
7.3.210.0100.00616.25
7.3.200.0100.00716.39
7.3.190.0090.00616.44
7.3.180.0150.00316.59
7.3.170.0040.01216.61
7.3.160.0030.01316.32
7.3.120.0110.00714.79
7.3.110.0070.01014.87
7.3.100.0090.00614.83
7.3.90.0030.00714.87
7.3.80.0080.00714.84
7.3.70.0060.00614.75
7.3.60.0090.00414.71
7.3.50.0090.00314.63
7.3.40.0110.00514.73
7.3.30.0070.01014.61
7.3.20.0100.00515.93
7.3.10.0120.00315.95
7.3.00.0100.00515.99
7.2.330.0140.00316.51
7.2.320.0060.01116.51
7.2.310.0030.01616.51
7.2.300.0060.01016.62
7.2.290.0070.01116.29
7.2.250.0100.01014.97
7.2.240.0060.01315.07
7.2.230.0060.00915.11
7.2.220.0000.01315.12
7.2.210.0100.00714.84
7.2.200.0100.00414.83
7.2.190.0080.00614.96
7.2.180.0090.00714.88
7.2.170.0070.00814.85
7.2.160.0080.00814.93
7.2.150.0140.00215.91
7.2.140.0120.00615.92
7.2.130.0090.00716.07
7.2.120.0150.00215.90
7.2.110.0110.00515.94
7.2.100.0100.00515.97
7.2.90.0070.00715.84
7.2.80.0590.00715.95
7.2.70.0100.00716.01
7.2.60.0100.00816.06
7.2.50.0090.00715.86
7.2.40.0080.01115.92
7.2.30.0120.00515.88
7.2.20.0110.00815.92
7.2.10.0120.00316.08
7.2.00.0110.00615.94
7.1.330.0060.00615.78
7.1.320.0040.00815.84
7.1.310.0080.00715.22
7.1.300.0060.00615.02
7.1.290.0060.01015.08
7.1.280.0080.00915.13
7.1.270.0070.00815.11
7.1.260.0040.00915.21
7.1.250.0070.01014.86

preferences:
126.27 ms | 403 KiB | 5 Q