3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $x; public function __construct($x) { $this->x = $x; } private static $i = 0; private static function a($x) { return new self($x.(self::$i++)); } public static function b($y) { return array_map(array("Foo", "a"), array_merge($y, $y)); } } var_dump(Foo::b(array("a", "b", "c")));

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.0040.01218.40
8.3.50.0000.01718.02
8.3.40.0140.00718.71
8.3.30.0000.01519.23
8.3.20.0040.00420.21
8.3.10.0040.00420.27
8.3.00.0040.00419.25
8.2.180.0240.01216.49
8.2.170.0140.00422.96
8.2.160.0110.00320.43
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0000.00922.19
8.2.110.0030.00522.08
8.2.100.0090.00318.22
8.2.90.0000.00819.27
8.2.80.0060.00317.97
8.2.70.0030.00617.48
8.2.60.0000.00817.80
8.2.50.0030.00518.07
8.2.40.0030.00620.07
8.2.30.0070.00418.00
8.2.20.0000.00817.72
8.2.10.0040.00418.17
8.2.00.0000.00717.75
8.1.280.0110.00725.92
8.1.270.0030.00523.83
8.1.260.0050.00226.35
8.1.250.0060.00328.09
8.1.240.0090.00022.20
8.1.230.0040.00819.10
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0110.00017.36
8.1.190.0000.00817.35
8.1.180.0080.00318.10
8.1.170.0000.00918.45
8.1.160.0000.00721.91
8.1.150.0000.00818.70
8.1.140.0040.00417.41
8.1.130.0070.00017.79
8.1.120.0050.00317.30
8.1.110.0000.00717.40
8.1.100.0050.00317.39
8.1.90.0040.00417.31
8.1.80.0000.00717.32
8.1.70.0030.00317.23
8.1.60.0040.00417.59
8.1.50.0040.00417.51
8.1.40.0000.00817.53
8.1.30.0030.00617.62
8.1.20.0040.00417.55
8.1.10.0070.00017.59
8.1.00.0000.01017.41
8.0.300.0000.00818.77
8.0.290.0070.00016.75
8.0.280.0000.00718.31
8.0.270.0000.00717.27
8.0.260.0000.00617.27
8.0.250.0030.00316.93
8.0.240.0030.00316.91
8.0.230.0020.00516.90
8.0.220.0000.00716.93
8.0.210.0030.00316.79
8.0.200.0000.00716.85
8.0.190.0110.00016.87
8.0.180.0000.00816.76
8.0.170.0030.00516.84
8.0.160.0000.00816.76
8.0.150.0040.00416.85
8.0.140.0000.00716.91
8.0.130.0000.00613.32
8.0.120.0040.00416.90
8.0.110.0000.00716.89
8.0.100.0040.00416.83
8.0.90.0040.00416.88
8.0.80.0190.00316.93
8.0.70.0050.00216.77
8.0.60.0030.00316.80
8.0.50.0080.00016.75
8.0.30.0090.01217.18
8.0.20.0120.00817.40
8.0.10.0030.00616.85
8.0.00.0140.00516.75
7.4.330.0020.00215.03
7.4.320.0030.00316.46
7.4.300.0060.00016.63
7.4.290.0070.00016.53
7.4.280.0070.00016.49
7.4.270.0030.00316.62
7.4.260.0030.00316.56
7.4.250.0050.00316.50
7.4.240.0020.00516.59
7.4.230.0000.00816.72
7.4.220.0030.01616.50
7.4.210.0140.00716.48
7.4.200.0040.00416.71
7.4.160.0000.01516.39
7.4.150.0120.00817.40
7.4.140.0110.00717.86
7.4.130.0080.01016.45
7.4.120.0080.01216.50
7.4.110.0060.01316.36
7.4.100.0100.01116.55
7.4.90.0060.01216.32
7.4.80.0140.00419.39
7.4.70.0130.00916.47
7.4.60.0080.01116.53
7.4.50.0030.00616.49
7.4.40.0060.00916.53
7.4.30.0030.01416.56
7.4.00.0090.00815.13
7.3.330.0050.00013.26
7.3.320.0030.00313.38
7.3.310.0000.00716.21
7.3.300.0070.00016.33
7.3.290.0150.00316.38
7.3.280.0090.00716.30
7.3.270.0120.00917.40
7.3.260.0160.00816.43
7.3.250.0110.00816.32
7.3.240.0070.01016.64
7.3.230.0090.00916.39
7.3.210.0090.00916.41
7.3.200.0090.01519.39
7.3.190.0110.01016.28
7.3.180.0090.00616.42
7.3.170.0110.00716.53
7.3.160.0040.01216.53
7.3.10.0080.00416.57
7.3.00.0080.00816.51
7.2.330.0150.00416.53
7.2.320.0090.00916.56
7.2.310.0240.01316.33
7.2.300.0130.00316.32
7.2.290.0090.01516.72
7.2.130.0070.00916.71
7.2.120.0070.01016.53
7.2.110.0130.00616.70
7.2.100.0060.00616.63
7.2.90.0100.00916.81
7.2.80.0070.01016.88
7.2.70.0130.00416.73
7.2.60.0070.00716.95
7.2.50.0080.00816.65
7.2.40.0070.00716.78
7.2.30.0080.00716.79
7.2.20.0080.00816.86
7.2.10.0090.00516.71
7.2.00.0120.00817.62
7.1.250.0090.00615.75
7.1.240.0180.00015.95
7.1.230.0140.00415.63
7.1.220.0120.00315.81
7.1.210.0140.00015.56
7.1.200.0060.01015.79
7.1.190.0060.00915.87
7.1.180.0180.00015.73
7.1.170.0130.00315.48
7.1.160.0120.00315.68
7.1.150.0100.00715.73
7.1.140.0030.01015.80
7.1.130.0060.00915.94
7.1.120.0120.00015.65
7.1.110.0070.01115.83
7.1.100.0050.00816.95
7.1.90.0170.00015.71
7.1.80.0060.00815.85
7.1.70.0090.00416.43
7.1.60.0090.00817.62
7.1.50.0090.01016.21
7.1.40.0090.00615.82
7.1.30.0070.01015.50
7.1.20.0040.00815.70
7.1.10.0150.00015.92
7.1.00.0070.04019.11
7.0.330.0110.00715.27
7.0.320.0130.00715.01
7.0.310.0100.00715.15
7.0.300.0140.00015.43
7.0.290.0130.00315.25
7.0.280.0060.00915.39
7.0.270.0030.00915.44
7.0.260.0080.00815.29
7.0.250.0070.00315.46
7.0.240.0100.00715.45
7.0.230.0060.00615.45
7.0.220.0060.00615.55
7.0.210.0030.00615.48
7.0.200.0050.00616.13
7.0.190.0030.00915.33
7.0.180.0110.00615.54
7.0.170.0060.00615.34
7.0.160.0100.00715.29
7.0.150.0040.01115.19
7.0.140.0050.04218.62
7.0.130.0110.00715.22
7.0.120.0130.00315.64
7.0.110.0080.00815.48
7.0.100.0030.01315.11
7.0.90.0170.00015.46
7.0.80.0130.00315.47
7.0.70.0100.00615.60
7.0.60.0090.02217.61
7.0.50.0080.02316.76
7.0.40.0030.03016.78
7.0.30.0200.02816.71
7.0.20.0080.02616.74
7.0.10.0000.04217.02
7.0.00.0070.04616.81
5.6.380.0040.00814.10
5.6.370.0040.01114.26
5.6.360.0040.00814.36
5.6.350.0040.00714.25
5.6.340.0110.00014.55
5.6.330.0110.00314.32
5.6.320.0100.00314.27
5.6.310.0090.00014.21
5.6.300.0060.00614.40
5.6.290.0030.01014.52
5.6.280.0060.04117.64
5.6.270.0100.00014.45
5.6.260.0100.00314.20
5.6.250.0080.00413.80
5.6.240.0060.00314.01
5.6.230.0060.00314.35
5.6.220.0030.00614.14
5.6.210.0030.03517.47
5.6.200.0070.04316.18
5.6.190.0020.04517.48
5.6.180.0310.03617.43
5.6.170.0200.04217.41
5.6.160.0070.03417.33
5.6.150.0070.02016.14
5.6.140.0030.04216.23
5.6.130.0060.03616.14
5.6.120.0030.04517.60
5.6.110.0070.04117.75
5.6.100.0070.04617.52
5.6.90.0100.03917.48
5.6.80.0030.04517.16
5.6.70.0140.00014.40
5.6.60.0070.00414.01
5.6.50.0070.00314.18
5.6.40.0000.01114.12
5.6.30.0070.00714.54
5.6.20.0030.00913.95
5.6.10.0040.00714.37
5.6.00.0000.01514.20
5.5.380.0070.00710.80
5.5.370.0030.00311.22
5.5.360.0110.00011.12
5.5.350.0100.04015.74
5.5.340.0060.02314.57
5.5.330.0030.04815.88
5.5.320.0130.02315.72
5.5.310.0190.04015.68
5.5.300.0070.04214.47
5.5.290.0070.02014.45
5.5.280.0080.04315.90
5.5.270.0050.04615.94
5.5.260.0060.04515.91
5.5.250.0040.04515.73
5.5.240.0170.03515.69
5.5.230.0000.01111.07
5.5.220.0000.01311.21
5.5.210.0040.00411.11
5.5.200.0000.00611.07
5.5.190.0050.00311.21
5.5.180.0000.00810.91
5.5.170.0100.00011.15
5.5.160.0000.00611.14
5.5.150.0030.00310.90
5.5.140.0070.00410.97
5.5.130.0000.00611.10
5.5.120.0030.00311.19
5.5.110.0080.00011.19
5.5.100.0050.00511.02
5.5.90.0030.00610.95
5.5.80.0000.00710.89
5.5.70.0100.00011.14
5.5.60.0030.00310.65
5.5.50.0000.00810.84
5.5.40.0030.00710.96
5.5.30.0000.00710.95
5.5.20.0040.00410.90
5.5.10.0090.00311.00
5.5.00.0000.01010.70
5.4.450.0400.02815.19
5.4.440.0430.02315.26
5.4.430.0320.02215.23
5.4.420.0330.00615.38
5.4.410.0400.00615.28
5.4.400.0300.00514.95
5.4.390.0320.00414.96
5.4.380.0330.00214.92
5.4.370.0330.00115.02
5.4.360.0300.00515.02
5.4.350.0340.00115.12
5.4.340.0310.00314.97
5.4.330.0040.00811.05
5.4.320.0100.01711.48
5.4.310.0030.02311.79
5.4.300.0060.02411.66
5.4.290.0050.02311.63
5.4.280.0040.02111.72
5.4.270.0030.02511.56
5.4.260.0040.02211.54
5.4.250.0060.02011.65
5.4.240.0040.02311.56
5.4.230.0050.02011.56
5.4.220.0010.02611.51
5.4.210.0080.02111.63
5.4.200.0050.02211.69
5.4.190.0050.02111.65
5.4.180.0040.02211.67
5.4.170.0040.02011.56
5.4.160.0040.02111.58
5.4.150.0080.01911.68
5.4.140.0020.02411.62
5.4.130.0020.02311.62
5.4.120.0080.01811.58
5.4.110.0020.02411.46
5.4.100.0060.02011.48
5.4.90.0030.02311.33
5.4.80.0050.02211.34
5.4.70.0050.02011.31
5.4.60.0060.02111.23
5.4.50.0070.01911.39
5.4.40.0080.01811.48
5.4.30.0070.01811.41
5.4.20.0020.02311.39
5.4.10.0070.01811.46
5.4.00.0060.02211.15
5.3.290.0050.02411.74
5.3.280.0040.02511.63
5.3.270.0080.02311.66
5.3.260.0080.02111.65
5.3.250.0040.02411.67
5.3.240.0050.02411.62
5.3.230.0040.02411.64
5.3.220.0060.02211.57
5.3.210.0020.02511.46
5.3.200.0060.01811.47
5.3.190.0070.01911.60
5.3.180.0040.02411.56
5.3.170.0030.02811.54
5.3.160.0030.02311.67
5.3.150.0050.02211.57
5.3.140.0080.02211.64
5.3.130.0060.02311.57
5.3.120.0070.02311.58
5.3.110.0070.02011.56
5.3.100.0060.02111.19
5.3.90.0060.01911.36
5.3.80.0040.02311.26
5.3.70.0050.02111.29
5.3.60.0070.01811.31
5.3.50.0060.01911.10
5.3.40.0070.02011.30
5.3.30.0060.01911.22
5.3.20.0050.02111.12
5.3.10.0050.02110.94
5.3.00.0020.02311.04
5.2.170.0040.0229.32
5.2.160.0050.0219.43
5.2.150.0060.0179.43
5.2.140.0040.0189.40
5.2.130.0020.0179.32
5.2.120.0030.0199.31
5.2.110.0050.0169.44
5.2.100.0040.0169.40
5.2.90.0030.0179.33
5.2.80.0040.0189.32
5.2.70.0040.0169.34
5.2.60.0040.0229.28
5.2.50.0060.0169.26
5.2.40.0040.0179.30
5.2.30.0040.0179.24
5.2.20.0030.0189.23
5.2.10.0040.0179.18
5.2.00.0040.0169.12
5.1.60.0060.0148.76
5.1.50.0060.0148.75
5.1.40.0030.0148.74
5.1.30.0020.0178.92
5.1.20.0080.0138.93
5.1.10.0050.0178.79
5.1.00.0010.0168.79
5.0.50.0020.0138.03
5.0.40.0030.0117.96
5.0.30.0020.0187.87
5.0.20.0040.0097.85
5.0.10.0040.0127.84
5.0.00.0020.0177.84
4.4.90.0040.0087.10
4.4.80.0020.0117.09
4.4.70.0040.0097.09
4.4.60.0050.0077.09
4.4.50.0040.0087.09
4.4.40.0030.0157.06
4.4.30.0010.0117.08
4.4.20.0020.0107.13
4.4.10.0020.0117.13
4.4.00.0020.0167.09
4.3.110.0030.0097.04
4.3.100.0010.0117.04
4.3.90.0030.0097.03
4.3.80.0010.0157.00
4.3.70.0020.0097.02
4.3.60.0030.0087.02
4.3.50.0040.0077.02
4.3.40.0040.0136.97
4.3.30.0040.0086.36
4.3.20.0010.0126.35
4.3.10.0020.0106.32
4.3.00.0100.00311.50

preferences:
66.37 ms | 400 KiB | 5 Q