3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'PHP', 'Arrays', 'Funções', ]; function hashtag($x){ return "#".$x; } $y = array_map(function ($v, $k){ return "#".$v.$k; }, $array); print_r($y);

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.0110.00418.30
8.3.50.0090.00922.05
8.3.40.0040.01118.98
8.3.30.0040.01118.66
8.3.20.0040.00423.48
8.3.10.0040.00421.66
8.3.00.0050.00319.26
8.2.180.0100.00318.41
8.2.170.0120.00322.96
8.2.160.0070.00720.58
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00818.03
8.2.120.0040.00426.35
8.2.110.0040.00722.11
8.2.100.0110.00017.91
8.2.90.0000.00817.63
8.2.80.0000.00918.34
8.2.70.0000.00917.93
8.2.60.0000.00818.09
8.2.50.0050.00318.10
8.2.40.0030.00520.60
8.2.30.0000.00719.14
8.2.20.0000.00818.16
8.2.10.0040.00418.05
8.2.00.0000.00717.68
8.1.280.0070.00725.92
8.1.270.0080.00020.24
8.1.260.0060.00326.35
8.1.250.0030.00528.09
8.1.240.0060.00323.96
8.1.230.0030.00819.17
8.1.220.0030.00617.74
8.1.210.0060.00318.77
8.1.200.0090.00017.35
8.1.190.0060.00317.22
8.1.180.0040.00418.10
8.1.170.0060.00318.76
8.1.160.0040.00418.90
8.1.150.0050.00320.32
8.1.140.0040.00419.59
8.1.130.0000.00819.06
8.1.120.0000.00717.47
8.1.110.0040.00417.39
8.1.100.0040.00417.38
8.1.90.0040.00417.42
8.1.80.0040.00417.43
8.1.70.0040.00417.50
8.1.60.0040.00417.62
8.1.50.0050.00317.57
8.1.40.0050.00317.58
8.1.30.0000.00817.66
8.1.20.0040.00417.55
8.1.10.0040.00417.55
8.1.00.0040.00417.50
8.0.300.0030.00619.65
8.0.290.0040.00416.75
8.0.280.0030.00318.43
8.0.270.0030.00317.11
8.0.260.0000.00717.18
8.0.250.0030.00316.84
8.0.240.0040.00416.98
8.0.230.0030.00316.97
8.0.220.0070.00016.77
8.0.210.0070.00016.93
8.0.200.0070.00017.05
8.0.190.0070.00417.04
8.0.180.0000.00816.86
8.0.170.0070.00016.98
8.0.160.0070.00016.96
8.0.150.0040.00416.77
8.0.140.0070.00016.89
8.0.130.0000.00613.38
8.0.120.0070.00016.95
8.0.110.0000.00716.74
8.0.100.0000.00716.95
8.0.90.0000.00816.91
8.0.80.0130.00516.84
8.0.70.0000.00716.92
8.0.60.0040.00416.84
8.0.50.0000.00716.82
8.0.30.0090.00816.99
8.0.20.0120.00717.40
8.0.10.0040.00417.07
8.0.00.0100.00716.72
7.4.330.0000.00415.55
7.4.320.0000.00616.61
7.4.300.0000.00616.59
7.4.290.0030.00316.54
7.4.280.0070.00016.48
7.4.270.0000.00716.64
7.4.260.0080.00316.50
7.4.250.0040.00416.57
7.4.240.0050.00216.52
7.4.230.0090.00016.59
7.4.220.0100.01016.71
7.4.210.0040.01116.46
7.4.200.0070.00016.60
7.4.160.0070.00816.50
7.4.150.0000.01917.40
7.4.140.0110.00917.86
7.4.130.0060.01116.59
7.4.120.0160.00716.47
7.4.110.0070.01116.42
7.4.100.0120.00716.51
7.4.90.0060.01216.50
7.4.80.0180.00319.39
7.4.70.0030.01416.64
7.4.60.0080.00816.65
7.4.50.0060.00616.67
7.4.40.0130.00316.57
7.4.30.0090.00616.45
7.4.00.0040.01214.86
7.3.330.0000.00513.37
7.3.320.0000.00513.16
7.3.310.0000.00716.15
7.3.300.0070.00016.31
7.3.290.0060.01016.24
7.3.280.0070.01116.33
7.3.270.0110.00717.40
7.3.260.0000.01816.38
7.3.250.0090.01116.40
7.3.240.0130.00616.47
7.3.230.0030.01216.34
7.3.210.0060.01216.38
7.3.200.0130.00316.39
7.3.190.0090.00916.32
7.3.180.0080.00816.43
7.3.170.0150.00016.30
7.3.160.0120.00416.43
7.2.330.0130.00316.65
7.2.320.0090.00916.59
7.2.310.0100.00716.37
7.2.300.0030.01816.70
7.2.290.0110.00716.51
7.2.60.0160.00616.71
7.2.50.0140.00016.91
7.2.00.0090.00319.10
7.1.200.0080.00415.83
7.1.70.0050.00317.26
7.1.60.0040.00717.19
7.1.50.0060.01616.63
7.1.10.0070.06022.18
7.1.00.0070.05722.36
7.0.200.0030.01316.55
7.0.150.0070.05721.89
7.0.140.0130.04721.89
7.0.130.0030.06021.86
7.0.120.0030.06021.86
7.0.110.0100.05321.86
7.0.100.0130.05021.83
7.0.90.0070.05721.77
7.0.80.0100.05321.87
7.0.70.0130.06321.84
7.0.60.0000.06021.84
7.0.50.0030.06021.86
7.0.40.0070.05721.93
7.0.30.0030.06021.85
7.0.20.0070.05721.87
7.0.10.0130.05021.80
7.0.00.0130.04721.80

preferences:
69.3 ms | 401 KiB | 5 Q