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.0150.00318.30
8.3.50.0100.00316.26
8.3.40.0060.00918.48
8.3.30.0150.00018.63
8.3.20.0070.00020.11
8.3.10.0050.00321.89
8.3.00.0050.00320.82
8.2.180.0070.00718.29
8.2.170.0030.01422.96
8.2.160.0080.00521.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00022.12
8.2.120.0040.00426.35
8.2.110.0030.00620.35
8.2.100.0110.00017.91
8.2.90.0090.00019.05
8.2.80.0000.00818.04
8.2.70.0000.00817.63
8.2.60.0000.00818.03
8.2.50.0070.00018.10
8.2.40.0050.00322.21
8.2.30.0060.00321.03
8.2.20.0000.00718.12
8.2.10.0040.00418.16
8.2.00.0040.00418.17
8.1.280.0160.00325.92
8.1.270.0050.00322.14
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00722.11
8.1.230.0080.00419.10
8.1.220.0030.00617.79
8.1.210.0000.00918.77
8.1.200.0060.00317.36
8.1.190.0040.00417.23
8.1.180.0030.00618.10
8.1.170.0080.00018.59
8.1.160.0040.00418.88
8.1.150.0000.00818.83
8.1.140.0070.00019.43
8.1.130.0070.00018.91
8.1.120.0040.00417.42
8.1.110.0030.00517.39
8.1.100.0070.00017.39
8.1.90.0070.00017.27
8.1.80.0000.00717.28
8.1.70.0040.00417.42
8.1.60.0040.00417.56
8.1.50.0040.00417.37
8.1.40.0030.00517.53
8.1.30.0000.00717.61
8.1.20.0040.00417.59
8.1.10.0040.00417.50
8.1.00.0040.00417.40
8.0.300.0070.00018.77
8.0.290.0080.00016.75
8.0.280.0000.00718.50
8.0.270.0040.00417.25
8.0.260.0000.00816.84
8.0.250.0060.00016.86
8.0.240.0030.00516.78
8.0.230.0030.00316.85
8.0.220.0040.00416.74
8.0.210.0070.00016.81
8.0.200.0000.00716.80
8.0.190.0040.00416.93
8.0.180.0070.00016.82
8.0.170.0070.00016.87
8.0.160.0000.00816.93
8.0.150.0040.00416.77
8.0.140.0000.00716.79
8.0.130.0030.00513.17
8.0.120.0000.00816.84
8.0.110.0070.00016.88
8.0.100.0000.00716.69
8.0.90.0030.00516.66
8.0.80.0070.01416.77
8.0.70.0070.00016.78
8.0.60.0000.00716.71
8.0.50.0000.00816.88
8.0.30.0110.00917.16
8.0.20.0120.00617.40
8.0.10.0000.00816.73
8.0.00.0050.01416.97
7.4.330.0050.00015.55
7.4.320.0030.00316.59
7.4.300.0060.00016.54
7.4.290.0000.00716.63
7.4.280.0050.00316.43
7.4.270.0000.00816.60
7.4.260.0040.00416.63
7.4.250.0030.00616.51
7.4.240.0050.00316.48
7.4.230.0000.00716.62
7.4.220.0130.01316.66
7.4.210.0010.01316.53
7.4.200.0000.00716.53
7.4.160.0060.01316.55
7.4.150.0060.01217.40
7.4.140.0140.00517.86
7.4.130.0030.01516.52
7.4.120.0120.00816.39
7.4.110.0130.00716.43
7.4.100.0160.00616.58
7.4.90.0130.00716.52
7.4.80.0090.00919.39
7.4.70.0080.00816.59
7.4.60.0130.01016.57
7.4.50.0030.01016.54
7.4.40.0200.01416.39
7.4.30.0120.00916.43
7.4.10.0140.00415.08
7.4.00.0060.00615.06
7.3.330.0000.00513.30
7.3.320.0020.00213.20
7.3.310.0000.00716.19
7.3.300.0030.00316.24
7.3.290.0030.00316.23
7.3.280.0080.00816.19
7.3.270.0140.00417.40
7.3.260.0140.00616.46
7.3.250.0100.01016.28
7.3.240.0090.00916.29
7.3.230.0130.00616.41
7.3.210.0100.00716.59
7.3.200.0090.00616.34
7.3.190.0080.00816.17
7.3.180.0100.00616.49
7.3.170.0000.01516.11
7.3.160.0100.00616.27
7.3.130.0070.01015.05
7.3.120.0080.01014.63
7.3.110.0120.00614.97
7.3.100.0000.01514.70
7.3.90.0070.01014.31
7.3.80.0060.00515.02
7.3.70.0100.00014.76
7.3.60.0100.00314.78
7.3.50.0040.01114.87
7.3.40.0080.00814.68
7.3.30.0070.00314.68
7.3.20.0060.00616.53
7.3.10.0110.00316.63
7.3.00.0080.00616.33
7.2.330.0060.01116.29
7.2.320.0060.01116.48
7.2.310.0060.01216.51
7.2.300.0070.01016.45
7.2.290.0130.00316.59
7.2.260.0090.00315.10
7.2.250.0090.00915.01
7.2.240.0070.00714.71
7.2.230.0000.00915.02
7.2.220.0070.01014.85
7.2.210.0070.00414.55
7.2.200.0100.00315.07
7.2.190.0040.01414.95
7.2.180.0050.00514.98
7.2.170.0090.00614.93
7.2.160.0040.01115.05
7.2.150.0060.00316.59
7.2.140.0030.01016.91
7.2.130.0070.01016.98
7.2.120.0100.00616.71
7.2.110.0070.00716.89
7.2.100.0070.00316.81
7.2.90.0110.00417.00
7.2.80.0080.00816.85
7.2.70.0060.00316.68
7.2.60.0070.00916.64
7.2.50.0060.01216.78
7.2.40.0030.01416.82
7.2.30.0030.01317.02
7.2.20.0060.01316.86
7.2.10.0040.01416.67
7.2.00.0020.01218.17
7.1.330.0000.00915.70
7.1.320.0030.00515.77
7.1.310.0000.01615.92
7.1.300.0070.00715.67
7.1.290.0070.00715.42
7.1.280.0000.01415.45
7.1.270.0090.00615.80
7.1.260.0040.01115.55
7.1.250.0070.00315.56
7.1.240.0070.00715.79
7.1.230.0060.00315.89
7.1.220.0060.00615.70
7.1.210.0040.01215.83
7.1.200.0070.00515.60
7.1.190.0080.00615.54
7.1.180.0000.00915.80
7.1.170.0070.00415.83
7.1.160.0000.01315.73
7.1.150.0120.00315.66
7.1.140.0080.00815.88
7.1.130.0080.00415.88
7.1.120.0030.00915.65
7.1.110.0030.00915.71
7.1.100.0020.01016.69
7.1.90.0000.01115.64
7.1.80.0090.00315.74
7.1.70.0030.00816.54
7.1.60.0030.00816.30
7.1.50.0020.01016.38
7.1.40.0040.00816.07
7.1.30.0140.00516.16
7.1.20.0110.00216.25
7.1.10.0090.00316.22
7.1.00.0110.00816.15
7.0.330.0030.00615.15
7.0.320.0040.01115.54
7.0.310.0110.00415.43
7.0.300.0060.00615.41
7.0.290.0000.01415.37
7.0.280.0060.00615.23
7.0.270.0060.00615.38
7.0.260.0040.00715.46
7.0.250.0000.01515.47
7.0.240.0030.00715.24
7.0.230.0060.00615.46
7.0.220.0030.00915.35
7.0.210.0060.00315.26
7.0.200.0070.00415.97
7.0.190.0130.00616.01
7.0.180.0050.00715.85
7.0.170.0030.00715.77
7.0.160.0020.00915.79
7.0.150.0050.00715.90
7.0.140.0020.01015.76
7.0.130.0040.00515.88
7.0.120.0180.00315.98
7.0.110.0040.00715.90
7.0.100.0080.00815.73
7.0.90.0090.00515.88
7.0.80.0060.00315.89
7.0.70.0060.00615.96
7.0.60.0000.01115.95
7.0.50.0080.00415.86
7.0.40.0050.00814.96
7.0.30.0080.00514.94
7.0.20.0020.00914.95
7.0.10.0020.01114.80
7.0.00.0020.00914.93
5.6.400.0030.00814.30
5.6.390.0030.01414.64
5.6.380.0100.00014.25
5.6.370.0060.00914.49
5.6.360.0060.00914.57
5.6.350.0070.00714.59
5.6.340.0000.01414.55
5.6.330.0030.01314.55
5.6.320.0100.00314.32
5.6.310.0100.00714.41
5.6.300.0060.00714.27
5.6.290.0030.01014.47
5.6.280.0060.00314.16
5.6.270.0070.00714.26
5.6.260.0060.00614.38
5.6.250.0030.01014.37
5.6.240.0060.00614.23
5.6.230.0090.00314.38
5.6.220.0000.00914.45
5.6.210.0030.00714.21
5.6.200.0030.01014.19
5.6.190.0120.00314.06
5.6.180.0030.00914.64
5.6.170.0000.00814.30
5.6.160.0070.00714.39
5.6.150.0000.01414.65
5.6.140.0030.01214.34
5.6.130.0040.01114.24
5.6.120.0000.01314.50
5.6.110.0060.00314.33
5.6.100.0100.00314.23
5.6.90.0030.01314.03
5.6.80.0030.01013.89
5.6.70.0000.01514.13
5.6.60.0060.00614.18
5.6.50.0070.00714.24
5.6.40.0070.00714.31
5.6.30.0040.00714.17
5.6.20.0030.01014.26
5.6.10.0080.00614.41
5.6.00.0040.01114.14

preferences:
38.13 ms | 401 KiB | 5 Q