3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Shit { public static function getShits() { return array( 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) { $i++; // can't return key = value }, $shit->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.40.0070.00718.78
8.3.30.0160.00618.69
8.3.20.0080.00018.77
8.3.10.0030.00720.61
8.3.00.0040.00419.25
8.2.170.0070.01422.96
8.2.160.0070.00718.96
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0090.00020.76
8.2.110.0060.00322.07
8.2.100.0040.00817.91
8.2.90.0000.00818.09
8.2.80.0050.00317.97
8.2.70.0040.00417.75
8.2.60.0030.00617.91
8.2.50.0040.00419.35
8.2.40.0040.00419.88
8.2.30.0030.00818.22
8.2.20.0080.00319.58
8.2.10.0040.00417.72
8.2.00.0040.00717.81
8.1.270.0000.00823.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.68
8.1.230.0040.00721.03
8.1.220.0080.00017.79
8.1.210.0060.00318.96
8.1.200.0030.00717.22
8.1.190.0060.00317.53
8.1.180.0040.00418.10
8.1.170.0060.00318.79
8.1.160.0070.00018.80
8.1.150.0020.00518.55
8.1.140.0030.00617.41
8.1.130.0070.00017.82
8.1.120.0070.00017.47
8.1.110.0030.00517.46
8.1.100.0030.00417.48
8.1.90.0040.00417.36
8.1.80.0050.00217.50
8.1.70.0000.00717.40
8.1.60.0090.00017.58
8.1.50.0000.00817.50
8.1.40.0030.00617.49
8.1.30.0040.00417.58
8.1.20.0040.00417.70
8.1.10.0020.00517.48
8.1.00.0080.00017.56
8.0.300.0000.00820.01
8.0.290.0000.00716.75
8.0.280.0090.00018.45
8.0.270.0030.00317.20
8.0.260.0070.00016.89
8.0.250.0050.00317.00
8.0.240.0070.00017.08
8.0.230.0000.00716.94
8.0.220.0000.00717.00
8.0.210.0070.00016.95
8.0.200.0100.00016.97
8.0.190.0040.00416.92
8.0.180.0040.00416.95
8.0.170.0090.00016.85
8.0.160.0070.00016.86
8.0.150.0000.00816.79
8.0.140.0050.00316.91
8.0.130.0030.00313.36
8.0.120.0080.00016.88
8.0.110.0070.00016.93
8.0.100.0040.00416.80
8.0.90.0000.00717.00
8.0.80.0130.00917.00
8.0.70.0070.00016.81
8.0.60.0040.00416.81
8.0.50.0050.00316.84
8.0.30.0120.00917.08
8.0.20.0120.00817.15
8.0.10.0040.00417.09
8.0.00.0110.00916.71
7.4.330.0050.00012.98
7.4.320.0030.00316.55
7.4.300.0060.00016.53
7.4.290.0060.00016.61
7.4.280.0030.00416.65
7.4.270.0000.00616.54
7.4.260.0030.00313.21
7.4.250.0030.00516.51
7.4.240.0030.00316.62
7.4.230.0040.00416.70
7.4.220.0060.01216.48
7.4.210.0000.01416.58
7.4.200.0040.00416.69
7.4.190.0040.00416.41
7.4.160.0040.01216.52
7.4.150.0100.00716.35
7.4.140.0110.00716.51
7.4.130.0140.00416.37
7.4.120.0130.00316.48
7.4.110.0140.00316.51
7.4.100.0100.01316.56
7.4.90.0090.00916.48
7.4.80.0100.01319.39
7.4.70.0090.00616.48
7.4.60.0090.00816.57
7.4.50.0000.00816.67
7.4.40.0090.00316.52
7.4.30.0070.01116.55
7.4.00.0030.01314.94
7.3.330.0000.00513.32
7.3.320.0030.00313.36
7.3.310.0070.00016.40
7.3.300.0000.00716.41
7.3.290.0060.00816.34
7.3.280.0090.01016.39
7.3.270.0120.00616.36
7.3.260.0180.00016.65
7.3.250.0120.00816.40
7.3.240.0130.00316.59
7.3.230.0100.00716.18
7.3.210.0100.01016.56
7.3.200.0090.00916.26
7.3.190.0170.00316.45
7.3.180.0000.01616.47
7.3.170.0160.00016.60
7.3.160.0160.00016.42
7.3.120.0030.01314.79
7.2.330.0070.01116.55
7.2.320.0190.00316.56
7.2.310.0060.01816.56
7.2.300.0070.01416.62
7.2.290.0150.00716.89
7.2.00.0030.00919.37
7.1.100.0060.01018.12
7.1.70.0040.00416.94
7.1.60.0040.00717.25
7.1.50.0030.01216.64
7.1.00.0030.06022.31
7.0.200.0030.00316.75
7.0.140.0070.07022.17
7.0.120.0000.07722.13
7.0.60.0070.04019.95
7.0.50.0100.04017.88
7.0.40.0070.04320.18
7.0.30.0370.04720.25
7.0.20.0170.04320.24
7.0.10.0130.08020.08
7.0.00.0100.05320.26
5.6.280.0070.06720.99
5.6.210.0100.06720.71
5.6.200.0100.06718.18
5.6.190.0070.05320.41
5.6.180.0200.08320.61
5.6.170.0200.07020.50
5.6.160.0030.08320.54
5.6.150.0000.04718.12
5.6.140.0130.07318.27
5.6.130.0100.06018.26
5.6.120.0070.04321.07
5.6.110.0070.08720.97
5.6.100.0200.07321.03
5.6.90.0030.06020.89
5.6.80.0100.05320.54
5.5.350.0070.05720.45
5.5.340.0030.03717.99
5.5.330.0130.06020.40
5.5.320.0000.09320.27
5.5.310.0170.04720.19
5.5.300.0030.06317.95
5.5.290.0030.04017.92
5.5.280.0170.06720.81
5.5.270.0070.07320.73
5.5.260.0170.07720.90
5.5.250.0100.06720.49
5.5.240.0000.08020.17
5.4.450.0070.03719.18
5.4.440.0030.08319.52
5.4.430.0030.06319.48
5.4.420.0030.04019.17
5.4.410.0070.08319.05
5.4.400.0030.04018.86
5.4.390.0130.03719.14
5.4.380.0070.03719.16
5.4.370.0000.04318.87
5.4.360.0070.05719.24
5.4.350.0130.03718.93
5.4.340.0000.05718.98
5.4.320.0130.04018.85
5.4.310.0030.04719.14
5.4.300.0030.08019.20
5.4.290.0100.07719.00
5.4.280.0130.06718.85
5.4.270.0000.04019.24
5.4.260.0070.03719.14
5.4.250.0070.07718.84
5.4.240.0030.03719.14
5.4.230.0070.03719.07
5.4.220.0070.03718.86
5.4.210.0100.04719.14
5.4.200.0070.04719.07
5.4.190.0030.03718.96
5.4.180.0130.06719.15
5.4.170.0070.08019.18
5.4.160.0070.04319.22
5.4.150.0030.04719.22
5.4.140.0030.03716.34
5.4.130.0070.07316.32
5.4.120.0000.05316.40
5.4.110.0070.03316.32
5.4.100.0100.05716.53
5.4.90.0030.05316.28
5.4.80.0000.06016.65
5.4.70.0130.03016.39
5.4.60.0100.05316.39
5.4.50.0000.07316.51
5.4.40.0000.04016.38
5.4.30.0070.03316.50
5.4.20.0030.05716.26
5.4.10.0070.04016.35
5.4.00.0000.06715.86
5.3.290.0030.05714.59
5.3.280.0000.04714.68
5.3.270.0100.07714.63
5.3.260.0030.07314.61
5.3.250.0100.07314.63
5.3.240.0000.07314.64
5.3.230.0070.05314.70
5.3.220.0170.06014.59
5.3.210.0070.04014.59
5.3.200.0070.07314.50
5.3.190.0070.06714.58
5.3.180.0100.06714.61
5.3.170.0100.03314.57
5.3.160.0100.04014.73
5.3.150.0100.07714.63
5.3.140.0100.03314.71
5.3.130.0130.07314.57
5.3.120.0030.04314.60
5.3.110.0070.05714.71
5.3.100.0100.04014.04
5.3.90.0100.03314.04
5.3.80.0070.03314.02
5.3.70.0000.07713.95
5.3.60.0000.05013.93
5.3.50.0000.07313.95
5.3.40.0070.04313.93
5.3.30.0070.03713.96
5.3.20.0000.04313.86
5.3.10.0170.05713.81
5.3.00.0030.04013.72
5.2.170.0100.05011.16
5.2.160.0130.05711.07
5.2.150.0000.03711.10
5.2.140.0000.04311.15
5.2.130.0030.06711.07
5.2.120.0030.04711.07
5.2.110.0000.03311.07
5.2.100.0000.04711.07
5.2.90.0130.05311.16
5.2.80.0030.04011.15
5.2.70.0030.05711.09
5.2.60.0030.03311.01
5.2.50.0030.04711.09
5.2.40.0070.02710.98
5.2.30.0030.06311.04
5.2.20.0070.03311.04
5.2.10.0030.06010.98
5.2.00.0070.05010.98
5.1.60.0070.04010.98
5.1.50.0030.03010.98
5.1.40.0030.02310.98
5.1.30.0100.05010.98
5.1.20.0000.03710.98
5.1.10.0000.06310.98
5.1.00.0000.04310.98
5.0.50.0000.02310.98
5.0.40.0030.03010.98
5.0.30.0000.06710.98
5.0.20.0070.02310.98
5.0.10.0000.02710.98
5.0.00.0000.06010.98
4.4.90.0000.03710.98
4.4.80.0070.03310.98
4.4.70.0000.02010.98
4.4.60.0000.04010.98
4.4.50.0000.02010.98
4.4.40.0000.03010.98
4.4.30.0030.01310.98
4.4.20.0030.01310.98
4.4.10.0030.01310.98
4.4.00.0030.05010.98
4.3.110.0100.03010.98
4.3.100.0000.02310.98
4.3.90.0000.03310.98
4.3.80.0030.03010.98
4.3.70.0000.03310.98
4.3.60.0100.02310.98
4.3.50.0030.02010.98
4.3.40.0070.02710.98
4.3.30.0070.03310.98
4.3.20.0000.03310.98
4.3.10.0070.02010.98
4.3.00.0000.02010.98

preferences:
48.2 ms | 400 KiB | 5 Q