3v4l.org

run code in 300+ PHP versions simultaneously
<?php class hello { static 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.0140.00318.43
8.3.50.0130.00716.19
8.3.40.0060.00918.97
8.3.30.0110.00418.84
8.3.20.0070.00020.34
8.3.10.0040.00421.76
8.3.00.0040.00420.75
8.2.180.0140.00318.54
8.2.170.0070.01022.96
8.2.160.0070.00722.12
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0000.00726.16
8.2.120.0000.00821.04
8.2.110.0070.00419.40
8.2.100.0050.00517.84
8.2.90.0000.00819.04
8.2.80.0040.00418.04
8.2.70.0000.00817.50
8.2.60.0070.00017.93
8.2.50.0070.00018.10
8.2.40.0090.00022.20
8.2.30.0050.00321.03
8.2.20.0000.00718.00
8.2.10.0080.00018.05
8.2.00.0040.00418.11
8.1.280.0070.01425.92
8.1.270.0080.00022.25
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00022.75
8.1.230.0100.00019.02
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0120.00017.35
8.1.190.0000.00817.23
8.1.180.0030.00618.10
8.1.170.0050.00318.54
8.1.160.0030.00319.04
8.1.150.0000.00718.73
8.1.140.0040.00419.39
8.1.130.0000.00718.73
8.1.120.0040.00417.44
8.1.110.0030.00617.41
8.1.100.0040.00417.30
8.1.90.0000.00717.39
8.1.80.0040.00417.29
8.1.70.0030.00317.44
8.1.60.0080.00017.40
8.1.50.0080.00017.51
8.1.40.0030.00517.40
8.1.30.0060.00317.67
8.1.20.0040.00417.66
8.1.10.0050.00317.45
8.1.00.0030.00617.48
8.0.300.0040.00418.77
8.0.290.0050.00216.63
8.0.280.0030.00318.38
8.0.270.0030.00317.18
8.0.260.0080.00016.81
8.0.250.0040.00416.95
8.0.240.0070.00016.72
8.0.230.0030.00316.97
8.0.220.0070.00016.82
8.0.210.0000.00716.89
8.0.200.0080.00016.98
8.0.190.0040.00416.95
8.0.180.0030.00516.90
8.0.170.0000.00716.93
8.0.160.0000.00716.78
8.0.150.0090.00316.86
8.0.140.0030.00316.69
8.0.130.0050.00313.37
8.0.120.0040.00416.84
8.0.110.0000.00716.84
8.0.100.0030.00616.69
8.0.90.0080.00016.90
8.0.80.0060.00916.88
8.0.70.0040.00416.94
8.0.60.0030.00516.79
8.0.50.0040.00416.77
8.0.30.0120.00916.98
8.0.20.0100.00817.40
8.0.10.0000.00817.01
8.0.00.0090.01016.60
7.4.330.0020.00215.55
7.4.320.0000.00616.45
7.4.300.0000.00616.52
7.4.290.0070.00016.46
7.4.280.0080.00016.38
7.4.270.0030.00316.54
7.4.260.0030.00616.38
7.4.250.0030.00616.41
7.4.240.0080.00016.55
7.4.230.0070.00016.53
7.4.220.0100.01016.48
7.4.210.0100.00416.56
7.4.200.0030.00316.35
7.4.160.0060.00916.23
7.4.150.0110.00817.40
7.4.140.0100.00817.86
7.4.130.0100.01016.49
7.4.120.0070.01216.46
7.4.110.0110.00716.55
7.4.100.0030.01516.42
7.4.90.0130.00316.43
7.4.80.0120.01219.39
7.4.70.0170.00016.53
7.4.60.0100.00716.33
7.4.50.0110.00316.37
7.4.40.0080.00816.47
7.4.30.0070.01616.39
7.4.10.0080.01114.71
7.4.00.0070.00915.03
7.3.330.0000.00613.23
7.3.320.0050.00013.30
7.3.310.0050.00216.26
7.3.300.0000.00616.10
7.3.290.0030.00316.09
7.3.280.0070.01016.20
7.3.270.0090.01317.40
7.3.260.0160.00916.25
7.3.250.0110.01016.28
7.3.240.0060.01016.33
7.3.230.0200.00516.59
7.3.210.0150.00316.40
7.3.200.0090.00916.38
7.3.190.0090.00616.41
7.3.180.0140.00316.22
7.3.170.0120.00316.48
7.3.160.0030.01216.26
7.3.130.0060.01314.75
7.3.120.0110.00714.67
7.3.110.0070.01314.84
7.3.100.0060.00614.46
7.3.90.0040.00814.69
7.3.80.0110.00014.71
7.3.70.0030.00814.74
7.3.60.0060.00614.50
7.3.50.0000.01614.74
7.3.40.0080.00414.74
7.3.30.0120.00314.55
7.3.20.0060.00816.63
7.3.10.0060.00616.65
7.3.00.0070.00716.70
7.2.330.0110.00916.41
7.2.320.0030.01316.60
7.2.310.0100.00816.48
7.2.300.0090.00916.57
7.2.290.0100.00716.38
7.2.260.0170.00314.82
7.2.250.0070.01114.89
7.2.240.0000.01814.65
7.2.230.0070.01315.07
7.2.220.0070.01114.89
7.2.210.0030.00714.65
7.2.200.0000.01614.63
7.2.190.0070.00714.85
7.2.180.0100.00014.61
7.2.170.0130.00014.98
7.2.160.0030.01414.96
7.2.150.0040.00416.72
7.2.140.0030.00916.84
7.2.130.0030.01016.71
7.2.120.0120.00516.61
7.2.110.0030.01016.93
7.2.100.0030.01416.86
7.2.90.0090.00616.86
7.2.80.0050.00516.82
7.2.70.0060.00916.94
7.2.60.0080.00816.68
7.2.50.0060.00316.89
7.2.40.0080.00816.93
7.2.30.0030.01316.75
7.2.20.0040.01216.61
7.2.10.0060.00916.87
7.2.00.0020.00918.07
7.1.330.0100.00315.90
7.1.320.0000.01515.88
7.1.310.0000.00815.88
7.1.300.0030.00715.78
7.1.290.0000.01515.72
7.1.280.0040.01115.68
7.1.270.0030.00515.79
7.1.260.0030.00915.65
7.1.250.0000.01315.70
7.1.240.0040.00415.96
7.1.230.0040.01115.79
7.1.220.0030.00715.77
7.1.210.0060.00915.68
7.1.200.0030.01215.78
7.1.190.0060.00915.62
7.1.180.0050.00915.64
7.1.170.0000.01115.56
7.1.160.0070.00715.63
7.1.150.0030.01015.42
7.1.140.0030.01315.85
7.1.130.0040.00415.71
7.1.120.0030.00715.75
7.1.110.0030.00915.93
7.1.100.0050.00916.80
7.1.90.0060.00615.46
7.1.80.0030.01215.56
7.1.70.0010.00616.45
7.1.60.0290.00724.47
7.1.50.0270.00924.17
7.1.40.0250.00724.08
7.1.30.0200.01324.11
7.1.20.0280.01224.19
7.1.10.0150.00715.19
7.1.00.0280.01215.20
7.0.330.0030.01015.13
7.0.320.0030.00715.03
7.0.310.0030.00715.30
7.0.300.0000.01315.28
7.0.290.0100.00315.27
7.0.280.0030.01215.38
7.0.270.0040.00815.39
7.0.260.0060.00615.29
7.0.250.0130.00315.40
7.0.240.0040.00415.13
7.0.230.0030.01315.23
7.0.220.0000.01415.11
7.0.210.0080.00015.43
7.0.200.0170.00815.11
7.0.190.0180.00715.03
7.0.180.0130.00714.61
7.0.170.0250.00214.96
7.0.160.0250.00914.72
7.0.150.0180.00614.99
7.0.140.0160.01014.76
7.0.130.0170.00714.97
7.0.120.0220.00514.91
7.0.110.0180.00814.76
7.0.100.0180.00914.83
7.0.90.0210.00614.91
7.0.80.0150.01014.99
7.0.70.0170.01114.74
7.0.60.0150.01114.65
7.0.50.0220.01314.78
7.0.40.0200.00513.99
7.0.30.0150.01014.05
7.0.20.0170.01013.79
7.0.10.0210.00514.07
7.0.00.0180.01013.94
5.6.400.0070.00714.38
5.6.390.0040.01114.05
5.6.380.0070.00413.96
5.6.370.0050.00514.23
5.6.360.0090.00614.15
5.6.350.0060.00614.16
5.6.340.0030.00614.09
5.6.330.0000.00914.15
5.6.320.0070.00414.55
5.6.310.0040.00814.41
5.6.300.0070.00714.36
5.6.290.0060.00914.29
5.6.280.0030.01314.32
5.6.270.0000.01714.16
5.6.260.0090.00614.14
5.6.250.0070.00714.17
5.6.240.0070.00714.48
5.6.230.0070.00314.42
5.6.220.0030.01214.21
5.6.210.0090.00614.39
5.6.200.0040.00714.30
5.6.190.0040.01114.22
5.6.180.0060.00314.15
5.6.170.0040.00414.07
5.6.160.0040.01214.32
5.6.150.0090.00613.99
5.6.140.0070.01114.27
5.6.130.0030.01614.09
5.6.120.0110.00714.19
5.6.110.0030.01114.09
5.6.100.0000.01514.37
5.6.90.0150.00314.09
5.6.80.0130.00314.02
5.6.70.0040.01114.19
5.6.60.0070.00714.02
5.6.50.0100.00713.84
5.6.40.0090.00614.03
5.6.30.0090.00614.02
5.6.20.0080.00614.08
5.6.10.0030.01013.95
5.6.00.0030.01014.13

preferences:
64.22 ms | 400 KiB | 5 Q