3v4l.org

run code in 300+ PHP versions simultaneously
<?php function arrayTest($key) { return '1' . $key; } $arr = array('a', 'b', 'c', 'd'); $arrTwo = array_map('arrayTest', $arr); print_r($arr); print_r($arrTwo);

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.0000.01518.31
8.3.50.0000.01518.05
8.3.40.0080.00818.71
8.3.30.0100.00318.86
8.3.20.0000.00720.00
8.3.10.0080.00023.66
8.3.00.0040.00419.15
8.2.180.0060.01218.11
8.2.170.0070.00722.96
8.2.160.0160.00322.11
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0020.00526.16
8.2.120.0000.00820.93
8.2.110.0090.00019.33
8.2.100.0090.00317.91
8.2.90.0040.00417.75
8.2.80.0040.00418.82
8.2.70.0080.00017.90
8.2.60.0040.00418.09
8.2.50.0030.00518.10
8.2.40.0000.00719.05
8.2.30.0040.00419.24
8.2.20.0070.00017.73
8.2.10.0000.00718.12
8.2.00.0000.00717.61
8.1.280.0090.00625.92
8.1.270.0040.00418.83
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0000.00822.06
8.1.230.0070.00418.93
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0040.00417.36
8.1.190.0000.00917.13
8.1.180.0070.00018.10
8.1.170.0080.00018.48
8.1.160.0000.00719.01
8.1.150.0060.00318.92
8.1.140.0030.00417.39
8.1.130.0040.00417.73
8.1.120.0000.00717.40
8.1.110.0040.00417.38
8.1.100.0030.00417.34
8.1.90.0040.00417.38
8.1.80.0080.00017.28
8.1.70.0000.00717.38
8.1.60.0040.00417.57
8.1.50.0000.00817.49
8.1.40.0040.00417.45
8.1.30.0000.00817.59
8.1.20.0000.00717.44
8.1.10.0070.00017.51
8.1.00.0070.00017.44
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0030.00318.35
8.0.270.0040.00417.19
8.0.260.0000.00817.16
8.0.250.0070.00016.83
8.0.240.0000.00616.85
8.0.230.0070.00016.95
8.0.220.0070.00016.75
8.0.210.0040.00216.77
8.0.200.0000.00616.81
8.0.190.0030.00616.94
8.0.180.0020.00516.92
8.0.170.0040.00416.78
8.0.160.0000.00716.87
8.0.150.0030.00316.91
8.0.140.0000.00716.81
8.0.130.0030.00313.19
8.0.120.0080.00016.72
8.0.110.0040.00416.98
8.0.100.0070.00016.92
8.0.90.0070.00016.64
8.0.80.0070.01016.83
8.0.70.0040.00416.68
8.0.60.0030.00516.72
8.0.50.0080.00016.69
8.0.30.0120.00917.02
8.0.20.0130.00817.40
8.0.10.0040.00416.86
8.0.00.0110.00716.85
7.4.330.0000.00615.03
7.4.320.0060.00016.39
7.4.300.0030.00316.43
7.4.290.0050.00316.41
7.4.280.0040.00416.55
7.4.270.0000.00616.33
7.4.260.0030.00616.42
7.4.250.0040.00416.47
7.4.240.0020.00516.46
7.4.230.0000.00716.51
7.4.220.0070.01416.40
7.4.210.0130.00716.55
7.4.200.0040.00416.28
7.4.160.0030.01216.56
7.4.150.0130.00817.40
7.4.140.0080.01417.86
7.4.130.0070.01016.43
7.4.120.0080.01016.36
7.4.110.0100.01016.35
7.4.100.0150.00716.30
7.4.90.0120.00616.38
7.4.80.0070.01819.39
7.4.70.0030.01316.44
7.4.60.0130.00516.46
7.4.50.0000.00816.55
7.4.40.0100.01016.29
7.4.30.0120.00616.33
7.4.00.0030.01414.86
7.3.330.0000.00613.21
7.3.320.0000.00513.05
7.3.310.0000.00716.16
7.3.300.0000.00716.09
7.3.290.0090.00916.16
7.3.280.0110.00516.20
7.3.270.0040.01317.40
7.3.260.0090.01316.16
7.3.250.0100.01116.36
7.3.240.0150.00616.52
7.3.230.0040.01316.46
7.3.210.0110.00816.48
7.3.200.0100.01219.39
7.3.190.0160.00316.51
7.3.180.0090.00616.41
7.3.170.0120.00916.27
7.3.160.0090.00616.41
7.3.10.0060.00816.20
7.3.00.0000.01316.11
7.2.330.0090.00916.38
7.2.320.0130.00916.34
7.2.310.0100.00716.57
7.2.300.0120.00616.40
7.2.290.0030.01516.53
7.2.130.0070.00716.59
7.2.120.0110.00016.51
7.2.110.0100.01016.46
7.2.100.0040.00816.74
7.2.90.0030.00916.59
7.2.80.0110.00016.51
7.2.70.0120.00016.92
7.2.60.0000.01616.58
7.2.50.0040.00816.28
7.2.40.0100.00716.62
7.2.30.0080.00816.43
7.2.20.0000.01016.73
7.2.10.0070.00716.43
7.2.00.0010.01017.95
7.1.250.0040.00815.46
7.1.100.0000.01217.73
7.1.70.0000.00716.89
7.1.60.0060.01919.22
7.1.50.0100.01416.88
7.1.00.0070.07322.33
7.0.200.0070.00016.83
7.0.140.0070.06721.92
7.0.60.0070.07319.75
7.0.50.0100.07717.90
7.0.40.0030.04320.30
7.0.30.0270.04720.07
7.0.20.0270.04720.20
7.0.10.0030.08320.23
7.0.00.0030.04320.14
5.6.280.0100.08721.07
5.6.210.0070.03720.67
5.6.200.0070.04018.29
5.6.190.0070.06320.69
5.6.180.0530.06320.47
5.6.170.0330.05720.52
5.6.160.0170.07020.54
5.6.150.0000.09318.18
5.6.140.0070.03718.18
5.6.130.0030.04718.18
5.6.120.0130.07720.97
5.6.110.0070.04021.04
5.6.100.0130.07721.13
5.6.90.0000.04321.11
5.6.80.0070.08020.52
5.5.350.0170.03320.36
5.5.340.0070.06718.08
5.5.330.0100.04320.40
5.5.320.0230.04320.37
5.5.310.0270.04720.42
5.5.300.0130.06317.99
5.5.290.0030.08318.08
5.5.280.0100.05320.84
5.5.270.0070.05020.86
5.5.260.0030.09020.79
5.5.250.0170.07320.71
5.5.240.0000.07720.15
5.4.450.0630.06019.20
5.4.440.0730.06719.55
5.4.430.0570.06319.57
5.4.420.0030.06019.48
5.4.410.0730.05719.38
5.4.400.0900.05319.26
5.4.390.0470.04318.47
5.4.380.0230.07018.80
5.4.370.0430.04318.71
5.4.360.0370.05318.75
5.4.350.0370.04718.72
5.4.340.0330.06018.57
5.4.320.0230.07718.68
5.4.310.0430.05018.61
5.4.300.0270.06018.75
5.4.290.0300.05018.49
5.4.280.0470.05018.57
5.4.270.0300.05318.76
5.4.260.0400.05318.77
5.4.250.0430.04718.62
5.4.240.0230.05718.76
5.4.230.0330.05018.75
5.4.220.0500.05018.61
5.4.210.0170.06718.69
5.4.200.0300.05316.55
5.4.190.0500.04018.54
5.4.180.0330.05318.72
5.4.170.0330.06318.70
5.4.160.0200.05318.66
5.4.150.0270.05318.80
5.4.140.0170.06316.18
5.4.130.0500.05316.30
5.4.120.0300.06316.23
5.4.110.0500.06016.31
5.4.100.0330.05716.29
5.4.90.0430.05016.27
5.4.80.0230.07316.30
5.4.70.0400.07016.41
5.4.60.0430.05716.39
5.4.50.0300.05316.23
5.4.40.0270.05716.23
5.4.30.0400.04716.20
5.4.20.0400.04716.16
5.4.10.0300.05316.16
5.4.00.0400.04015.74
5.3.290.0370.06014.78
5.3.280.0370.05014.71
5.3.270.0430.05314.63
5.3.260.0370.06014.73
5.3.250.0230.06314.82
5.3.240.0430.06014.63
5.3.230.0270.05014.62
5.3.220.0300.06014.75
5.3.210.0430.04314.55
5.3.200.0370.06014.61
5.3.190.0230.05714.58
5.3.180.0230.05314.66
5.3.170.0270.05714.54
5.3.160.0230.06014.69
5.3.150.0270.06014.67
5.3.140.0570.04714.58
5.3.130.0300.06014.71
5.3.120.0400.04314.57
5.3.110.0200.06314.73
5.3.100.0230.05314.03
5.3.90.0300.05714.04
5.3.80.0370.06014.22
5.3.70.0430.04714.05
5.3.60.0370.05714.05
5.3.50.0430.07013.99
5.3.40.0370.05013.99
5.3.30.0270.06014.13
5.3.20.0300.05313.81
5.3.10.0370.04013.71
5.3.00.0370.05313.69
5.2.170.0330.04311.35
5.2.160.0300.04311.22
5.2.150.0200.05011.17
5.2.140.0230.04311.17
5.2.130.0370.04011.16
5.2.120.0330.04311.22
5.2.110.0370.04011.14
5.2.100.0370.04011.20
5.2.90.0230.04711.22
5.2.80.0300.03311.09
5.2.70.0270.04011.09
5.2.60.0270.05311.27
5.2.50.0370.03711.01
5.2.40.0230.04311.12
5.2.30.0200.05311.09
5.2.20.0400.03011.00
5.2.10.0300.04311.08
5.2.00.0400.03310.92
5.1.60.0300.04310.12
5.1.50.0200.05310.09
5.1.40.0300.04310.04
5.1.30.0300.04310.36
5.1.20.0230.05310.47
5.1.10.0300.03710.25
5.1.00.0400.04310.14
5.0.50.0130.0338.75
5.0.40.0170.0338.46
5.0.30.0100.0578.22
5.0.20.0070.0438.18
5.0.10.0200.0238.25
5.0.00.0270.0378.20
4.4.90.0030.0275.95
4.4.80.0070.0235.86
4.4.70.0070.0235.91
4.4.60.0130.0235.92
4.4.50.0100.0235.88
4.4.40.0100.0375.89
4.4.30.0100.0205.98
4.4.20.0170.0205.93
4.4.10.0130.0205.93
4.4.00.0200.0335.93
4.3.110.0100.0235.86
4.3.100.0100.0335.90
4.3.90.0170.0235.80
4.3.80.0100.0375.88
4.3.70.0030.0275.80
4.3.60.0130.0205.80
4.3.50.0100.0305.87
4.3.40.0100.0335.77
4.3.30.0030.0234.60
4.3.20.0130.0174.54
4.3.10.0070.0204.53
4.3.00.0100.0207.30

preferences:
49.22 ms | 400 KiB | 5 Q