3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X{ public function createCost() { $cost_example = array(); function checkDescription($array_item) { return $array_item; } $array_mapped = array_map('checkDescription', $cost_example); } } $x = new X(); $x->createCost();

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.0150.00418.55
8.3.50.0000.01416.30
8.3.40.0070.00718.68
8.3.30.0140.00018.77
8.3.20.0080.00018.98
8.3.10.0080.00021.89
8.3.00.0070.00317.78
8.2.180.0120.00918.17
8.2.170.0100.01022.96
8.2.160.0070.01020.60
8.2.150.0030.00524.18
8.2.140.0030.00624.66
8.2.130.0080.00020.59
8.2.120.0040.00426.35
8.2.110.0040.00422.26
8.2.100.0040.00717.84
8.2.90.0080.00020.80
8.2.80.0040.00417.97
8.2.70.0060.00617.50
8.2.60.0080.00018.05
8.2.50.0040.00418.10
8.2.40.0000.00720.64
8.2.30.0050.00320.96
8.2.20.0040.00417.97
8.2.10.0050.00318.03
8.2.00.0030.00618.18
8.1.280.0120.00925.92
8.1.270.0070.00022.05
8.1.260.0000.00726.35
8.1.250.0050.00228.09
8.1.240.0070.00322.47
8.1.230.0000.01117.64
8.1.220.0050.00317.77
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0040.00417.23
8.1.180.0000.00718.10
8.1.170.0080.00018.65
8.1.160.0040.00419.02
8.1.150.0040.00418.84
8.1.140.0000.01019.62
8.1.130.0030.00318.85
8.1.120.0030.00317.46
8.1.110.0060.00317.52
8.1.100.0000.00717.45
8.1.90.0000.00717.41
8.1.80.0030.00317.44
8.1.70.0000.00717.46
8.1.60.0050.00317.61
8.1.50.0000.00817.55
8.1.40.0040.00417.41
8.1.30.0040.00417.54
8.1.20.0050.00317.56
8.1.10.0030.00617.39
8.1.00.0030.00617.38
8.0.300.0060.00318.77
8.0.290.0060.00316.74
8.0.280.0000.00718.30
8.0.270.0040.00417.26
8.0.260.0080.00016.92
8.0.250.0000.00716.95
8.0.240.0070.00016.95
8.0.230.0000.00716.83
8.0.220.0030.00316.86
8.0.210.0000.00716.93
8.0.200.0030.00316.86
8.0.190.0030.00516.91
8.0.180.0060.00316.93
8.0.170.0000.00716.95
8.0.160.0030.00316.93
8.0.150.0000.00716.84
8.0.140.0000.00716.74
8.0.130.0030.00313.32
8.0.120.0000.00816.88
8.0.110.0000.00716.83
8.0.100.0000.00716.74
8.0.90.0000.00816.92
8.0.80.0140.00616.84
8.0.70.0040.00416.87
8.0.60.0080.00016.79
8.0.50.0000.00716.79
8.0.30.0060.01017.08
8.0.20.0120.00617.40
8.0.10.0050.00316.91
8.0.00.0120.00616.61
7.4.330.0000.00515.55
7.4.320.0000.00616.45
7.4.300.0030.00316.42
7.4.290.0060.00316.60
7.4.280.0040.00416.52
7.4.270.0030.00316.52
7.4.260.0000.00513.30
7.4.250.0040.00416.48
7.4.240.0070.00016.55
7.4.230.0040.00416.68
7.4.220.0100.01016.62
7.4.210.0030.01016.53
7.4.200.0000.00716.49
7.4.160.0140.00216.46
7.4.150.0110.00617.40
7.4.140.0110.00917.86
7.4.130.0060.01816.63
7.4.120.0140.00916.46
7.4.110.0140.00416.59
7.4.100.0090.01216.43
7.4.90.0100.00716.48
7.4.80.0090.00619.39
7.4.70.0090.00616.46
7.4.60.0100.01016.51
7.4.50.0030.01416.55
7.4.40.0100.00716.23
7.4.30.0220.00016.47
7.4.00.0030.01314.97
7.3.330.0040.00413.27
7.3.320.0020.00213.27
7.3.310.0000.00716.06
7.3.300.0050.00316.10
7.3.290.0050.01116.20
7.3.280.0110.00516.21
7.3.270.0150.00417.40
7.3.260.0050.01316.39
7.3.250.0100.00816.39
7.3.240.0090.01116.29
7.3.230.0150.00316.30
7.3.210.0080.00816.47
7.3.200.0090.00916.19
7.3.190.0100.00716.14
7.3.180.0030.01316.36
7.3.170.0060.01116.59
7.3.160.0030.01316.48
7.3.120.0060.01114.83
7.3.110.0060.01114.71
7.3.100.0080.00714.98
7.3.90.0020.01214.89
7.3.80.0030.01014.82
7.3.70.0050.00714.65
7.3.60.0050.00614.73
7.3.50.0100.00314.78
7.3.40.0030.00714.55
7.3.30.0040.01114.55
7.3.20.0060.00516.55
7.3.10.0040.00816.37
7.3.00.0110.00416.52
7.2.330.0070.01116.40
7.2.320.0110.00616.41
7.2.310.0100.00716.34
7.2.300.0030.01416.32
7.2.290.0140.00316.55
7.2.250.0090.00915.09
7.2.240.0110.00914.80
7.2.230.0100.00515.25
7.2.220.0030.00714.93
7.2.210.0060.00714.68
7.2.200.0040.00914.74
7.2.190.0050.00514.78
7.2.180.0020.01014.94
7.2.170.0030.01114.96
7.2.60.0090.00616.77
7.2.00.0110.00618.35
7.1.330.0080.00515.71
7.1.320.0060.00815.70
7.1.310.0070.00515.51
7.1.300.0050.01015.69
7.1.290.0020.01115.77
7.1.280.0060.00815.67
7.1.270.0050.00915.66
7.1.260.0030.00815.83
7.1.200.0200.00415.34
7.1.100.0000.01118.27
7.1.70.0000.01117.17
7.1.60.2970.02033.15
7.1.50.2400.02033.02
7.1.40.2370.01032.41
7.1.30.3830.02032.72
7.1.20.2800.01732.54
7.1.10.2630.01014.52
7.1.00.1870.01014.92
7.0.200.3500.00715.00
7.0.190.2870.01314.83
7.0.180.2770.01014.30
7.0.170.3630.01014.31
7.0.160.3530.01014.23
7.0.150.2200.00714.27
7.0.140.2070.01314.58
7.0.130.1000.01014.81
7.0.120.1870.01714.57
7.0.110.2330.01314.63
7.0.100.1570.01714.63
7.0.90.1600.01314.09
7.0.80.1670.01014.49
7.0.70.1870.00714.55
7.0.60.1200.01314.20
7.0.50.1400.01014.48
7.0.40.1430.01314.31
7.0.30.1500.01014.64
7.0.20.1730.02014.73
7.0.10.1670.01014.30
7.0.00.1170.01714.66

preferences:
61.94 ms | 400 KiB | 5 Q