3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Shit { public static function getShits() { return [ new Shit, new Shit, new Shit ]; } public function getTird() { return 'sucks'; } public function getPoopies() { return range(0,10); } } $shits = array(); foreach(Shit::getShits() as $shit) { $shits[] = array( 'tird' => $shit->getTird(), 'ffff' => array_map( function($val) { // can't return key = value }, $this->getPoopies() ) ); }

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.0080.00816.50
8.3.50.0140.00516.46
8.3.40.0100.01018.89
8.3.30.0100.00318.79
8.3.20.0080.00018.86
8.3.10.0090.00018.73
8.3.00.0030.00619.38
8.2.180.0150.00625.92
8.2.170.0120.00919.09
8.2.160.0070.00722.96
8.2.150.0030.00625.66
8.2.140.0040.00424.66
8.2.130.0030.01026.16
8.2.120.0040.00420.70
8.2.110.0060.00321.95
8.2.100.0120.00617.97
8.2.90.0000.00817.63
8.2.80.0040.00918.78
8.2.70.0040.00417.50
8.2.60.0080.00017.93
8.2.50.0060.00318.07
8.2.40.0000.00820.07
8.2.30.0000.00917.73
8.2.20.0080.00317.78
8.2.10.0030.00617.73
8.2.00.0040.00417.76
8.1.280.0100.01425.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.74
8.1.230.0030.00717.89
8.1.220.0000.00917.78
8.1.210.0040.00418.77
8.1.200.0110.00017.35
8.1.190.0040.00417.35
8.1.180.0060.00318.10
8.1.170.0030.00618.82
8.1.160.0040.00419.08
8.1.150.0000.00718.53
8.1.140.0050.00217.37
8.1.130.0030.00317.88
8.1.120.0080.00017.39
8.1.110.0000.00717.30
8.1.100.0000.00717.38
8.1.90.0060.00317.44
8.1.80.0050.00317.38
8.1.70.0050.00317.32
8.1.60.0030.00617.60
8.1.50.0040.00417.39
8.1.40.0060.00317.52
8.1.30.0000.00917.68
8.1.20.0030.00717.73
8.1.10.0000.00717.55
8.1.00.0040.00417.57
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0040.00418.58
8.0.270.0000.00717.21
8.0.260.0000.00616.89
8.0.250.0000.00717.00
8.0.240.0000.00717.08
8.0.230.0000.00717.02
8.0.220.0050.00216.94
8.0.210.0000.00716.94
8.0.200.0000.00617.02
8.0.190.0000.00817.02
8.0.180.0040.00316.90
8.0.170.0080.00016.81
8.0.160.0000.00716.97
8.0.150.0000.00816.96
8.0.140.0050.00316.86
8.0.130.0000.00513.43
8.0.120.0030.00616.83
8.0.110.0000.00717.07
8.0.100.0040.00416.84
8.0.90.0000.00716.98
8.0.80.0080.01216.99
8.0.70.0000.00716.93
8.0.60.0040.00416.86
8.0.50.0000.00716.84
8.0.30.0040.01216.99
8.0.20.0090.01617.05
8.0.10.0050.00217.19
8.0.00.0070.01316.80
7.4.330.0060.00012.97
7.4.320.0060.00016.52
7.4.300.0030.00316.53
7.4.290.0030.00316.61
7.4.280.0000.00716.40
7.4.270.0050.00216.52
7.4.260.0020.00313.18
7.4.250.0000.00716.47
7.4.240.0030.00316.52
7.4.230.0030.00316.55
7.4.220.0130.01016.54
7.4.210.0120.00316.51
7.4.200.0060.00316.40
7.4.190.0000.00716.77
7.4.160.0110.00416.44
7.4.150.0170.00016.60
7.4.140.0120.00616.66
7.4.130.0090.00816.57
7.4.120.0100.00716.65
7.4.110.0030.01616.45
7.4.100.0080.00816.46
7.4.90.0090.00916.51
7.4.80.0100.00616.43
7.4.70.0070.01016.65
7.4.60.0090.00616.48
7.4.50.0080.00016.76
7.4.40.0070.00716.49
7.4.30.0100.00716.66
7.4.00.0100.00714.96
7.3.330.0060.00013.21
7.3.320.0000.00513.34
7.3.310.0030.00316.27
7.3.300.0000.00616.20
7.3.290.0080.00816.38
7.3.280.0090.00516.41
7.3.270.0130.00616.30
7.3.260.0160.00016.36
7.3.250.0060.01516.36
7.3.240.0140.00316.50
7.3.230.0110.00816.44
7.3.210.0130.00316.54
7.3.200.0120.00619.39
7.3.190.0060.01616.58
7.3.180.0110.00816.49
7.3.170.0060.01216.37
7.3.160.0120.01016.48
7.3.120.0130.00314.82
7.2.330.0060.01216.58
7.2.320.0090.00916.46
7.2.310.0070.01116.49
7.2.300.0030.01316.77
7.2.290.0080.00816.58
7.2.60.0100.00717.09
7.2.00.0070.00719.54
7.1.200.0080.00815.82
7.1.100.0030.01017.96
7.1.70.0030.00317.12
7.1.60.0100.01419.30
7.1.50.0030.02016.50
7.1.00.0000.07722.44
7.0.200.0130.00316.63
7.0.140.0070.07022.22
7.0.120.0000.04022.03
7.0.60.0170.07019.95
7.0.50.0200.07017.84
7.0.40.0100.08320.13
7.0.30.0270.06020.26
7.0.20.0330.07720.20
7.0.10.0130.07720.14
7.0.00.0030.09020.09
5.6.280.0030.09721.05
5.6.210.0070.08020.57
5.6.200.0100.08018.18
5.6.190.0030.08720.77
5.6.180.0230.04320.63
5.6.170.0200.04320.58
5.6.160.0070.09320.57
5.6.150.0070.08018.25
5.6.140.0070.08018.15
5.6.130.0100.05018.28
5.6.120.0070.04021.12
5.6.110.0030.04721.14
5.6.100.0070.07321.01
5.6.90.0030.08721.01
5.6.80.0000.04720.40
5.6.70.3630.04020.36
5.5.350.0030.04320.50
5.5.340.0030.08317.96
5.5.330.0100.05020.32
5.5.320.0000.06320.36
5.5.310.0170.03720.35
5.5.300.0100.03317.95
5.5.290.0130.07717.95
5.5.280.0070.08320.86
5.5.270.0100.05020.86
5.5.260.0100.07320.80
5.5.250.0070.08320.79
5.5.240.0230.05020.20
5.4.450.0030.04719.57
5.4.440.0070.08319.16
5.4.430.0100.07319.46
5.4.420.0170.03719.51
5.4.410.0030.05719.44
5.4.400.0100.05019.10
5.4.390.0100.07319.00
5.4.380.0130.06719.01
5.4.370.0100.07319.14
5.4.360.0000.06019.01
5.4.350.0070.03718.87
5.4.340.0070.04718.86
5.4.320.0030.04719.15
5.4.310.0030.03718.88
5.4.300.0100.04319.12
5.4.290.0070.07318.89
5.4.280.0130.06319.24
5.4.270.0070.04319.00
5.4.260.0030.04719.12
5.4.250.0070.06718.85
5.4.240.0030.06719.11
5.4.230.0100.06318.84
5.4.220.0130.06718.84
5.4.210.0100.07719.14
5.4.200.0070.03718.84
5.4.190.0070.05719.15
5.4.180.0070.07319.07
5.4.170.0100.04019.24
5.4.160.0030.04019.06
5.4.150.0130.07319.23
5.4.140.0100.06716.47
5.4.130.0100.04016.41
5.4.120.0170.03716.39
5.4.110.0070.04316.30
5.4.100.0000.08016.37
5.4.90.0000.04016.30
5.4.80.0070.07016.39
5.4.70.0000.08016.29
5.4.60.0000.06316.46
5.4.50.0130.07016.38
5.4.40.0030.04016.47
5.4.30.0000.04016.27
5.4.20.0000.05716.36
5.4.10.0100.06016.36
5.4.00.0130.03715.95
5.3.290.0000.04314.72
5.3.280.0030.04714.59
5.3.270.0100.03314.61
5.3.260.0000.07014.76
5.3.250.0030.08314.51
5.3.240.0030.04314.69
5.3.230.0130.06714.74
5.3.220.0030.04014.61
5.3.210.0030.07714.57
5.3.200.0100.07014.57
5.3.190.0070.03314.57
5.3.180.0000.08014.57
5.3.170.0070.05314.71
5.3.160.0030.06714.57
5.3.150.0070.07314.58
5.3.140.0030.04014.44
5.3.130.0030.04014.55
5.3.120.0130.06714.54
5.3.110.0000.06314.57
5.3.100.0100.07014.05
5.3.90.0030.04713.97
5.3.80.0030.03714.09
5.3.70.0100.03014.18
5.3.60.0030.04014.04
5.3.50.0030.04313.86
5.3.40.0000.04014.09
5.3.30.0030.03713.87
5.3.20.0100.04013.64
5.3.10.0070.03313.65
5.3.00.0070.03313.64
5.2.170.0000.03011.30
5.2.160.0000.04711.06
5.2.150.0030.03011.22
5.2.140.0030.02711.17
5.2.130.0000.03011.15
5.2.120.0030.02711.06
5.2.110.0070.02311.15
5.2.100.0000.03011.13
5.2.90.0000.03011.09
5.2.80.0000.03011.25
5.2.70.0030.02711.16
5.2.60.0000.03011.08
5.2.50.0030.02711.07
5.2.40.0030.02710.91
5.2.30.0030.03010.89
5.2.20.0030.03010.96
5.2.10.0070.02310.93
5.2.00.0030.02710.71
5.1.60.0000.0239.96
5.1.50.0000.0279.95
5.1.40.0000.0279.97
5.1.30.0070.02010.31
5.1.20.0030.02310.51
5.1.10.0000.02710.21
5.1.00.0000.02710.02
5.0.50.0000.0208.45
5.0.40.0070.0178.42
5.0.30.0000.0308.19
5.0.20.0000.0208.17
5.0.10.0000.0208.17
5.0.00.0030.0308.32
4.4.90.0000.0208.03
4.4.80.0000.0178.03
4.4.70.0030.0138.03
4.4.60.0030.0138.03
4.4.50.0000.0178.03
4.4.40.0000.0238.03
4.4.30.0000.0178.03
4.4.20.0030.0138.03
4.4.10.0000.0178.03
4.4.00.0000.0238.03
4.3.110.0000.0138.03
4.3.100.0000.0178.03
4.3.90.0000.0138.03
4.3.80.0000.0238.03
4.3.70.0000.0138.03
4.3.60.0070.0108.03
4.3.50.0000.0138.03
4.3.40.0000.0238.03
4.3.30.0070.0108.03
4.3.20.0000.0138.03
4.3.10.0030.0138.03
4.3.00.0000.0138.03

preferences:
56.52 ms | 401 KiB | 5 Q