3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xs = array(3, 4, 5, 7); $xs2 = new ArrayObject($xs); $it = $xs2->getIterator(); $it->rewind(); printf("%d\n", current($it)); printf("%d\n", $it->current()); $it->next(); $it->next(); printf("%d\n", current($it));

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.0130.00718.30
8.3.50.0110.00722.09
8.3.40.0090.00918.71
8.3.30.0030.01019.05
8.3.20.0040.00420.16
8.3.10.0030.00522.09
8.3.00.0090.00022.25
8.2.180.0100.01016.88
8.2.170.0090.00622.96
8.2.160.0100.00319.04
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00319.23
8.2.110.0060.00322.31
8.2.100.0070.00419.45
8.2.90.0060.00319.27
8.2.80.0040.00417.97
8.2.70.0050.00317.50
8.2.60.0060.00617.91
8.2.50.0030.00618.07
8.2.40.0080.00019.76
8.2.30.0000.00718.05
8.2.20.0020.00517.60
8.2.10.0000.00717.60
8.2.00.0040.00417.56
8.1.280.0100.00725.92
8.1.270.0080.00321.96
8.1.260.0080.00026.35
8.1.250.0070.00328.09
8.1.240.0060.00323.96
8.1.230.0110.00019.14
8.1.220.0040.00417.76
8.1.210.0040.00418.77
8.1.200.0030.01017.23
8.1.190.0030.00617.39
8.1.180.0040.00418.69
8.1.170.0000.00818.58
8.1.160.0040.00422.20
8.1.150.0050.00218.64
8.1.140.0050.00317.42
8.1.130.0070.00017.75
8.1.120.0040.00417.41
8.1.110.0030.00617.38
8.1.100.0000.00817.31
8.1.90.0000.00717.29
8.1.80.0000.00817.37
8.1.70.0000.00817.39
8.1.60.0030.00617.48
8.1.50.0000.00817.41
8.1.40.0050.00317.35
8.1.30.0000.00717.62
8.1.20.0040.00417.58
8.1.10.0020.00517.46
8.1.00.0040.00417.41
8.0.300.0000.00718.77
8.0.290.0000.00717.05
8.0.280.0030.00318.42
8.0.270.0000.00717.26
8.0.260.0000.00616.76
8.0.250.0000.00616.80
8.0.240.0030.00316.94
8.0.230.0000.00716.86
8.0.220.0030.00316.84
8.0.210.0050.00216.79
8.0.200.0030.00316.87
8.0.190.0040.00416.73
8.0.180.0040.00416.82
8.0.170.0040.00416.84
8.0.160.0000.00816.87
8.0.150.0040.00316.80
8.0.140.0000.00716.77
8.0.130.0030.00313.25
8.0.120.0000.00716.82
8.0.110.0000.00816.75
8.0.100.0040.00416.80
8.0.90.0030.00516.78
8.0.80.0060.00916.86
8.0.70.0020.00516.73
8.0.60.0040.00416.89
8.0.50.0080.00016.80
8.0.30.0110.00817.10
8.0.20.0110.00817.40
8.0.10.0040.00416.96
8.0.00.0120.00816.60
7.4.330.0020.00215.01
7.4.320.0030.00316.46
7.4.300.0000.00616.51
7.4.290.0040.00416.56
7.4.280.0030.00316.37
7.4.270.0000.00816.49
7.4.260.0000.00716.46
7.4.250.0000.00716.45
7.4.240.0030.00416.49
7.4.230.0000.00716.34
7.4.220.0170.00716.54
7.4.210.0060.01116.61
7.4.200.0070.00016.43
7.4.190.0070.00016.55
7.4.160.0150.00616.52
7.4.150.0140.00517.40
7.4.140.0070.01217.86
7.4.130.0080.01016.42
7.4.120.0110.00516.56
7.4.110.0040.01216.55
7.4.100.0070.01016.30
7.4.90.0130.00616.55
7.4.80.0030.01919.39
7.4.70.0100.00716.24
7.4.60.0040.01216.54
7.4.50.0000.00816.27
7.4.40.0030.01322.77
7.4.30.0060.01016.46
7.4.00.0050.01214.82
7.3.330.0020.00212.84
7.3.320.0050.00012.91
7.3.310.0030.00316.09
7.3.300.0000.00616.13
7.3.290.0070.00716.19
7.3.280.0070.00816.21
7.3.270.0170.00017.40
7.3.260.0060.01416.11
7.3.250.0110.00616.32
7.3.240.0060.01016.39
7.3.230.0190.00316.39
7.3.210.0040.01316.14
7.3.200.0060.00919.39
7.3.190.0110.00616.12
7.3.180.0130.00716.30
7.3.170.0060.00916.46
7.3.160.0120.00316.25
7.3.120.0070.01014.56
7.3.110.0080.00914.70
7.3.100.0030.01014.63
7.3.90.0090.00614.87
7.3.80.0060.00914.59
7.3.70.0070.00414.75
7.3.60.0130.00014.75
7.3.50.0040.01114.41
7.3.40.0070.00714.63
7.3.30.0100.01014.86
7.3.20.0090.00916.19
7.3.10.0070.00716.48
7.3.00.0070.01116.66
7.2.330.0070.01016.52
7.2.320.0160.00016.55
7.2.310.0030.01316.60
7.2.300.0130.00316.52
7.2.290.0060.00916.56
7.2.250.0040.01515.00
7.2.240.0000.02014.99
7.2.230.0070.01014.77
7.2.220.0040.01114.93
7.2.210.0090.00614.83
7.2.200.0030.00614.79
7.2.190.0060.00314.77
7.2.180.0090.00014.95
7.2.170.0070.01114.82
7.1.330.0090.00915.96
7.1.320.0080.00615.57
7.1.310.0070.01015.66
7.1.300.0090.00315.75
7.1.290.0030.00715.76
7.1.280.0030.01315.80
7.1.270.0030.01315.74
7.1.260.0090.00915.72
7.1.70.0180.00317.11
7.1.60.0160.01019.82
7.1.50.0130.01016.57
7.1.00.0070.07322.51
7.0.200.0000.01316.27
7.0.140.0070.07022.21
7.0.60.0070.08020.00
7.0.50.0030.08717.81
7.0.40.0100.06020.24
7.0.30.0370.07020.00
7.0.20.0300.03320.18
7.0.10.0070.09020.27
7.0.00.0070.07720.16
5.6.280.0070.07021.04
5.6.210.0070.03720.50
5.6.200.0070.08018.17
5.6.190.0030.04320.49
5.6.180.0200.07320.61
5.6.170.0200.04720.41
5.6.160.0070.06020.48
5.6.150.0200.06318.21
5.6.140.0130.06318.14
5.6.130.0030.05318.09
5.6.120.0200.07021.03
5.6.110.0100.03720.88
5.6.100.0070.07321.06
5.6.90.0170.07020.96
5.6.80.0030.06720.54
5.5.350.4100.03720.43
5.5.340.0070.05717.95
5.5.330.0130.07720.19
5.5.320.0300.08020.29
5.5.310.0330.04320.16
5.5.300.0030.05317.87
5.5.290.0100.08017.95
5.5.280.0100.04720.84
5.5.270.0130.07720.72
5.5.260.0130.07020.79
5.5.250.0170.07320.68
5.5.240.0070.07320.18
5.4.450.0400.03719.14
5.4.440.0430.03719.41
5.4.430.0300.04019.40
5.4.420.0800.03319.39
5.4.410.0330.05019.41
5.4.400.0500.04319.04
5.4.390.0870.05019.25
5.4.380.0270.05718.74
5.4.370.0430.04718.46
5.4.360.0370.05718.50
5.4.350.0300.05718.74
5.4.340.0400.04718.74
5.4.320.0040.04012.46
5.4.310.0090.03512.45
5.4.300.0090.03512.46
5.4.290.0060.04912.45
5.4.280.0080.03812.35
5.4.270.0090.04112.35
5.4.260.0230.05718.73
5.4.250.0000.06018.83
5.4.240.0030.06018.77
5.4.230.0100.05318.70
5.4.220.0070.06318.79
5.4.210.0130.06318.88
5.4.200.0200.04019.02
5.4.190.0070.05318.86
5.4.180.0130.07018.69
5.4.170.0030.05718.87
5.4.160.0130.05018.71
5.4.150.0130.05718.73
5.4.140.0100.05016.38
5.4.130.0030.06316.28
5.4.120.0070.05016.41
5.4.110.0130.06316.41
5.4.100.0130.04316.49
5.4.90.0070.05016.50
5.4.80.0100.04316.50
5.4.70.0030.05716.28
5.4.60.0070.05016.29
5.4.50.0070.05016.32
5.4.40.0100.07016.55
5.4.30.0170.04016.49
5.4.20.0100.06316.20
5.4.10.0070.06016.43
5.4.00.0130.05015.89
5.3.290.0060.03912.80
5.3.280.0130.05314.29
5.3.270.0170.07014.64
5.3.260.0100.04714.52
5.3.250.0030.05314.38
5.3.240.0170.06014.60
5.3.230.0130.04714.69
5.3.220.0070.05014.34
5.3.210.0070.05314.45
5.3.200.0100.04714.42
5.3.190.0130.06014.45
5.3.180.0070.05014.45
5.3.170.0070.06714.40
5.3.160.0000.05714.65
5.3.150.0100.04714.43
5.3.140.0100.07014.32
5.3.130.0100.04714.39
5.3.120.0030.08014.59
5.3.110.0170.07014.24
5.3.100.0170.05714.05
5.3.90.0170.04313.71
5.3.80.0130.06013.71
5.3.70.0170.05314.16
5.3.60.0070.05014.01
5.3.50.0100.05713.95
5.3.40.0170.06713.79
5.3.30.0130.06713.62
5.3.20.0070.04713.73
5.3.10.0030.04713.34
5.3.00.0100.05713.50
5.2.170.0170.04011.23
5.2.160.0170.04311.07
5.2.150.0000.04711.14
5.2.140.0070.03711.16
5.2.130.0000.06010.86
5.2.120.0030.04011.20
5.2.110.0030.05711.11
5.2.100.0000.04011.10
5.2.90.0000.04311.00
5.2.80.0030.04711.00
5.2.70.0070.04010.85
5.2.60.0100.04010.93
5.2.50.0100.03710.95
5.2.40.0030.04011.02
5.2.30.0030.04311.12
5.2.20.0030.04010.95
5.2.10.0030.05310.93
5.2.00.0130.05010.79
5.1.60.0030.0379.92
5.1.50.0030.0409.90
5.1.40.0030.0379.75
5.1.30.0070.04710.25
5.1.20.0070.03710.28
5.1.10.0070.0379.84
5.1.00.0000.06010.10
5.0.50.0030.0278.43
5.0.40.0030.0338.64
5.0.30.0000.0438.31
5.0.20.0070.0277.97
5.0.10.0000.0308.20
5.0.00.0130.0337.98
4.4.90.0030.0236.10
4.4.80.0030.0236.10
4.4.70.0100.0206.09
4.4.60.0000.0236.09
4.4.50.0070.0176.09
4.4.40.0000.0376.09
4.4.30.0100.0206.09
4.4.20.0030.0306.09
4.4.10.0070.0176.09
4.4.00.0000.0336.09
4.3.110.0000.0236.09
4.3.100.0070.0176.09
4.3.90.0030.0276.09
4.3.80.0000.0406.09
4.3.70.0000.0236.09
4.3.60.0030.0206.09
4.3.50.0030.0306.09
4.3.40.0030.0306.09
4.3.30.0000.0236.09
4.3.20.0030.0236.09
4.3.10.0000.0236.09
4.3.00.0200.01312.80

preferences:
47.22 ms | 401 KiB | 5 Q