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_func(function() use($shit) { $poopies = array(); foreach($shit->getPoopies() 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.70.0090.01216.75
8.3.60.0150.00018.56
8.3.50.0100.00721.96
8.3.40.0120.00318.64
8.3.30.0110.00419.21
8.3.20.0080.00020.38
8.3.10.0070.00023.66
8.3.00.0080.00022.43
8.2.180.0100.01016.50
8.2.170.0040.01122.96
8.2.160.0110.00322.20
8.2.150.0060.00324.18
8.2.140.0150.00024.66
8.2.130.0050.00326.16
8.2.120.0080.00019.36
8.2.110.0030.00621.11
8.2.100.0070.00417.88
8.2.90.0040.00419.17
8.2.80.0030.00617.97
8.2.70.0030.00617.50
8.2.60.0000.00818.04
8.2.50.0000.01018.10
8.2.40.0040.00418.34
8.2.30.0040.00418.01
8.2.20.0090.00017.69
8.2.10.0000.00819.53
8.2.00.0040.00417.77
8.1.280.0030.01425.92
8.1.270.0060.00323.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00622.64
8.1.230.0060.00617.64
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0030.00719.13
8.1.180.0090.00018.10
8.1.170.0030.00518.66
8.1.160.0030.00522.02
8.1.150.0000.00718.75
8.1.140.0030.00617.55
8.1.130.0000.00717.76
8.1.120.0000.00717.49
8.1.110.0070.00017.43
8.1.100.0000.01117.38
8.1.90.0040.00417.46
8.1.80.0080.00017.48
8.1.70.0000.00717.37
8.1.60.0070.00317.61
8.1.50.0030.00517.39
8.1.40.0040.00417.51
8.1.30.0040.00417.64
8.1.20.0000.00817.66
8.1.10.0070.00017.61
8.1.00.0030.00517.42
8.0.300.0040.00718.77
8.0.290.0000.00916.63
8.0.280.0030.00318.46
8.0.270.0000.00717.27
8.0.260.0060.00316.88
8.0.250.0000.00716.86
8.0.240.0030.00316.95
8.0.230.0070.00416.97
8.0.220.0000.00716.82
8.0.210.0050.00316.75
8.0.200.0050.00216.89
8.0.190.0030.00516.84
8.0.180.0050.00316.93
8.0.170.0040.00416.85
8.0.160.0000.00716.88
8.0.150.0040.00416.87
8.0.140.0050.00316.75
8.0.130.0030.00313.32
8.0.120.0000.00816.85
8.0.110.0040.00416.94
8.0.100.0040.00416.85
8.0.90.0080.00016.69
8.0.80.0090.01216.97
8.0.70.0030.00516.95
8.0.60.0080.00016.80
8.0.50.0040.00416.88
8.0.30.0130.00617.17
8.0.20.0140.00917.40
8.0.10.0000.00716.84
8.0.00.0140.00616.65
7.4.330.0050.00015.00
7.4.320.0000.00716.56
7.4.300.0060.00016.49
7.4.290.0030.00316.54
7.4.280.0040.00416.52
7.4.270.0040.00416.39
7.4.260.0030.00316.61
7.4.250.0000.00716.59
7.4.240.0030.00416.52
7.4.230.0000.00716.65
7.4.220.0070.01116.65
7.4.210.0030.01216.57
7.4.200.0000.00716.34
7.4.190.0040.00416.42
7.4.160.0160.00016.46
7.4.150.0150.00317.40
7.4.140.0080.01017.86
7.4.130.0060.01316.55
7.4.120.0100.01216.53
7.4.110.0140.00316.41
7.4.100.0030.01816.53
7.4.90.0030.01416.60
7.4.80.0100.01419.39
7.4.70.0060.01016.36
7.4.60.0070.01016.57
7.4.50.0050.00016.43
7.4.40.0000.01822.77
7.4.30.0030.01216.46
7.4.00.0070.00714.86
7.3.330.0030.00313.20
7.3.320.0030.00313.21
7.3.310.0000.00716.19
7.3.300.0040.00416.41
7.3.290.0090.01216.42
7.3.280.0030.01316.37
7.3.270.0070.01117.40
7.3.260.0120.00916.43
7.3.250.0160.00216.47
7.3.240.0060.01716.36
7.3.230.0120.00916.48
7.3.210.0280.01816.33
7.3.200.0070.01016.62
7.3.190.0110.00716.33
7.3.180.0070.01016.45
7.3.170.0090.00616.42
7.3.160.0050.01116.31
7.3.120.0070.01015.12
7.3.10.0090.00516.79
7.3.00.0090.00316.73
7.2.330.0150.00316.45
7.2.320.0100.00716.77
7.2.310.0050.01816.82
7.2.300.0030.01316.72
7.2.290.0050.01116.71
7.2.130.0080.00516.91
7.2.120.0040.00816.96
7.2.110.0040.00916.71
7.2.100.0060.00716.83
7.2.90.0050.00817.04
7.2.80.0110.00116.95
7.2.70.0060.00616.85
7.2.60.0030.00916.96
7.2.50.0060.01016.91
7.2.40.0060.00617.01
7.2.30.0110.00416.99
7.2.20.0070.00416.93
7.2.10.0080.00416.91
7.2.00.0020.01117.65
7.1.250.0050.00915.84
7.1.100.0040.00718.05
7.1.70.0040.01217.17
7.1.60.0030.00919.24
7.1.50.0100.00716.93
7.1.00.0070.07022.41
7.0.200.0110.00616.84
7.0.140.0030.07022.10
7.0.60.0000.04319.84
7.0.50.0030.08717.87
7.0.40.0070.04020.24
7.0.30.0330.06320.26
7.0.20.0300.08320.11
7.0.10.0070.07020.33
7.0.00.0100.04720.22
5.6.280.0100.06721.09
5.6.210.0070.04020.57
5.6.200.0000.09018.18
5.6.190.0100.04020.52
5.6.180.0000.08720.62
5.6.170.0230.03720.56
5.6.160.0200.07320.45
5.6.150.0070.05318.16
5.6.140.0030.08718.28
5.6.130.0030.09018.22
5.6.120.0030.08321.00
5.6.110.0070.04020.94
5.6.100.0070.05320.96
5.6.90.0100.07720.88
5.6.80.0030.06720.41
5.5.350.0000.08320.41
5.5.340.0070.06717.93
5.5.330.0100.05020.46
5.5.320.0370.07020.20
5.5.310.0270.04320.36
5.5.300.0070.06718.08
5.5.290.0030.08017.94
5.5.280.0100.05020.78
5.5.270.0070.06720.68
5.5.260.0130.08720.77
5.5.250.0100.08320.77
5.5.240.0100.05020.08
5.4.450.2700.04019.17
5.4.440.2770.04319.16
5.4.430.2530.03319.47
5.4.420.2300.03719.51
5.4.410.2700.03019.36
5.4.400.2570.02719.14
5.4.390.2700.03019.14
5.4.380.2670.04019.13
5.4.370.2630.03719.07
5.4.360.2430.04019.22
5.4.350.2630.03018.96
5.4.340.1300.03318.95
5.4.320.2230.03019.00
5.4.310.2700.04019.23
5.4.300.2600.04319.00
5.4.290.2630.04319.13
5.4.280.2700.04019.31
5.4.270.2730.03718.84
5.4.260.3800.04019.08
5.4.250.2800.03018.87
5.4.240.2800.03019.16
5.4.230.2970.03318.95
5.4.220.2700.04018.99
5.4.210.2700.03719.18
5.4.200.2900.03319.14
5.4.190.3000.03319.12
5.4.180.2970.03718.86
5.4.170.2900.03719.07
5.4.160.2630.04019.21
5.4.150.2970.04019.29
5.4.140.2770.03016.50
5.4.130.2770.03716.34
5.4.120.2670.03316.35
5.4.110.2600.04016.29
5.4.100.3000.04016.55
5.4.90.2870.03716.54
5.4.80.2600.04316.44
5.4.70.2970.03016.34
5.4.60.2870.04016.33
5.4.50.3000.03316.52
5.4.40.2900.04316.52
5.4.30.2730.03316.55
5.4.20.2870.03716.42
5.4.10.3070.04316.52
5.4.00.2930.04015.90
5.3.290.3000.03714.82
5.3.280.2570.04714.59
5.3.270.3000.04014.59
5.3.260.3000.03714.59
5.3.250.2800.04314.59
5.3.240.2930.04014.63
5.3.230.2930.03714.72
5.3.220.2670.03314.59
5.3.210.2800.03314.48
5.3.200.2830.03314.47
5.3.190.2600.03714.50
5.3.180.2900.04014.48
5.3.170.3170.03714.54
5.3.160.3000.04014.72
5.3.150.2970.04014.50
5.3.140.2900.03314.64
5.3.130.3030.03714.55
5.3.120.3130.04314.64
5.3.110.2970.03314.46
5.3.100.3270.04014.27
5.3.90.3030.04014.00
5.3.80.2930.04013.95
5.3.70.2730.03714.00
5.3.60.3030.03713.94
5.3.50.2830.03313.86
5.3.40.3070.03313.96
5.3.30.3130.03013.97
5.3.20.3030.03313.63
5.3.10.2800.03313.68
5.3.00.3170.03713.66
5.2.170.2530.04011.09
5.2.160.2530.03011.08
5.2.150.2500.03011.09
5.2.140.2530.03011.06
5.2.130.2230.02711.19
5.2.120.2500.03011.03
5.2.110.2500.03011.02
5.2.100.2370.02311.00
5.2.90.2500.03311.03
5.2.80.2330.03311.02
5.2.70.2330.01711.07
5.2.60.1970.04711.14
5.2.50.2470.03010.94
5.2.40.1930.03711.09
5.2.30.2030.03011.05
5.2.20.1970.03310.97
5.2.10.1770.03010.82
5.2.00.1730.03310.79
5.1.60.2130.0279.99
5.1.50.2070.0209.98
5.1.40.1830.02010.14
5.1.30.1830.02310.57
5.1.20.2170.02010.50
5.1.10.1930.0309.98
5.1.00.2130.02010.06
5.0.50.1100.0278.63
5.0.40.1170.0238.41
5.0.30.1170.0338.23
5.0.20.0900.0208.13
5.0.10.0330.0338.15
5.0.00.1000.0408.24
4.4.90.0930.0175.86
4.4.80.0830.0175.88
4.4.70.0970.0205.83
4.4.60.1070.0205.92
4.4.50.0730.0175.82
4.4.40.0930.0205.79
4.4.30.0870.0175.89
4.4.20.1070.0175.81
4.4.10.1170.0205.89
4.4.00.1070.0275.89
4.3.110.0930.0175.76
4.3.100.0930.0105.79
4.3.90.1100.0205.72
4.3.80.1030.0305.83
4.3.70.0930.0135.69
4.3.60.1100.0205.74
4.3.50.0970.0105.71
4.3.40.1100.0275.68
4.3.30.0570.0275.37
4.3.20.0530.0205.37
4.3.10.0530.0205.37
4.3.00.0630.0235.37

preferences:
44.91 ms | 401 KiB | 5 Q