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(), 'fuck' => call_user_function(function() use($shit) { $poopies = array(); foreach($shit->getPoppies as $poopie) { $poppies[$poopie] = 'sucks'; } return $poopies; }) ); } var_dump($shits);

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.0110.00716.63
8.3.50.0220.00117.46
8.3.40.0130.00318.98
8.3.30.0090.00618.67
8.3.20.0040.00418.76
8.3.10.0060.00319.02
8.3.00.0060.00319.51
8.2.180.0140.00416.75
8.2.170.0160.00022.96
8.2.160.0120.00419.03
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0040.00420.99
8.2.110.0040.00820.82
8.2.100.0090.00317.89
8.2.90.0030.00522.20
8.2.80.0040.00419.40
8.2.70.0080.00017.63
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0050.00318.34
8.2.30.0000.00718.13
8.2.20.0060.00619.40
8.2.10.0050.00217.83
8.2.00.0060.00317.73
8.1.280.0100.00725.92
8.1.270.0000.00723.99
8.1.260.0000.00826.35
8.1.250.0060.00328.09
8.1.240.0140.00722.53
8.1.230.0060.00622.81
8.1.220.0000.00817.74
8.1.210.0080.00018.78
8.1.200.0000.01117.48
8.1.190.0070.00017.52
8.1.180.0000.00818.10
8.1.170.0080.00018.73
8.1.160.0040.00418.78
8.1.150.0000.00818.70
8.1.140.0040.00417.46
8.1.130.0030.00317.84
8.1.120.0000.00717.56
8.1.110.0000.00717.36
8.1.100.0080.00017.43
8.1.90.0000.00717.43
8.1.80.0070.00017.52
8.1.70.0080.00017.40
8.1.60.0040.00417.61
8.1.50.0000.00717.36
8.1.40.0000.00817.54
8.1.30.0040.00417.68
8.1.20.0040.00417.68
8.1.10.0040.00417.56
8.1.00.0000.00817.57
8.0.300.0040.00419.94
8.0.290.0040.00416.75
8.0.280.0000.00718.48
8.0.270.0030.00317.19
8.0.260.0030.00316.96
8.0.250.0000.00717.00
8.0.240.0000.00717.04
8.0.230.0030.00316.94
8.0.220.0000.00716.96
8.0.210.0030.00617.00
8.0.200.0070.00017.05
8.0.190.0000.00717.01
8.0.180.0000.00716.98
8.0.170.0090.00016.92
8.0.160.0000.00816.94
8.0.150.0000.00816.82
8.0.140.0050.00816.83
8.0.130.0050.00013.41
8.0.120.0030.00616.93
8.0.110.0030.00516.84
8.0.100.0040.00416.99
8.0.90.0040.00416.93
8.0.80.0100.00516.97
8.0.70.0050.00216.92
8.0.60.0000.00816.86
8.0.50.0040.00416.91
8.0.30.0030.01717.29
8.0.20.0130.01317.26
8.0.10.0000.00717.06
8.0.00.0100.00916.67
7.4.330.0030.00313.00
7.4.320.0000.00616.45
7.4.300.0000.00816.61
7.4.290.0040.00416.54
7.4.280.0050.00816.51
7.4.270.0030.00516.59
7.4.260.0000.00613.25
7.4.250.0100.00016.59
7.4.240.0000.00816.52
7.4.230.0030.00316.60
7.4.220.0110.01516.58
7.4.210.0000.01816.55
7.4.200.0070.00016.69
7.4.190.0030.00316.67
7.4.160.0050.01116.64
7.4.150.0120.00616.36
7.4.140.0100.00616.59
7.4.130.0070.01016.77
7.4.120.0100.00616.53
7.4.110.0100.00716.55
7.4.100.0130.00916.59
7.4.90.0100.01016.45
7.4.80.0100.00719.39
7.4.70.0120.00916.44
7.4.60.0110.01116.36
7.4.50.0100.00016.37
7.4.40.0060.01216.40
7.4.30.0130.00316.59
7.4.00.0090.00314.82
7.3.330.0000.00713.38
7.3.320.0030.00313.40
7.3.310.0030.00516.27
7.3.300.0000.00716.44
7.3.290.0030.01116.37
7.3.280.0040.01116.38
7.3.270.0270.01716.45
7.3.260.0150.00916.55
7.3.250.0090.01116.44
7.3.240.0070.01016.30
7.3.230.0170.00216.42
7.3.210.0150.00416.36
7.3.200.0000.01716.32
7.3.190.0040.01516.27
7.3.180.0060.01316.64
7.3.170.0120.00416.38
7.3.160.0100.00616.41
7.3.120.0040.01214.99
7.3.10.0070.00316.46
7.3.00.0030.00716.73
7.2.330.0140.00316.56
7.2.320.0090.00916.82
7.2.310.0120.00616.97
7.2.300.0060.01216.74
7.2.290.0100.00716.69
7.2.130.0050.00516.90
7.2.120.0040.00816.75
7.2.110.0080.00316.71
7.2.100.0040.00716.79
7.2.90.0070.00416.85
7.2.80.0060.00416.86
7.2.70.0070.00316.80
7.2.60.0040.00716.78
7.2.50.0040.00716.88
7.2.40.0110.00017.04
7.2.30.0030.00917.05
7.2.20.0030.00616.91
7.2.10.0000.01317.03
7.2.00.0030.00617.00
7.1.250.0030.00715.88
7.1.200.0060.00915.47
7.1.100.0070.01018.27
7.1.70.0000.00717.17
7.1.60.0140.01019.30
7.1.50.0070.01016.92
7.1.00.0100.04322.33
7.0.200.0000.00916.74
7.0.140.0030.07722.05
7.0.120.0000.07722.04
7.0.60.0100.06320.03
7.0.50.0000.08317.89
7.0.40.0030.08720.32
7.0.30.0330.07320.12
7.0.20.0270.07720.30
7.0.10.0070.06720.09
7.0.00.0100.08020.07
5.6.280.0030.07320.93
5.6.210.0100.07720.72
5.6.200.0030.04018.16
5.6.190.0030.06320.60
5.6.180.0500.07320.77
5.6.170.0300.08020.50
5.6.160.0070.08720.51
5.6.150.0070.06718.19
5.6.140.0030.07718.17
5.6.130.0100.08318.21
5.6.120.0100.08021.03
5.6.110.0170.07720.99
5.6.100.0030.07020.98
5.6.90.0000.04721.13
5.6.80.0130.07720.54
5.5.350.0070.07720.31
5.5.340.0130.07317.98
5.5.330.0000.04720.42
5.5.320.0100.04720.31
5.5.310.0200.04720.51
5.5.300.0070.07717.98
5.5.290.0070.07317.95
5.5.280.0130.06020.66
5.5.270.0030.04320.98
5.5.260.0070.08020.90
5.5.250.0100.08720.47
5.5.240.0170.07320.13
5.4.450.0100.03319.49
5.4.440.0070.03719.18
5.4.430.0100.03319.32
5.4.420.0030.04019.44
5.4.410.0000.04019.07
5.4.400.0030.03719.25
5.4.390.0100.03319.26
5.4.380.0030.06018.94
5.4.370.0000.05019.16
5.4.360.0070.04318.98
5.4.350.0130.07019.15
5.4.340.0070.03718.92
5.4.320.0070.03719.18
5.4.310.0070.07718.86
5.4.300.0070.04718.92
5.4.290.0030.04018.98
5.4.280.0070.04319.24
5.4.270.0130.03719.15
5.4.260.0000.04718.87
5.4.250.0030.08019.14
5.4.240.0070.07718.85
5.4.230.0000.05018.97
5.4.220.0270.05019.14
5.4.210.0070.05719.07
5.4.200.0100.07718.97
5.4.190.0130.07018.84
5.4.180.0100.07019.13
5.4.170.0070.07019.10
5.4.160.0100.07018.96
5.4.150.0030.07318.96
5.4.140.0030.04016.39
5.4.130.0030.06316.46
5.4.120.0030.05316.49
5.4.110.0000.07016.38
5.4.100.0100.07016.29
5.4.90.0070.04016.41
5.4.80.0000.07716.34
5.4.70.0000.07316.41
5.4.60.0130.06716.39
5.4.50.0030.04016.28
5.4.40.0030.04016.40
5.4.30.0100.04016.29
5.4.20.0030.06316.27
5.4.10.0130.07016.27
5.4.00.0000.07015.79
5.3.290.0130.07014.71
5.3.280.0170.06714.49
5.3.270.0070.04714.62
5.3.260.0000.08014.66
5.3.250.0070.06014.66
5.3.240.0070.09014.62
5.3.230.0030.06714.61
5.3.220.0100.07314.65
5.3.210.0000.05314.59
5.3.200.0070.07714.58
5.3.190.0070.04014.50
5.3.180.0070.04014.64
5.3.170.0070.07714.46
5.3.160.0030.07314.59
5.3.150.0130.06014.64
5.3.140.0070.04014.71
5.3.130.0130.07314.56
5.3.120.0070.06714.56
5.3.110.0070.08014.57
5.3.100.0100.05314.04
5.3.90.0070.04314.17
5.3.80.0070.07714.09
5.3.70.0070.06714.04
5.3.60.0100.07313.95
5.3.50.0030.05014.13
5.3.40.0100.06013.88
5.3.30.0070.04013.80
5.3.20.0030.07313.74
5.3.10.0070.07013.81
5.3.00.0030.04713.64
5.2.170.0070.06311.21
5.2.160.0030.06311.30
5.2.150.0000.05011.07
5.2.140.0070.05711.19
5.2.130.0070.03311.04
5.2.120.0100.05011.16
5.2.110.0030.06311.16
5.2.100.0100.05311.07
5.2.90.0000.04311.18
5.2.80.0070.06011.07
5.2.70.0100.05711.11
5.2.60.0030.04010.98
5.2.50.0030.03011.10
5.2.40.0070.02311.00
5.2.30.0070.05710.93
5.2.20.0130.05310.95
5.2.10.0030.03310.91
5.2.00.0030.06310.79
5.1.60.0030.0539.98
5.1.50.0070.0379.95
5.1.40.0000.05710.04
5.1.30.0000.06010.23
5.1.20.0000.03710.32
5.1.10.0030.05310.09
5.1.00.0030.05310.12
5.0.50.0070.0439.43
5.0.40.0000.0309.43
5.0.30.0000.0379.43
5.0.20.0030.0439.43
5.0.10.0130.0309.43
5.0.00.0100.0539.43
4.4.90.0070.0339.43
4.4.80.0000.0379.43
4.4.70.0000.0379.43
4.4.60.0000.0339.43
4.4.50.0000.0239.43
4.4.40.0030.0539.43
4.4.30.0030.0339.43
4.4.20.0030.0379.43
4.4.10.0030.0309.43
4.4.00.0000.0409.43
4.3.110.0030.0179.43
4.3.100.0030.0339.43
4.3.90.0070.0339.43
4.3.80.0000.0539.43
4.3.70.0030.0209.43
4.3.60.0000.0179.43
4.3.50.0030.0379.43
4.3.40.0030.0239.43
4.3.30.0000.0379.43
4.3.20.0000.0279.43
4.3.10.0000.0209.43
4.3.00.0070.0139.43

preferences:
51.03 ms | 400 KiB | 5 Q