3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $foo = 'foo'; } class Set extends ArrayIterator { public $bar = 'bar'; } $array = [ new Foo(), ]; $set = new Set($array); var_dump(current($set));

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.4.20.0070.00319.02
8.4.10.0000.00919.67
8.3.140.0040.00416.70
8.3.130.0090.01216.70
8.3.120.0060.01218.75
8.3.110.0000.00820.94
8.3.100.0030.01216.45
8.3.90.0100.00026.77
8.3.80.0070.00319.36
8.3.70.0180.00416.58
8.3.60.0070.00716.62
8.3.50.0060.00818.05
8.3.40.0160.00618.88
8.3.30.0090.00618.50
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0060.00326.16
8.2.260.0040.00420.97
8.2.250.0120.00316.61
8.2.240.0130.00718.85
8.2.230.0080.00022.58
8.2.220.0140.00424.06
8.2.210.0040.00426.77
8.2.200.0090.00018.88
8.2.190.0160.00318.29
8.2.180.0120.00625.92
8.2.170.0060.01519.04
8.2.160.0070.00722.96
8.2.150.0030.00625.66
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0000.00721.06
8.2.110.0060.00920.35
8.2.100.0120.00017.91
8.2.90.0000.00817.88
8.2.80.0080.00018.54
8.2.70.0080.00017.93
8.2.60.0000.00918.22
8.2.50.0000.01118.10
8.2.40.0080.00021.25
8.2.30.0000.00819.11
8.2.20.0080.00417.93
8.2.10.0000.00721.03
8.2.00.0000.00719.21
8.1.310.0140.00318.45
8.1.300.0090.00016.33
8.1.290.0060.00630.84
8.1.280.0150.00325.92
8.1.270.0050.00223.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00620.94
8.1.230.0000.01220.88
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0040.00417.23
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0000.00918.45
8.1.160.0000.00818.88
8.1.150.0040.00418.84
8.1.140.0040.00418.80
8.1.130.0000.00720.05
8.1.120.0000.00717.45
8.1.110.0040.00417.42
8.1.100.0090.00017.29
8.1.90.0040.00417.32
8.1.80.0000.00817.42
8.1.70.0090.00017.41
8.1.60.0060.00317.62
8.1.50.0090.00017.49
8.1.40.0030.00617.54
8.1.30.0080.00017.57
8.1.20.0000.00817.58
8.1.10.0040.00417.55
8.1.00.0040.00417.52
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0000.00818.54
8.0.270.0050.00216.79
8.0.260.0000.00618.38
8.0.250.0040.00416.93
8.0.240.0000.00816.95
8.0.230.0000.00816.90
8.0.220.0030.00316.84
8.0.210.0000.00916.84
8.0.200.0000.00716.93
8.0.190.0060.00316.96
8.0.180.0070.00016.98
8.0.170.0090.00016.93
8.0.160.0040.00416.82
8.0.150.0000.00816.72
8.0.140.0000.00716.90
8.0.130.0030.00313.33
8.0.120.0000.00816.83
8.0.110.0000.00716.88
8.0.100.0000.00716.89
8.0.90.0060.00316.91
8.0.80.0140.00516.80
8.0.70.0050.00316.93
8.0.60.0000.00716.72
8.0.50.0040.00416.90
8.0.30.0060.01116.83
8.0.20.0060.01116.87
8.0.10.0090.00816.96
8.0.00.0090.00717.00
7.4.330.0030.00315.55
7.4.320.0000.00616.44
7.4.300.0040.00416.54
7.4.290.0060.00016.52
7.4.280.0000.00816.51
7.4.270.0030.00316.50
7.4.260.0000.00513.24
7.4.250.0000.00816.54
7.4.240.0030.00516.56
7.4.230.0070.00016.39
7.4.220.0000.00716.38
7.4.210.0110.00516.51
7.4.200.0000.00716.38
7.4.160.0050.01416.65
7.4.150.0100.00716.57
7.4.140.0070.00916.47
7.4.130.0040.01016.54
7.4.120.0030.01416.45
7.4.110.0080.00916.34
7.4.100.0120.00716.43
7.4.90.0070.00916.36
7.4.80.0060.00916.39
7.4.70.0080.01016.42
7.4.60.0080.01016.46
7.4.50.0050.01116.43
7.4.40.0070.01016.44
7.4.30.0110.00416.39
7.4.20.0110.00616.40
7.4.10.0040.01316.40
7.4.00.0100.00916.55
7.3.330.0000.00716.27
7.3.320.0030.00613.19
7.3.310.0040.00416.13
7.3.300.0040.00416.24
7.3.290.0080.00616.23
7.3.270.0090.00616.19
7.3.260.0050.00916.24
7.3.250.0130.00416.14
7.3.240.0050.01116.19
7.3.230.0070.01016.21
7.3.220.0050.01416.10
7.3.210.0130.00316.11
7.3.200.0040.01416.11
7.3.190.0080.00816.09
7.3.180.0080.00816.11
7.3.170.0080.00716.18
7.3.160.0070.01216.12
7.3.150.0070.00916.18
7.3.140.0050.01116.09
7.3.130.0080.00816.18
7.3.120.0100.00916.11
7.3.110.0090.01316.08
7.3.100.0160.00716.13
7.3.90.0100.00616.43
7.3.80.0060.01216.12
7.3.70.0120.00516.27
7.3.60.0080.01016.33
7.3.50.0060.01116.30
7.3.40.0110.00716.27
7.3.30.0090.00716.36
7.3.20.0090.00816.34
7.3.10.0290.00616.26
7.3.00.0050.01416.32
7.2.340.0250.00716.24
7.2.330.0170.00916.31
7.2.320.0150.01116.23
7.2.310.0070.01916.32
7.2.300.0150.00916.26
7.2.290.0170.01216.21
7.2.280.0240.01016.30
7.2.270.0150.01516.19
7.2.260.0230.00816.21
7.2.250.0190.01616.32
7.2.240.0210.01316.23
7.2.230.0230.00816.27
7.2.220.0240.00716.21
7.2.210.0380.01416.31
7.2.200.0230.00716.39
7.2.190.0230.00916.38
7.2.180.0230.00816.41
7.2.170.0230.00716.41
7.2.160.0200.00716.45
7.2.150.0240.00416.51
7.2.140.0130.01616.50
7.2.130.0260.01116.63
7.2.120.0300.00616.60
7.2.110.0240.00716.62
7.2.100.0220.01416.64
7.2.90.0170.00916.48
7.2.80.0270.00616.49
7.2.70.0130.01616.58
7.2.60.1110.00916.55
7.2.50.0180.01216.52
7.2.40.0280.00616.61
7.2.30.0250.00816.53
7.2.20.0180.01516.67
7.2.10.0200.00816.61
7.2.00.0220.00816.66
7.1.330.0240.00415.55
7.1.320.0180.00915.52
7.1.310.0320.01115.46
7.1.300.0190.01315.47
7.1.290.0130.01615.50
7.1.280.0200.01015.55
7.1.270.0220.01015.54
7.1.260.0200.00715.49
7.1.250.0340.01515.47
7.1.240.1760.01515.47
7.1.230.0750.01015.50
7.1.220.0250.00615.49
7.1.210.0230.00515.47
7.1.200.0190.00615.44
7.1.190.0240.00415.45
7.1.180.0230.00815.42
7.1.170.0180.01415.44
7.1.160.0260.00315.46
7.1.150.0170.01015.53
7.1.140.0110.01515.44
7.1.130.0190.00815.45
7.1.120.0160.01215.28
7.1.110.0150.00915.35
7.1.100.0430.00715.42
7.1.90.0130.01915.38
7.1.80.0210.01115.52
7.1.70.0190.00815.16
7.1.60.0200.01415.48
7.1.50.0190.00715.45
7.1.40.0190.00615.52
7.1.30.0180.00915.50
7.1.20.0150.01215.34
7.1.10.0210.00915.45
7.1.00.0210.01215.28
7.0.330.0200.01015.14
7.0.320.0090.01715.21
7.0.310.0120.01515.17
7.0.300.0240.00515.17
7.0.290.0240.00715.25
7.0.280.0190.01315.15
7.0.270.0170.01015.11
7.0.260.0140.01415.17
7.0.250.0260.00315.29
7.0.240.0100.01315.20
7.0.230.0250.00415.12
7.0.220.0180.01215.14
7.0.210.0110.01415.13
7.0.200.0140.01315.15
7.0.190.0170.01115.16
7.0.180.0270.00315.18
7.0.170.0260.00815.24
7.0.160.0190.00715.22
7.0.150.0230.00815.04
7.0.140.0160.01315.05
7.0.130.0220.00615.24
7.0.120.0170.01615.18
7.0.110.0250.00415.13
7.0.100.0280.00315.07
7.0.90.0140.01115.05
7.0.80.0220.00315.13
7.0.70.0160.01015.11
7.0.60.0370.00715.24
7.0.50.0290.00615.11
7.0.40.0160.01015.25
7.0.30.0190.00815.24
7.0.20.0270.01615.12
7.0.10.0180.00915.21
7.0.00.0320.01115.16
5.6.400.0110.00915.84
5.6.390.0190.01315.79
5.6.380.0130.01415.77
5.6.370.0210.00615.83
5.6.360.0120.01215.82
5.6.350.0210.00715.77
5.6.340.0230.00715.71
5.6.330.0240.00615.79
5.6.320.0130.01615.79
5.6.310.0180.01115.71
5.6.300.0150.01415.70
5.6.290.0200.00815.96
5.6.280.0090.01716.02
5.6.270.0130.01315.82
5.6.260.0160.01615.72
5.6.250.0210.01315.76
5.6.240.0210.00515.73
5.6.230.0240.01015.86
5.6.220.0130.02015.88
5.6.210.0290.00615.94
5.6.200.0180.01115.93
5.6.190.0190.00816.00
5.6.180.0150.01215.94
5.6.170.0150.01215.97
5.6.160.0190.01116.00
5.6.150.0170.01315.97
5.6.140.0200.01015.82
5.6.130.0290.00416.09
5.6.120.0150.01016.00
5.6.110.0180.01515.80
5.6.100.0220.00715.84
5.6.90.0180.00715.76
5.6.80.0220.00615.78
5.6.70.0230.01315.89
5.6.60.0130.01016.00
5.6.50.0080.01415.82
5.6.40.0180.00815.87
5.6.30.0210.01115.80
5.6.20.0150.01115.76
5.6.10.0140.01115.60
5.6.00.0200.01015.61
5.5.380.0250.00715.85
5.5.370.0150.01115.85
5.5.360.0260.00715.71
5.5.350.0190.01015.80
5.5.340.0190.01015.75
5.5.330.0170.01015.80
5.5.320.0170.00915.70
5.5.310.0240.01015.66
5.5.300.0260.00615.65
5.5.290.0260.00415.72
5.5.280.0230.00915.81
5.5.270.0180.00915.77
5.5.260.0170.00915.69
5.5.250.0160.01315.86
5.5.240.0290.00315.97
5.5.230.0170.00715.71
5.5.220.0140.00915.78
5.5.210.0130.01315.78
5.5.200.0120.01515.69
5.5.190.0230.00415.61
5.5.180.0170.01015.61
5.5.170.0330.00715.66
5.5.160.0110.01415.72
5.5.150.0210.00615.56
5.5.140.0160.01015.51
5.5.130.0210.00415.47
5.5.120.0170.00815.53
5.5.110.0160.01315.47
5.5.100.0170.00815.71
5.5.90.0200.00615.68
5.5.80.0210.00515.66
5.5.70.0170.01015.73
5.5.60.0170.01015.65
5.5.50.0230.00415.74
5.5.40.0200.00315.86
5.5.30.0320.00315.77
5.5.20.0150.01515.92
5.5.10.0130.01315.77
5.5.00.0150.01115.65
5.4.450.0110.00712.62
5.4.440.0180.00412.69
5.4.430.0240.01212.70
5.4.420.0110.00812.61
5.4.410.0150.00612.82
5.4.400.0130.00612.61
5.4.390.0150.00912.55
5.4.380.0100.00712.49
5.4.370.0180.00612.59
5.4.360.0140.00712.61
5.4.350.0170.00712.46
5.4.340.0140.00312.59
5.4.330.0140.00612.55
5.4.320.0100.01012.68
5.4.310.0130.00512.55
5.4.300.0150.00612.59
5.4.290.0130.00912.57
5.4.280.0130.00512.55
5.4.270.0190.00712.65
5.4.260.0140.00712.59
5.4.250.0100.01012.61
5.4.240.0130.01312.61
5.4.230.0170.00412.39
5.4.220.0060.01312.35
5.4.210.0140.00812.45
5.4.200.0120.00312.51
5.4.190.0110.00712.35
5.4.180.0110.00812.40
5.4.170.0090.01312.37
5.4.160.0040.01812.47
5.4.150.0100.01412.43
5.4.140.0230.00312.62
5.4.130.0150.00412.63
5.4.120.0160.00812.50
5.4.110.0130.00512.81
5.4.100.0150.00812.70
5.4.90.0180.00312.66
5.4.80.0240.00312.78
5.4.70.0140.00912.67
5.4.60.0130.00812.79
5.4.50.0210.00312.64
5.4.40.0130.01312.62
5.4.30.0150.01212.75
5.4.20.0120.01312.67
5.4.10.0170.00712.79
5.4.00.0230.00812.50
5.3.290.0170.00612.84
5.3.280.0150.00912.66
5.3.270.0180.00712.89
5.3.260.0130.00812.86
5.3.250.0140.01012.72
5.3.240.0090.01312.59
5.3.230.0140.01112.65
5.3.220.0210.00412.68
5.3.210.0120.01312.95
5.3.200.0090.00912.79
5.3.190.0110.01112.85
5.3.180.0220.01513.02
5.3.170.0140.00712.90
5.3.160.0100.01512.97
5.3.150.0160.01012.86
5.3.140.0190.00812.80
5.3.130.0130.01312.91
5.3.120.0130.01012.92
5.3.110.0160.00712.82
5.3.100.0150.00912.91
5.3.90.0190.00312.83
5.3.80.0150.00912.73
5.3.70.0120.01212.71
5.3.60.0130.01012.89
5.3.50.0160.00612.70
5.3.40.0190.00612.68
5.3.30.0180.00612.85
5.3.20.0160.00912.86
5.3.10.0100.01512.48
5.3.00.0150.00412.77
5.2.170.0100.00811.78
5.2.160.0120.00611.79
5.2.150.0120.00611.91
5.2.140.0120.00912.02
5.2.130.0090.01211.77
5.2.120.0090.00911.80
5.2.110.0110.00911.75
5.2.100.0090.00911.75
5.2.90.0090.00711.86
5.2.80.0130.00311.75
5.2.70.0090.00911.75
5.2.60.0110.01411.75
5.2.50.0050.01111.75
5.2.40.0060.00911.83
5.2.30.0080.00811.75
5.2.20.0120.00411.75
5.2.10.0130.00311.75
5.2.00.0090.00611.75
5.1.60.0070.00611.75
5.1.50.0060.00711.75
5.1.40.0100.00311.75
5.1.30.0080.00811.75
5.1.20.0120.00611.75
5.1.10.0050.00911.75
5.1.00.0050.01111.75
5.0.50.0050.00811.75
5.0.40.0200.00011.75
5.0.30.0040.00711.75
5.0.20.0140.00011.75
5.0.10.0080.00511.75
5.0.00.0080.00411.75
4.4.90.0030.00611.75
4.4.80.0000.00911.75
4.4.70.0000.00911.75
4.4.60.0100.00011.75
4.4.50.0080.00011.75
4.4.40.0070.00211.75
4.4.30.0060.00311.75
4.4.20.0050.00511.75
4.4.10.0080.00011.75
4.4.00.0070.00011.75
4.3.110.0030.00311.75
4.3.100.0020.00511.75
4.3.90.0050.00211.75
4.3.80.0030.00711.75
4.3.70.0040.00411.75
4.3.60.0070.00011.75
4.3.50.0060.00311.75
4.3.40.0050.00211.75
4.3.30.0000.00811.75
4.3.20.0060.00011.75
4.3.10.0000.00711.75
4.3.00.0060.00011.75

preferences:
32.88 ms | 403 KiB | 5 Q