3v4l.org

run code in 300+ PHP versions simultaneously
<?php class hello { function world($value) { return $value * 2; } } $test = [1, 2, 3]; $result = array_map('hello::world', $test); var_dump($result);

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.0070.01018.31
8.3.50.0070.00716.05
8.3.40.0090.00618.71
8.3.30.0030.01018.72
8.3.20.0000.00720.21
8.3.10.0070.00021.77
8.3.00.0080.00020.74
8.2.180.0070.00718.66
8.2.170.0030.01422.96
8.2.160.0100.00322.08
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0030.01222.26
8.2.120.0050.00226.35
8.2.110.0060.00320.17
8.2.100.0040.00817.80
8.2.90.0030.00519.04
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0000.00817.80
8.2.50.0040.00418.10
8.2.40.0030.00622.28
8.2.30.0000.00820.85
8.2.20.0000.00818.04
8.2.10.0000.00717.92
8.2.00.0000.00718.09
8.1.280.0070.01025.92
8.1.270.0040.00422.25
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00322.01
8.1.230.0000.01119.10
8.1.220.0030.00717.78
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0000.00817.23
8.1.180.0070.00318.10
8.1.170.0040.00418.46
8.1.160.0000.00719.02
8.1.150.0040.00418.79
8.1.140.0070.00019.41
8.1.130.0000.00718.81
8.1.120.0060.00317.44
8.1.110.0000.00717.44
8.1.100.0040.00417.41
8.1.90.0000.00817.36
8.1.80.0040.00417.45
8.1.70.0070.00017.36
8.1.60.0030.00517.47
8.1.50.0080.00017.41
8.1.40.0060.00317.46
8.1.30.0040.00417.71
8.1.20.0060.00317.47
8.1.10.0000.00817.45
8.1.00.0070.00017.48
8.0.300.0080.00018.77
8.0.290.0000.00716.75
8.0.280.0080.00018.27
8.0.270.0070.00017.24
8.0.260.0000.00616.76
8.0.250.0050.00216.95
8.0.240.0030.00316.77
8.0.230.0030.00316.94
8.0.220.0000.00716.86
8.0.210.0040.00416.77
8.0.200.0040.00416.84
8.0.190.0000.00916.95
8.0.180.0030.00516.81
8.0.170.0000.00716.92
8.0.160.0040.00416.97
8.0.150.0090.00016.76
8.0.140.0000.00716.77
8.0.130.0050.00513.28
8.0.120.0000.00716.75
8.0.110.0040.00416.89
8.0.100.0000.00716.87
8.0.90.0040.00416.80
8.0.80.0060.01616.82
8.0.70.0040.00416.78
8.0.60.0000.00716.88
8.0.50.0040.00416.84
8.0.30.0150.00317.11
8.0.20.0110.01017.40
8.0.10.0090.00016.89
8.0.00.0090.00916.72
7.4.330.0030.00315.55
7.4.320.0000.00616.53
7.4.300.0000.00716.57
7.4.290.0070.00016.62
7.4.280.0040.00416.48
7.4.270.0000.00716.49
7.4.260.0040.00716.41
7.4.250.0000.00816.38
7.4.240.0070.00016.61
7.4.230.0000.00716.40
7.4.220.0100.01316.53
7.4.210.0090.00916.63
7.4.200.0050.00216.39
7.4.160.0070.00916.57
7.4.150.0090.00917.40
7.4.140.0080.00917.86
7.4.130.0060.01216.54
7.4.120.0120.00716.49
7.4.110.0110.00816.48
7.4.100.0060.01316.70
7.4.90.0030.01416.61
7.4.80.0120.00619.39
7.4.70.0130.00316.45
7.4.60.0100.01016.52
7.4.50.0120.00316.40
7.4.40.0160.00016.24
7.4.30.0060.01716.48
7.4.00.0050.01314.93
7.3.330.0060.00013.16
7.3.320.0030.00313.29
7.3.310.0050.00216.38
7.3.300.0030.00316.17
7.3.290.0000.00716.25
7.3.280.0100.00716.27
7.3.270.0100.00717.40
7.3.260.0120.00916.43
7.3.250.0150.00516.39
7.3.240.0080.00916.34
7.3.230.0070.01116.37
7.3.210.0030.01516.38
7.3.200.0090.00616.32
7.3.190.0060.01016.39
7.3.180.0060.00916.65
7.3.170.0030.01816.26
7.3.160.0030.01316.30
7.3.120.0070.01015.02
7.3.110.0120.00814.78
7.3.100.0040.01114.75
7.3.90.0110.00014.72
7.3.80.0090.00314.41
7.3.70.0060.00614.63
7.3.60.0040.01114.49
7.3.50.0060.00914.63
7.3.40.0040.01114.56
7.3.30.0040.00414.92
7.3.20.0000.00916.82
7.3.10.0060.01216.50
7.3.00.0070.00916.55
7.2.330.0070.01016.64
7.2.320.0120.00916.36
7.2.310.0100.01316.39
7.2.300.0180.00016.39
7.2.290.0090.00616.50
7.2.250.0100.01014.98
7.2.240.0130.00715.12
7.2.230.0040.01114.90
7.2.220.0040.00814.87
7.2.210.0090.00314.96
7.2.200.0040.00814.83
7.2.190.0030.00614.87
7.2.180.0060.00315.05
7.2.170.0070.00714.66
7.2.130.0100.01016.55
7.2.120.0110.00816.60
7.2.110.0090.00716.68
7.2.100.0080.00716.72
7.2.90.0130.00316.45
7.2.80.0100.00716.66
7.2.70.0110.00516.40
7.2.60.0130.00316.71
7.2.50.0050.01116.71
7.2.40.0080.00816.48
7.2.30.0130.00716.69
7.2.20.0120.00416.43
7.2.10.0080.00916.42
7.2.00.0070.00717.57
7.1.330.0060.00915.70
7.1.320.0030.00715.80
7.1.310.0050.00315.71
7.1.300.0090.00615.52
7.1.290.0040.00815.78
7.1.280.0030.00615.86
7.1.270.0000.01115.82
7.1.260.0080.00815.72
7.1.250.0070.00915.55
7.1.240.0130.00015.62
7.1.230.0030.00515.69
7.1.220.0040.00815.86
7.1.210.0090.00315.61
7.1.200.0090.00515.78
7.1.190.0000.01015.71
7.1.180.0040.00415.78
7.1.170.0030.00715.73
7.1.160.0100.00315.70
7.1.150.0000.00815.81
7.1.140.0060.00915.61
7.1.130.0060.00615.73
7.1.120.0090.00015.86
7.1.110.0080.00415.72
7.1.100.0040.00916.91
7.1.90.0060.00315.71
7.1.80.0070.00315.94
7.1.70.0060.00516.45
7.1.60.0370.00824.42
7.1.50.0220.01424.49
7.1.40.0310.00724.16
7.1.30.0310.00724.30
7.1.20.0370.01424.20
7.1.10.0180.00915.22
7.1.00.0180.00715.38
7.0.330.0000.01515.38
7.0.320.0060.00315.39
7.0.310.0090.00315.23
7.0.300.0070.00415.26
7.0.290.0070.01015.56
7.0.280.0090.00615.38
7.0.270.0070.00415.37
7.0.260.0060.00615.52
7.0.250.0030.00615.49
7.0.240.0060.00615.52
7.0.230.0100.00315.08
7.0.220.0000.01015.37
7.0.210.0040.01115.56
7.0.200.0230.00815.02
7.0.190.0440.00715.18
7.0.180.0200.00814.97
7.0.170.0290.00714.90
7.0.160.0180.00914.98
7.0.150.0080.00314.86
7.0.140.0160.00914.74
7.0.130.0220.00715.21
7.0.120.0180.01114.86
7.0.110.0050.00714.99
7.0.100.0250.01014.88
7.0.90.0160.00814.93
7.0.80.0170.00914.94
7.0.70.0050.00715.02
7.0.60.0150.01014.79
7.0.50.0200.00714.97
7.0.40.0200.00514.05
7.0.30.0380.01113.93
7.0.20.0220.00514.05
7.0.10.0190.00513.97
7.0.00.0150.01014.08
5.6.380.0100.00314.43

preferences:
40.21 ms | 400 KiB | 5 Q