3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array("apples", "oranges", "plums"); $nu = array_map( "do_something", $array); function do_something($item) { if($item == 'plums') { $item = 's'; } return $item; } var_dump($nu); ?>

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.0120.00616.63
8.3.50.0120.00721.99
8.3.40.0090.00618.49
8.3.30.0070.00718.56
8.3.20.0000.00720.07
8.3.10.0050.00320.40
8.3.00.0040.00423.66
8.2.180.0060.00816.38
8.2.170.0200.00022.96
8.2.160.0110.00422.19
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0030.00520.52
8.2.120.0050.00326.35
8.2.110.0000.00919.33
8.2.100.0120.00017.80
8.2.90.0040.00419.23
8.2.80.0040.00417.97
8.2.70.0000.00817.25
8.2.60.0000.00817.91
8.2.50.0040.00418.09
8.2.40.0030.00622.18
8.2.30.0050.00319.25
8.2.20.0050.00317.49
8.2.10.0040.00418.11
8.2.00.0050.00218.03
8.1.280.0070.00725.92
8.1.270.0060.00322.14
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0070.00322.48
8.1.230.0060.00617.70
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0000.00917.23
8.1.190.0040.00417.35
8.1.180.0000.00918.10
8.1.170.0000.00818.71
8.1.160.0000.00720.77
8.1.150.0040.00418.83
8.1.140.0000.00819.45
8.1.130.0000.00717.69
8.1.120.0040.00417.45
8.1.110.0000.00917.43
8.1.100.0040.00417.46
8.1.90.0080.00017.52
8.1.80.0050.00317.49
8.1.70.0040.00417.40
8.1.60.0080.00017.46
8.1.50.0060.00317.52
8.1.40.0030.00517.50
8.1.30.0060.00317.58
8.1.20.0000.00817.53
8.1.10.0040.00417.30
8.1.00.0040.00417.23
8.0.300.0070.00018.77
8.0.290.0000.00716.63
8.0.280.0030.00318.28
8.0.270.0050.00317.14
8.0.260.0000.00717.05
8.0.250.0040.00416.79
8.0.240.0040.00416.92
8.0.230.0070.00016.90
8.0.220.0030.00316.72
8.0.210.0060.00316.80
8.0.200.0000.00616.77
8.0.190.0080.00016.78
8.0.180.0030.00616.85
8.0.170.0060.00316.85
8.0.160.0000.01016.73
8.0.150.0040.00416.70
8.0.140.0000.00716.79
8.0.130.0070.00013.27
8.0.120.0040.00416.68
8.0.110.0080.00016.80
8.0.100.0050.00316.70
8.0.90.0000.00716.85
8.0.80.0160.00616.74
8.0.70.0000.00816.61
8.0.60.0000.00716.92
8.0.50.0080.00016.85
8.0.30.0100.01017.13
8.0.20.0110.00717.40
8.0.10.0040.00416.99
8.0.00.0110.00816.67
7.4.330.0030.00316.79
7.4.320.0000.00616.64
7.4.300.0060.00016.61
7.4.290.0070.00016.50
7.4.280.0000.00716.55
7.4.270.0060.00016.40
7.4.260.0070.00016.57
7.4.250.0040.00416.46
7.4.240.0000.00716.44
7.4.230.0060.00016.50
7.4.220.0140.00916.61
7.4.210.0120.00516.50
7.4.200.0000.00716.68
7.4.160.0110.00616.37
7.4.150.0090.00917.40
7.4.140.0070.01017.86
7.4.130.0100.00716.40
7.4.120.0080.01116.31
7.4.110.0330.02316.50
7.4.100.0070.01016.61
7.4.90.0060.01216.36
7.4.80.0070.01019.39
7.4.70.0070.01016.36
7.4.60.0110.00716.37
7.4.50.0030.01316.36
7.4.40.0110.00716.59
7.4.30.0130.00816.55
7.4.00.0120.00615.02
7.3.330.0050.00013.20
7.3.320.0030.00313.21
7.3.310.0070.00016.05
7.3.300.0030.00316.24
7.3.290.0000.00716.11
7.3.280.0060.00816.22
7.3.270.0130.00417.40
7.3.260.0120.00616.36
7.3.250.0130.00916.27
7.3.240.0100.00816.35
7.3.230.0140.00816.39
7.3.210.0070.01016.57
7.3.200.0130.01016.35
7.3.190.0080.00816.31
7.3.180.0150.00416.41
7.3.170.0070.01316.32
7.3.160.0060.00916.45
7.2.330.0150.00316.65
7.2.320.0060.01316.32
7.2.310.0120.01216.57
7.2.300.0130.00316.57
7.2.290.0090.01216.47
7.1.70.0080.00017.14
7.1.60.0090.01619.40
7.1.50.0210.01734.80
7.1.00.0100.07022.54
7.0.200.0510.00614.26
7.0.60.0230.08019.87
7.0.50.0030.08717.95
7.0.40.0070.05320.20
7.0.30.0270.08020.08
7.0.20.0200.06320.09
7.0.10.0000.09720.12
7.0.00.0130.07020.25
5.6.280.0030.04021.07
5.6.210.0000.09320.77
5.6.200.0130.07018.19
5.6.190.0100.07020.48
5.6.180.0200.04020.52
5.6.170.0370.07720.52
5.6.160.0100.03720.61
5.6.150.0070.07318.17
5.6.140.0030.09018.14
5.6.130.0130.04018.25
5.6.120.0030.04020.99
5.6.110.0030.08320.98
5.6.100.0100.05020.98
5.6.90.0070.08321.13
5.6.80.0100.07720.38
5.5.350.0100.07020.43
5.5.340.0100.08318.00
5.5.330.0000.04320.44
5.5.320.0530.07320.32
5.5.310.0270.05320.37
5.5.300.0100.03317.97
5.5.290.0030.04018.07
5.5.280.0030.08720.96
5.5.270.0070.04020.87
5.5.260.0100.08320.93
5.5.250.0030.04320.61
5.5.240.0270.08020.26

preferences:
56.19 ms | 401 KiB | 5 Q