3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Item { public static $c; public $i; public function __construct() { $this->i = self::$c; self::$c += 1; } } $collection = new \SplDoublyLinkedList(); $collection->add(0, new Item()); $collection->add(1, new Item()); foreach ($collection as $i=>$item) { echo $i . ' ' . $item->i . "\n"; }

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.0100.01018.97
8.3.30.0070.00719.04
8.3.20.0000.00720.39
8.3.10.0040.00423.57
8.3.00.0040.00419.38
8.2.170.0070.00722.96
8.2.160.0060.00920.52
8.2.150.0110.00424.18
8.2.140.0120.00624.66
8.2.130.0040.00426.16
8.2.120.0000.00720.98
8.2.110.0040.00420.44
8.2.100.0080.00318.28
8.2.90.0030.00619.36
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0080.00018.05
8.2.50.0000.00918.07
8.2.40.0020.00518.16
8.2.30.0060.00319.43
8.2.20.0030.00617.74
8.2.10.0050.00218.00
8.2.00.0050.00317.75
8.1.270.0000.00923.91
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0160.00322.04
8.1.230.0000.01019.14
8.1.220.0030.00517.79
8.1.210.0040.00418.77
8.1.200.0080.00017.25
8.1.190.0080.00017.09
8.1.180.0040.00418.10
8.1.170.0070.00418.50
8.1.160.0000.00722.08
8.1.150.0030.00618.81
8.1.140.0070.00017.45
8.1.130.0030.00317.87
8.1.120.0000.00717.38
8.1.110.0080.00017.49
8.1.100.0030.00517.39
8.1.90.0040.00417.38
8.1.80.0000.00817.34
8.1.70.0000.00717.45
8.1.60.0060.00317.58
8.1.50.0040.00417.52
8.1.40.0040.00417.41
8.1.30.0000.00817.48
8.1.20.0040.00417.63
8.1.10.0040.00417.61
8.1.00.0080.00017.52
8.0.300.0030.00518.77
8.0.290.0000.00816.63
8.0.280.0000.00718.45
8.0.270.0030.00517.18
8.0.260.0000.00617.25
8.0.250.0030.00316.86
8.0.240.0040.00416.79
8.0.230.0070.00016.83
8.0.220.0000.00716.88
8.0.210.0080.00016.85
8.0.200.0040.00416.88
8.0.190.0000.00816.96
8.0.180.0090.00016.83
8.0.170.0000.00816.82
8.0.160.0030.00316.90
8.0.150.0050.00316.78
8.0.140.0040.00416.91
8.0.130.0030.00313.32
8.0.120.0040.00416.79
8.0.110.0050.00316.93
8.0.100.0040.00416.81
8.0.90.0030.00516.77
8.0.80.0100.00716.85
8.0.70.0000.00816.67
8.0.60.0000.00716.94
8.0.50.0080.00016.71
8.0.30.0110.00917.26
8.0.20.0090.00917.40
8.0.10.0040.00417.11
8.0.00.0150.00316.64
7.4.330.0030.00315.12
7.4.320.0060.00016.58
7.4.300.0000.00716.53
7.4.290.0040.00416.40
7.4.280.0000.01216.50
7.4.270.0000.00716.53
7.4.260.0030.00716.60
7.4.250.0070.00016.48
7.4.240.0020.00516.61
7.4.230.0000.00616.71
7.4.220.0080.01116.63
7.4.210.0100.00316.64
7.4.200.0030.00316.42
7.4.160.0060.01116.52
7.4.150.0090.00817.40
7.4.140.0150.00517.86
7.4.130.0060.01016.49
7.4.120.0080.00916.52
7.4.110.0090.00616.43
7.4.100.0100.00616.53
7.4.90.0170.00016.50
7.4.80.0170.00719.39
7.4.70.0110.00616.58
7.4.60.0140.01416.58
7.4.50.0000.00716.59
7.4.40.0060.01216.38
7.4.30.0070.01316.59
7.4.00.0040.00914.98
7.3.330.0030.00313.22
7.3.320.0000.00613.29
7.3.310.0030.00316.16
7.3.300.0000.00616.30
7.3.290.0090.00616.21
7.3.280.0060.01116.31
7.3.270.0040.01517.40
7.3.260.0120.01216.43
7.3.250.0110.00816.53
7.3.240.0110.00716.66
7.3.230.0080.00816.56
7.3.210.0100.00716.65
7.3.200.0110.00719.39
7.3.190.0120.00916.58
7.3.180.0050.01116.46
7.3.170.0040.01216.39
7.3.160.0030.01416.51
7.3.120.0030.01515.11
7.3.110.0030.01014.75
7.3.100.0100.00314.81
7.3.90.0070.01014.73
7.3.80.0100.00314.84
7.3.70.0070.01014.95
7.3.60.0070.00714.89
7.3.50.0070.00614.68
7.3.40.0030.00714.68
7.3.30.0070.00714.82
7.3.20.0070.00716.78
7.3.10.0000.01316.74
7.3.00.0080.00416.45
7.2.330.0070.01116.81
7.2.320.0060.01216.74
7.2.310.0090.00916.49
7.2.300.0130.01116.47
7.2.290.0060.01116.62
7.2.250.0070.01115.20
7.2.240.0090.00914.75
7.2.230.0080.00415.15
7.2.220.0090.00615.26
7.2.210.0090.00615.12
7.2.200.0070.01015.16
7.2.190.0030.00615.20
7.2.180.0030.01315.16
7.2.170.0030.01015.20
7.2.120.0110.00416.84
7.2.110.0060.00616.71
7.2.100.0040.01116.82
7.2.90.0090.00316.70
7.2.80.0000.01016.51
7.2.70.0070.00716.78
7.2.60.0080.00716.72
7.2.50.0030.01217.04
7.2.40.0060.00616.85
7.2.30.0030.01016.79
7.2.20.0140.00016.83
7.2.10.0040.00816.99
7.2.00.0020.01217.93
7.1.330.0120.00315.64
7.1.320.0060.00615.75
7.1.310.0000.01315.89
7.1.300.0030.00615.85
7.1.290.0090.00615.76
7.1.280.0030.01015.59
7.1.270.0070.01015.84
7.1.260.0060.00615.40
7.1.240.0030.01215.74
7.1.230.0000.01015.99
7.1.220.0030.01215.55
7.1.210.0030.00915.70
7.1.200.0080.00715.97
7.1.190.0090.00615.82
7.1.180.0040.00415.67
7.1.170.0040.00415.78
7.1.160.0000.01115.73
7.1.150.0040.00415.95
7.1.140.0040.01115.89
7.1.130.0060.00815.85
7.1.120.0060.00615.98
7.1.110.0110.00015.91
7.1.100.0030.01017.03
7.1.90.0100.00315.71
7.1.80.0080.00315.54
7.1.70.0070.00616.55
7.1.60.0060.00917.76
7.1.50.0050.01316.28
7.1.40.0040.01115.80
7.1.30.0040.00415.59
7.1.20.0070.00715.77
7.1.10.0100.00315.59
7.1.00.0000.03019.27
7.0.320.0120.00015.36
7.0.310.0070.00715.61
7.0.300.0030.01015.20
7.0.290.0060.00615.47
7.0.280.0070.00415.50
7.0.270.0040.00415.18
7.0.260.0040.00815.35
7.0.250.0090.00615.51
7.0.240.0030.01015.38
7.0.230.0100.00015.40
7.0.220.0000.01315.60
7.0.210.0030.01015.43
7.0.200.0040.00316.18
7.0.190.0040.01115.22
7.0.180.0090.00615.31
7.0.170.0060.00615.32
7.0.160.0030.01315.57
7.0.150.0030.00815.49
7.0.140.0030.04018.90
7.0.130.0100.00315.63
7.0.120.0110.00015.18
7.0.110.0030.01015.32
7.0.100.0060.00615.35
7.0.90.0040.00815.32
7.0.80.0040.00415.33
7.0.70.0070.00015.09
7.0.60.0080.04217.72
7.0.50.0080.02316.74
7.0.40.0120.04416.90
7.0.30.0260.02316.91
7.0.20.0090.02916.78
7.0.10.0070.02416.88
7.0.00.0030.04016.86
5.6.380.0040.00414.14
5.6.370.0040.00914.46
5.6.360.0130.00014.30
5.6.350.0060.00914.23
5.6.340.0000.01114.13
5.6.330.0040.01114.37
5.6.320.0060.00614.45
5.6.310.0060.00313.96
5.6.300.0000.01214.67
5.6.290.0000.00714.64
5.6.280.0050.04017.79
5.6.270.0100.00314.36
5.6.260.0000.01214.36
5.6.250.0040.00414.08
5.6.240.0110.00414.47
5.6.230.0040.01114.51
5.6.220.0100.00314.21
5.6.210.0070.04417.53
5.6.200.0050.03116.31
5.6.190.0050.02217.57
5.6.180.0170.02417.31
5.6.170.0120.02517.45
5.6.160.0080.02817.43
5.6.150.0060.02416.27
5.6.140.0050.04516.27
5.6.130.0090.04416.20
5.6.120.0080.03317.50
5.6.110.0070.04617.60
5.6.100.0080.03217.71
5.6.90.0060.04317.84
5.6.80.0130.04117.30
5.6.70.0030.01014.65
5.6.60.0020.00514.18
5.6.50.0060.01014.50
5.6.40.0090.00314.21
5.6.30.0040.00714.07
5.6.20.0070.00414.43
5.6.10.0090.00314.26
5.6.00.0090.00614.41
5.5.380.0040.00711.30
5.5.370.0080.00411.43
5.5.360.0020.00211.27
5.5.350.0150.04015.80
5.5.340.0030.02014.61
5.5.330.0050.02515.88
5.5.320.0170.02515.79
5.5.310.0100.02515.76
5.5.300.0050.03314.72
5.5.290.0070.04214.64
5.5.280.0080.03816.09
5.5.270.0070.04316.11
5.5.260.0080.03616.12
5.5.250.0090.04215.87
5.5.240.0150.04015.75
5.5.230.0030.00311.27
5.5.220.0060.00311.27
5.5.210.0100.00011.27
5.5.200.0030.00311.27
5.5.190.0000.00911.27
5.5.180.0040.00711.38
5.5.170.0040.00814.30
5.5.160.0050.00011.36
5.5.150.0000.00611.41
5.5.140.0000.00611.27
5.5.130.0000.00811.31
5.5.120.0030.00611.36
5.5.110.0040.00411.32
5.5.100.0000.01011.27
5.5.90.0000.00611.27
5.5.80.0030.00611.38
5.5.70.0100.00011.27
5.5.60.0060.00311.27
5.5.50.0040.00711.27
5.5.40.0030.00311.27
5.5.30.0050.00311.27
5.5.20.0080.00311.42
5.5.10.0060.00311.27
5.5.00.0030.00311.36
5.4.450.0230.02615.29
5.4.440.0180.03215.34
5.4.430.0190.02315.27
5.4.420.0170.02015.42
5.4.410.0200.01715.15
5.4.400.0180.01815.25
5.4.390.0060.02615.20
5.4.380.0260.02814.89
5.4.370.0200.02815.04
5.4.360.0200.04014.94
5.4.350.0190.03014.93
5.4.340.0240.02415.00
5.4.330.0100.00011.27
5.4.320.0070.02011.88
5.4.310.0070.02111.88
5.4.300.0090.02011.89
5.4.290.0060.02211.88
5.4.280.0110.01811.83
5.4.270.0050.02211.83
5.4.260.0070.02111.83
5.4.250.0080.02011.83
5.4.240.0070.02011.83
5.4.230.0070.02011.83
5.4.220.0080.01911.83
5.4.210.0090.01911.83
5.4.200.0100.02011.83
5.4.190.0040.02511.82
5.4.180.0060.02311.83
5.4.170.0100.02211.83
5.4.160.0070.02011.83
5.4.150.0080.01911.83
5.4.140.0090.01911.67
5.4.130.0090.01811.66
5.4.120.0070.02011.64
5.4.110.0080.02011.64
5.4.100.0050.02311.64
5.4.90.0080.02111.64
5.4.80.0060.02211.64
5.4.70.0070.02011.64
5.4.60.0080.01911.64
5.4.50.0070.02011.64
5.4.40.0060.02111.63
5.4.30.0070.02311.63
5.4.20.0050.02111.63
5.4.10.0100.01711.63
5.4.00.0060.02111.38
5.3.290.0080.02112.04
5.3.280.0020.03011.99
5.3.270.0080.02212.00
5.3.260.0050.02312.00
5.3.250.0080.01911.99
5.3.240.0080.01911.99
5.3.230.0080.01911.99
5.3.220.0080.02011.97
5.3.210.0100.01811.98
5.3.200.0050.02311.97
5.3.190.0060.02211.97
5.3.180.0050.02011.97
5.3.170.0040.02311.97
5.3.160.0020.02511.97
5.3.150.0050.02211.97
5.3.140.0040.02111.97
5.3.130.0070.01911.96
5.3.120.0040.02211.96
5.3.110.0070.02211.96
5.3.100.0060.02011.70
5.3.90.0080.01711.69
5.3.80.0090.01711.69
5.3.70.0050.02111.69
5.3.60.0090.01811.68
5.3.50.0040.02211.66
5.3.40.0070.01811.65
5.3.30.0080.02011.63
5.3.20.0060.02211.53
5.3.10.0060.02111.50
5.3.00.0100.01911.50
5.2.170.0050.01810.25
5.2.160.0040.01910.25
5.2.150.0060.01710.25
5.2.140.0050.01810.24
5.2.130.0040.01810.23
5.2.120.0050.01710.22
5.2.110.0070.01410.23
5.2.100.0060.01710.23
5.2.90.0060.01910.23
5.2.80.0070.01710.23
5.2.70.0050.01910.22
5.2.60.0040.01910.20
5.2.50.0070.01610.18
5.2.40.0050.01710.17
5.2.30.0070.01610.16
5.2.20.0050.01610.16
5.2.10.0040.02110.11
5.2.00.0080.01910.04
5.1.60.0060.0119.68
5.1.50.0020.0159.68
5.1.40.0040.0169.67
5.1.30.0020.0179.85
5.1.20.0060.0139.86
5.1.10.0070.0129.72
5.1.00.0090.0129.72
5.0.50.0020.0158.96
5.0.40.0070.0088.88
5.0.30.0050.0178.79
5.0.20.0050.0148.78
5.0.10.0070.0148.76
5.0.00.0050.0168.76
4.4.90.0020.0108.03
4.4.80.0050.0078.01
4.4.70.0030.0108.01
4.4.60.0040.0098.01
4.4.50.0020.0118.02
4.4.40.0050.0137.99
4.4.30.0020.0118.01
4.4.20.0050.0078.06
4.4.10.0040.0118.06
4.4.00.0040.0178.02
4.3.110.0020.0097.97
4.3.100.0040.0107.97
4.3.90.0040.0087.95
4.3.80.0020.0137.93
4.3.70.0010.0107.95
4.3.60.0030.0097.95
4.3.50.0020.0097.95
4.3.40.0030.0137.90
4.3.30.0020.0097.28
4.3.20.0030.0097.27
4.3.10.0030.0097.25
4.3.00.0040.01114.91

preferences:
42.85 ms | 400 KiB | 5 Q