3v4l.org

run code in 300+ PHP versions simultaneously
<?php $factor = 10; // pre PHP 7.4 $nums = array_map(function($n) use ($factor) { return $n * $factor; }, [1,2,3,4]); var_dump($nums); // PHP 7.4 $nums = array_map(fn($n) => $n * $factor, [1, 2, 3, 4]); var_dump($nums);

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.4.10.0030.00619.58
8.3.140.0080.00016.69
8.3.130.0080.00016.78
8.3.120.0070.00320.80
8.3.110.0060.00320.94
8.3.100.0030.00718.35
8.3.90.0080.00026.77
8.3.80.0080.00019.36
8.3.70.0140.00716.75
8.3.60.0140.00418.14
8.3.50.0170.00623.56
8.3.40.0210.00018.75
8.3.30.0000.01418.63
8.3.20.0050.00320.66
8.3.10.0090.00021.92
8.3.00.0070.00021.73
8.2.260.0040.00416.51
8.2.250.0050.00316.68
8.2.240.0060.00318.77
8.2.230.0030.00522.58
8.2.220.0030.00624.06
8.2.210.0060.00326.77
8.2.200.0040.00418.88
8.2.190.0070.01416.58
8.2.180.0110.01118.21
8.2.170.0090.00622.96
8.2.160.0000.01422.15
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00721.07
8.2.110.0060.00320.41
8.2.100.0110.00017.80
8.2.90.0040.00417.75
8.2.80.0040.00418.73
8.2.70.0050.00517.93
8.2.60.0050.00318.09
8.2.50.0040.00418.10
8.2.40.0000.00821.03
8.2.30.0040.00419.25
8.2.20.0040.00417.96
8.2.10.0000.00719.22
8.2.00.0020.00519.31
8.1.300.0150.00015.73
8.1.290.0060.00330.84
8.1.280.0120.00625.92
8.1.270.0060.00320.82
8.1.260.0050.00326.35
8.1.250.0090.00028.09
8.1.240.0100.00023.86
8.1.230.0080.00322.13
8.1.220.0040.00417.78
8.1.210.0060.00318.77
8.1.200.0000.00817.23
8.1.190.0000.00817.35
8.1.180.0040.00418.95
8.1.170.0030.00718.48
8.1.160.0040.00419.02
8.1.150.0040.00419.08
8.1.140.0040.00420.68
8.1.130.0060.00320.31
8.1.120.0070.00017.44
8.1.110.0040.00417.36
8.1.100.0040.00417.51
8.1.90.0080.00017.35
8.1.80.0000.00817.47
8.1.70.0050.00217.35
8.1.60.0040.00417.55
8.1.50.0000.00917.55
8.1.40.0060.00317.48
8.1.30.0000.00917.59
8.1.20.0030.00517.63
8.1.10.0080.00017.54
8.1.00.0000.00817.38
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0030.00318.44
8.0.270.0030.00316.73
8.0.260.0000.00619.98
8.0.250.0060.00016.84
8.0.240.0000.00816.88
8.0.230.0030.00516.81
8.0.220.0040.00416.82
8.0.210.0070.00016.87
8.0.200.0030.00316.96
8.0.190.0000.00716.91
8.0.180.0000.00816.96
8.0.170.0030.00616.79
8.0.160.0040.00416.90
8.0.150.0000.00816.84
8.0.140.0080.00416.80
8.0.130.0000.00513.27
8.0.120.0050.00216.77
8.0.110.0040.00416.70
8.0.100.0040.00416.89
8.0.90.0090.00016.78
8.0.80.0070.00716.87
8.0.70.0030.00516.71
8.0.60.0040.00416.83
8.0.50.0040.00416.72
8.0.30.0150.00417.34
8.0.20.0060.01317.10
8.0.10.0080.00016.99
8.0.00.0120.00616.56
7.4.330.0060.00016.83
7.4.320.0030.00316.42
7.4.300.0000.00616.49
7.4.290.0040.00416.58
7.4.280.0030.00516.59
7.4.270.0070.00016.46
7.4.260.0050.00013.27
7.4.250.0040.00416.56
7.4.240.0050.00316.55
7.4.230.0090.00016.58
7.4.220.0020.00516.61
7.4.210.0090.01016.61
7.4.200.0030.00316.58
7.4.130.0120.00816.54
7.4.120.0030.01516.62
7.4.110.0080.00816.44
7.4.100.0130.01016.46
7.4.90.0030.01316.48
7.4.80.0000.01619.39
7.4.70.0090.00916.46
7.4.60.0060.01016.36
7.4.50.0100.00316.49
7.4.40.0090.00616.40
7.4.20.0080.01016.43
7.4.10.0090.00916.36
7.4.00.0090.00916.46
7.3.330.0000.00616.26
7.3.320.0030.00312.99
7.3.310.0030.00316.11
7.3.300.0060.00316.14
7.3.290.0100.00716.19
7.3.260.0100.00616.19
7.3.240.0130.00616.26
7.3.230.0120.00616.22
7.3.210.0100.01016.25
7.3.200.0090.01116.14
7.3.190.0030.01316.38
7.3.180.0060.01016.26
7.3.170.0030.01316.16
7.3.160.0140.00316.39
7.3.130.0080.00916.17
7.3.120.0090.00916.16
7.3.110.0080.00916.19
7.3.100.0100.00716.13
7.3.90.0070.00916.22
7.3.80.0080.01016.20
7.3.70.0080.00916.10
7.3.60.0060.01116.16
7.3.50.0090.01016.12
7.3.40.0070.01016.10
7.3.30.0070.00916.12
7.3.20.0070.01016.12
7.3.10.0080.01016.09
7.3.00.0090.00916.17
7.2.330.0060.01316.45
7.2.320.0050.01416.43
7.2.310.0120.00416.35
7.2.300.0070.01016.24
7.2.290.0110.01116.40
7.2.260.0080.01016.28
7.2.250.0100.00916.23
7.2.240.0060.01216.35
7.2.230.0100.00816.26
7.2.220.0100.00616.33
7.2.210.0110.00816.25
7.2.200.0090.01016.24
7.2.190.0090.00816.22
7.2.180.0090.00916.28
7.2.170.0100.00716.28
7.2.160.0080.00916.31
7.2.150.0080.00916.32
7.2.140.0090.00916.39
7.2.130.0080.01016.38
7.2.120.0100.00816.30
7.2.110.0100.00916.31
7.2.100.0100.00916.25
7.2.90.0090.00816.24
7.2.80.0090.00816.27
7.2.70.0090.00816.32
7.2.60.0090.00916.30
7.2.50.0100.00816.31
7.2.40.0100.00816.38
7.2.30.0090.00916.34
7.2.20.0090.00916.32
7.2.10.0080.01116.36
7.2.00.0110.00916.26

preferences:
31.49 ms | 403 KiB | 5 Q