3v4l.org

run code in 300+ PHP versions simultaneously
<?php class hello { public 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.70.0070.01116.63
8.3.60.0070.01018.30
8.3.50.0090.00917.33
8.3.40.0150.00018.38
8.3.30.0110.00418.34
8.3.20.0040.00421.92
8.3.10.0080.00021.91
8.3.00.0040.00420.96
8.2.180.0100.00718.18
8.2.170.0130.00322.96
8.2.160.0100.00322.16
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0030.00622.30
8.2.120.0040.00426.35
8.2.110.0040.00720.31
8.2.100.0080.00317.72
8.2.90.0030.00619.13
8.2.80.0000.00817.97
8.2.70.0030.00617.34
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0050.00322.14
8.2.30.0040.00421.04
8.2.20.0000.00718.13
8.2.10.0040.00417.98
8.2.00.0000.00718.21
8.1.280.0070.01125.92
8.1.270.0040.00422.06
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0060.00321.95
8.1.230.0000.01119.13
8.1.220.0080.00017.77
8.1.210.0060.00618.77
8.1.200.0040.01117.36
8.1.190.0030.00517.36
8.1.180.0060.00318.10
8.1.170.0000.00818.46
8.1.160.0040.00419.04
8.1.150.0000.00720.52
8.1.140.0000.00717.45
8.1.130.0070.00018.73
8.1.120.0000.01017.36
8.1.110.0040.00417.35
8.1.100.0000.00717.37
8.1.90.0040.00417.45
8.1.80.0050.00217.42
8.1.70.0020.00517.30
8.1.60.0000.00817.49
8.1.50.0000.00717.47
8.1.40.0060.00317.41
8.1.30.0000.00817.56
8.1.20.0080.00017.63
8.1.10.0080.00017.35
8.1.00.0040.00417.43
8.0.300.0000.00718.77
8.0.290.0050.00316.75
8.0.280.0030.00318.45
8.0.270.0000.00717.27
8.0.260.0030.00316.82
8.0.250.0000.00716.79
8.0.240.0040.00416.71
8.0.230.0040.00416.86
8.0.220.0030.00316.86
8.0.210.0040.00416.67
8.0.200.0070.00016.87
8.0.190.0040.00416.94
8.0.180.0040.00416.85
8.0.170.0000.00716.77
8.0.160.0070.00016.89
8.0.150.0020.00916.64
8.0.140.0000.00816.77
8.0.130.0080.00013.29
8.0.120.0000.00716.81
8.0.110.0000.00816.81
8.0.100.0050.00316.86
8.0.90.0090.00016.89
8.0.80.0100.01116.77
8.0.70.0000.00716.88
8.0.60.0040.00416.84
8.0.50.0000.00916.73
8.0.30.0080.00917.10
8.0.20.0090.01017.40
8.0.10.0000.00816.81
8.0.00.0110.01016.84
7.4.330.0000.00415.55
7.4.320.0060.00016.45
7.4.300.0000.00716.61
7.4.290.0000.00716.52
7.4.280.0040.00416.40
7.4.270.0030.00316.51
7.4.260.0070.00316.57
7.4.250.0040.00416.48
7.4.240.0000.00816.52
7.4.230.0030.00316.49
7.4.220.0060.01216.45
7.4.210.0070.00916.58
7.4.200.0030.00316.50
7.4.160.0110.00516.42
7.4.150.0060.01217.40
7.4.140.0120.00717.86
7.4.130.0110.00716.52
7.4.120.0090.01216.58
7.4.110.0060.01016.42
7.4.100.0000.01916.44
7.4.90.0090.00916.45
7.4.80.0070.01419.39
7.4.70.0080.00816.47
7.4.60.0060.01116.44
7.4.50.0030.01016.59
7.4.40.0030.01316.44
7.4.30.0130.01016.59
7.4.10.0080.01114.96
7.4.00.0040.01014.77
7.3.330.0050.00013.05
7.3.320.0000.00513.25
7.3.310.0040.00416.07
7.3.300.0000.00716.15
7.3.290.0000.00716.18
7.3.280.0080.00816.20
7.3.270.0070.01017.40
7.3.260.0130.00916.46
7.3.250.0100.01016.25
7.3.240.0060.01016.38
7.3.230.0110.00916.30
7.3.210.0080.00816.25
7.3.200.0140.00716.61
7.3.190.0080.00816.38
7.3.180.0070.01016.54
7.3.170.0120.00916.42
7.3.160.0090.00616.34
7.3.130.0100.00314.79
7.3.120.0110.00714.82
7.3.110.0060.01314.85
7.3.100.0080.00414.82
7.3.90.0070.00714.43
7.3.80.0000.00914.91
7.3.70.0040.00814.63
7.3.60.0070.00714.75
7.3.50.0060.00614.67
7.3.40.0090.00314.62
7.3.30.0090.00614.47
7.3.20.0030.00716.49
7.3.10.0070.00716.60
7.3.00.0060.00616.78
7.2.330.0070.01516.42
7.2.320.0060.01216.30
7.2.310.0100.01016.51
7.2.300.0060.01016.35
7.2.290.0060.00916.70
7.2.260.0110.00714.68
7.2.250.0030.01015.27
7.2.240.0060.00615.11
7.2.230.0070.00714.71
7.2.220.0030.01015.24
7.2.210.0090.00615.03
7.2.200.0130.00315.04
7.2.190.0030.01214.81
7.2.180.0100.00015.00
7.2.170.0040.00815.04
7.2.160.0100.00014.61
7.2.150.0070.00316.75
7.2.140.0030.01016.86
7.2.130.0060.00616.73
7.2.120.0060.00616.61
7.2.110.0070.01016.72
7.2.100.0070.00316.57
7.2.90.0070.01016.84
7.2.80.0120.00416.81
7.2.70.0070.00716.78
7.2.60.0120.00316.84
7.2.50.0120.00316.64
7.2.40.0180.00016.63
7.2.30.0030.01016.84
7.2.20.0030.01316.70
7.2.10.0030.01316.94
7.2.00.0070.00517.98
7.1.330.0080.00815.96
7.1.320.0060.00915.66
7.1.310.0070.00715.88
7.1.300.0100.00315.57
7.1.290.0060.00615.46
7.1.280.0040.00815.85
7.1.270.0150.00415.57
7.1.260.0110.00415.88
7.1.250.0080.00315.86
7.1.240.0030.00615.70
7.1.230.0070.00715.79
7.1.220.0060.00915.62
7.1.210.0090.00315.75
7.1.200.0030.01215.51
7.1.190.0110.00315.70
7.1.180.0030.00615.72
7.1.170.0030.01315.66
7.1.160.0060.01215.73
7.1.150.0040.00815.75
7.1.140.0030.00815.64
7.1.130.0030.01015.73
7.1.120.0000.01115.89
7.1.110.0040.01215.74
7.1.100.0050.00616.76
7.1.90.0070.00315.78
7.1.80.0000.01015.66
7.1.70.0000.01216.22
7.1.60.0230.01224.61
7.1.50.0230.01024.37
7.1.40.0280.00524.24
7.1.30.0250.01024.22
7.1.20.0290.00924.31
7.1.10.0130.00815.25
7.1.00.0190.00715.20
7.0.330.0040.01115.33
7.0.320.0090.00615.32
7.0.310.0110.00415.48
7.0.300.0070.00715.27
7.0.290.0100.00315.36
7.0.280.0080.00415.48
7.0.270.0030.00915.59
7.0.260.0040.00815.21
7.0.250.0000.01315.61
7.0.240.0030.01415.34
7.0.230.0030.00915.40
7.0.220.0030.01215.15
7.0.210.0030.01315.13
7.0.200.0220.00515.07
7.0.190.0180.00715.08
7.0.180.0200.00714.87
7.0.170.0220.01514.87
7.0.160.0160.00814.92
7.0.150.0180.00814.85
7.0.140.0130.01114.83
7.0.130.0140.00715.17
7.0.120.0230.01115.05
7.0.110.0180.00914.73
7.0.100.0140.01114.96
7.0.90.0180.00814.81
7.0.80.0380.01014.89
7.0.70.0200.00514.85
7.0.60.0250.00514.89
7.0.50.0200.00914.97
7.0.40.0180.00714.17
7.0.30.0190.00914.12
7.0.20.0200.01014.05
7.0.10.0200.01514.10
7.0.00.0170.01013.96
5.6.400.0070.00714.18
5.6.390.0090.00014.31
5.6.380.0030.01314.21
5.6.370.0060.00314.11
5.6.360.0080.00314.49
5.6.350.0030.01014.20
5.6.340.0040.00814.49
5.6.330.0030.01014.08
5.6.320.0060.00614.18
5.6.310.0040.01514.64
5.6.300.0000.00914.03
5.6.290.0000.01414.21
5.6.280.0090.00314.46
5.6.270.0060.00814.02
5.6.260.0090.00914.41
5.6.250.0030.00614.28
5.6.240.0030.00714.23
5.6.230.0070.00714.27
5.6.220.0030.00814.30
5.6.210.0070.00714.29
5.6.200.0000.01514.31
5.6.190.0070.01014.04
5.6.180.0090.00314.22
5.6.170.0030.00614.35
5.6.160.0090.00614.19
5.6.150.0080.00814.18
5.6.140.0000.01114.20
5.6.130.0030.00914.51
5.6.120.0040.01114.20
5.6.110.0110.00414.48
5.6.100.0110.00414.07
5.6.90.0070.00314.09
5.6.80.0030.01314.35
5.6.70.0060.00914.23
5.6.60.0040.01214.24
5.6.50.0000.01714.02
5.6.40.0040.01214.18
5.6.30.0040.01214.43
5.6.20.0040.01114.08
5.6.10.0060.00614.25
5.6.00.0070.00713.95

preferences:
47.17 ms | 401 KiB | 5 Q