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.0150.00418.31
8.3.50.0100.01016.12
8.3.40.0040.01118.74
8.3.30.0100.00318.67
8.3.20.0040.00420.26
8.3.10.0070.00021.85
8.3.00.0000.00820.81
8.2.180.0190.00618.66
8.2.170.0110.00422.96
8.2.160.0130.00022.30
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0070.00022.25
8.2.120.0000.00726.35
8.2.110.0030.00619.30
8.2.100.0000.01117.66
8.2.90.0000.00719.28
8.2.80.0000.00717.97
8.2.70.0000.00817.63
8.2.60.0040.00417.93
8.2.50.0050.00318.10
8.2.40.0000.00722.14
8.2.30.0050.00220.99
8.2.20.0040.00418.06
8.2.10.0040.00417.94
8.2.00.0070.00018.07
8.1.280.0120.00625.92
8.1.270.0070.00022.10
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0070.00422.56
8.1.230.0100.00019.04
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0100.00317.22
8.1.190.0030.00517.35
8.1.180.0060.00318.10
8.1.170.0050.00318.27
8.1.160.0040.00419.01
8.1.150.0050.00318.87
8.1.140.0000.00819.47
8.1.130.0040.00418.81
8.1.120.0000.00717.33
8.1.110.0050.00317.39
8.1.100.0040.00417.45
8.1.90.0040.00417.41
8.1.80.0030.00417.29
8.1.70.0030.00317.38
8.1.60.0000.00817.48
8.1.50.0000.00717.58
8.1.40.0040.00417.55
8.1.30.0050.00317.57
8.1.20.0070.00017.66
8.1.10.0040.00417.61
8.1.00.0040.00417.40
8.0.300.0040.00418.77
8.0.290.0040.00416.58
8.0.280.0000.00718.39
8.0.270.0070.00017.20
8.0.260.0000.00616.77
8.0.250.0000.00716.84
8.0.240.0070.00016.80
8.0.230.0000.00716.81
8.0.220.0050.00316.93
8.0.210.0000.00816.93
8.0.200.0000.00716.99
8.0.190.0080.00016.98
8.0.180.0050.00316.97
8.0.170.0030.00316.95
8.0.160.0040.00416.78
8.0.150.0000.00816.90
8.0.140.0040.00316.85
8.0.130.0030.00613.31
8.0.120.0000.00716.90
8.0.110.0000.00716.77
8.0.100.0000.00717.00
8.0.90.0030.00516.81
8.0.80.0040.01216.89
8.0.70.0040.00416.84
8.0.60.0070.00016.70
8.0.50.0000.00816.90
8.0.30.0160.00317.16
8.0.20.0090.01117.40
8.0.10.0000.00816.80
8.0.00.0080.00816.71
7.4.330.0020.00215.55
7.4.320.0030.00316.54
7.4.300.0000.00616.45
7.4.290.0040.00416.57
7.4.280.0000.00716.53
7.4.270.0070.00016.44
7.4.260.0090.00016.44
7.4.250.0000.00816.54
7.4.240.0000.00816.42
7.4.230.0030.00316.55
7.4.220.0110.01816.57
7.4.210.0090.00616.51
7.4.200.0050.00316.43
7.4.160.0140.00216.44
7.4.150.0150.00417.40
7.4.140.0120.00917.86
7.4.130.0100.01016.43
7.4.120.0130.00716.36
7.4.110.0060.01016.33
7.4.100.0090.01116.48
7.4.90.0110.00616.36
7.4.80.0160.00619.39
7.4.70.0140.00316.60
7.4.60.0030.01516.45
7.4.50.0000.01416.25
7.4.40.0030.01316.48
7.4.30.0130.00716.34
7.4.00.0080.00615.01
7.3.330.0030.00313.21
7.3.320.0000.00513.21
7.3.310.0040.00416.24
7.3.300.0030.00316.11
7.3.290.0040.00216.23
7.3.280.0090.00716.18
7.3.270.0000.01717.40
7.3.260.0130.00816.46
7.3.250.0080.01016.32
7.3.240.0070.01016.24
7.3.230.0100.00716.27
7.3.210.0030.01316.17
7.3.200.0120.00316.19
7.3.190.0080.00816.33
7.3.180.0080.00816.32
7.3.170.0050.01016.40
7.3.160.0060.00916.21
7.3.120.0150.00614.50
7.3.110.0000.01814.86
7.3.100.0100.00614.87
7.3.90.0040.00814.59
7.3.80.0030.00614.82
7.3.70.0030.01414.78
7.3.60.0060.00814.46
7.3.50.0070.01014.48
7.3.40.0080.00414.61
7.3.30.0110.00314.82
7.3.20.0030.01016.67
7.3.10.0070.00716.57
7.3.00.0060.00916.22
7.2.330.0210.00016.61
7.2.320.0120.01116.54
7.2.310.0100.00716.55
7.2.300.0030.01316.59
7.2.290.0060.00916.23
7.2.250.0130.00615.13
7.2.240.0090.00915.13
7.2.230.0100.00614.60
7.2.220.0080.00814.76
7.2.210.0120.00314.70
7.2.200.0080.00315.09
7.2.190.0060.00614.93
7.2.180.0060.01214.87
7.2.170.0060.00614.64
7.2.60.0670.00814.94
7.2.00.0030.01019.30
7.1.330.0030.01015.70
7.1.320.0040.00715.63
7.1.310.0100.00315.78
7.1.300.0100.00315.69
7.1.290.0030.00715.61
7.1.280.0030.01015.46
7.1.270.0070.00715.75
7.1.260.0030.01015.75
7.1.200.0040.00715.30
7.1.100.0090.00618.15
7.1.70.0080.00016.96
7.1.60.0430.01033.13
7.1.50.0430.01033.04
7.1.40.0330.02032.73
7.1.30.0470.01332.57
7.1.20.0470.01032.68
7.1.10.0300.01314.66
7.1.00.0330.00715.01
7.0.200.0370.01014.79
7.0.190.0400.00714.70
7.0.180.0270.01314.46
7.0.170.0470.00014.27
7.0.160.0430.00314.25
7.0.150.0830.01314.53
7.0.140.0400.00714.35
7.0.130.0300.00714.52
7.0.120.0300.01014.66
7.0.110.0330.00714.59
7.0.100.0330.00714.57
7.0.90.0330.00714.57
7.0.80.0330.00714.50
7.0.70.0330.00714.48
7.0.60.0300.01314.07
7.0.50.0330.01014.57
7.0.40.0430.01014.54
7.0.30.0330.00714.55
7.0.20.0330.00714.46
7.0.10.0330.01014.50
7.0.00.0370.00714.77

preferences:
45.5 ms | 401 KiB | 5 Q