3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = new ArrayIterator(get_declared_classes()); $bar = new SPLMinHeap(); foreach($foo as $class) { $bar->insert($class); } foreach($bar as $class) { echo $class . PHP_EOL; }

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.0120.00318.67
8.3.30.0110.00319.94
8.3.20.0060.00320.40
8.3.10.0040.00421.04
8.3.00.0080.00023.48
8.2.170.0110.01122.96
8.2.160.0030.01220.32
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0000.00821.12
8.2.110.0040.00419.21
8.2.100.0120.00017.91
8.2.90.0040.00419.06
8.2.80.0050.00318.03
8.2.70.0040.00417.63
8.2.60.0050.00317.93
8.2.50.0100.00218.07
8.2.40.0000.00818.22
8.2.30.0050.00219.57
8.2.20.0040.00417.61
8.2.10.0080.00017.61
8.2.00.0040.00417.62
8.1.270.0080.00023.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0070.00322.55
8.1.230.0120.00020.97
8.1.220.0000.00818.77
8.1.210.0030.00518.85
8.1.200.0060.00317.35
8.1.190.0080.00017.39
8.1.180.0040.00418.10
8.1.170.0030.00618.59
8.1.160.0030.00518.86
8.1.150.0000.00818.59
8.1.140.0040.00417.43
8.1.130.0030.00317.83
8.1.120.0040.00417.36
8.1.110.0060.00317.43
8.1.100.0000.00717.56
8.1.90.0030.00517.41
8.1.80.0040.00417.48
8.1.70.0030.00317.44
8.1.60.0030.00617.65
8.1.50.0000.00817.54
8.1.40.0050.00317.52
8.1.30.0000.00817.53
8.1.20.0090.00017.66
8.1.10.0000.00817.55
8.1.00.0000.00917.41
8.0.300.0040.00420.07
8.0.290.0030.00617.18
8.0.280.0000.00718.45
8.0.270.0070.00017.18
8.0.260.0030.00316.75
8.0.250.0050.00316.85
8.0.240.0060.00316.88
8.0.230.0000.00716.97
8.0.220.0030.00316.92
8.0.210.0030.00316.91
8.0.200.0030.00316.98
8.0.190.0050.00316.97
8.0.180.0070.00016.90
8.0.170.0040.00416.88
8.0.160.0000.00816.94
8.0.150.0040.00416.87
8.0.140.0040.00416.88
8.0.130.0000.00613.33
8.0.120.0080.00016.87
8.0.110.0000.00716.90
8.0.100.0000.00716.71
8.0.90.0040.00416.73
8.0.80.0130.00316.89
8.0.70.0000.00717.00
8.0.60.0000.00816.74
8.0.50.0000.00916.97
8.0.30.0100.01217.12
8.0.20.0120.00917.45
8.0.10.0030.00517.14
8.0.00.0190.00716.94
7.4.330.0000.00616.78
7.4.320.0000.00616.54
7.4.300.0030.00316.66
7.4.290.0000.00816.63
7.4.280.0030.00316.55
7.4.270.0030.00316.55
7.4.260.0000.00613.21
7.4.250.0000.00716.59
7.4.240.0030.00316.59
7.4.230.0040.00416.63
7.4.220.0180.02516.68
7.4.210.0060.00916.59
7.4.200.0000.00816.45
7.4.190.0030.00316.70
7.4.160.0100.00716.57
7.4.150.0130.00617.40
7.4.140.0130.01017.86
7.4.130.0120.01016.69
7.4.120.0100.00916.48
7.4.110.0110.00716.64
7.4.100.0040.01416.27
7.4.90.0150.00616.35
7.4.80.0100.01319.39
7.4.70.0130.01016.46
7.4.60.0160.00916.53
7.4.50.0090.00016.44
7.4.40.0060.01022.77
7.4.30.0110.00916.55
7.4.00.0070.01114.93
7.3.330.0000.00513.13
7.3.320.0030.00313.27
7.3.310.0070.00016.07
7.3.300.0030.00316.14
7.3.290.0030.01716.24
7.3.280.0080.01216.26
7.3.270.0120.00717.40
7.3.260.0120.01018.24
7.3.250.0160.00516.45
7.3.240.0130.00416.55
7.3.230.0090.01116.64
7.3.210.0130.00516.33
7.3.200.0040.01519.39
7.3.190.0100.00716.65
7.3.180.0100.00616.34
7.3.170.0090.00816.38
7.3.160.0000.01716.33
7.3.120.0080.01014.81
7.3.110.0090.00814.94
7.3.100.0050.01114.99
7.3.90.0070.00814.93
7.3.80.0060.00814.79
7.3.70.0050.00914.87
7.3.60.0080.00614.83
7.3.50.0060.00714.87
7.3.40.0060.00814.67
7.3.30.0070.00514.75
7.3.20.0090.00516.68
7.3.10.0050.01216.61
7.3.00.0030.01316.59
7.2.330.0090.00916.59
7.2.320.0030.01416.46
7.2.310.0060.01416.67
7.2.300.0200.00316.68
7.2.290.0100.00716.57
7.2.250.0080.01315.15
7.2.240.0140.00715.07
7.2.230.0100.00914.96
7.2.220.0040.00915.20
7.2.210.0040.01214.97
7.2.200.0060.00714.98
7.2.190.0040.00915.02
7.2.180.0060.00915.12
7.2.170.0040.01315.03
7.2.110.0330.00716.05
7.2.60.0000.01516.48
7.2.00.0140.00319.19
7.1.330.0090.00515.73
7.1.320.0030.00915.84
7.1.310.0060.00715.82
7.1.300.0040.00915.75
7.1.290.0070.00715.62
7.1.280.0060.00815.82
7.1.270.0060.00515.79
7.1.260.0060.01015.92
7.1.200.0110.00015.68
7.1.70.0000.00716.77
7.1.60.0030.00816.91
7.1.50.0170.01734.75
7.1.00.0030.04722.28
7.0.200.0000.01416.54
7.0.140.0030.07022.00
7.0.60.0030.09019.83
7.0.50.0030.04017.94
7.0.40.0030.04017.79
7.0.30.0030.04017.73
7.0.20.0070.03717.69
7.0.10.0030.06317.79
7.0.00.0130.03017.75
5.6.280.0000.07721.02
5.6.210.0070.05720.76
5.6.200.0000.04718.09
5.6.190.0000.04718.16
5.6.180.0100.03318.12
5.6.170.0030.04018.21
5.6.160.0030.04018.18
5.6.150.0070.03718.17
5.6.140.0030.04018.20
5.6.130.0000.04318.11
5.6.120.0070.03718.21
5.6.110.0030.04018.20
5.6.100.0100.03318.11
5.6.90.0000.04318.16
5.6.80.0070.03717.50
5.6.70.0000.04017.49
5.6.60.0070.03317.49
5.6.50.0070.08317.53
5.6.40.0100.07317.54
5.6.30.0030.04317.57
5.6.20.0070.07717.52
5.6.10.0100.08017.50
5.6.00.0030.04717.55
5.5.350.0070.06320.43
5.5.340.0030.04017.92
5.5.330.0070.03717.98
5.5.320.0070.04017.93
5.5.310.0030.04018.00
5.5.300.0100.04017.92
5.5.290.0100.03317.94
5.5.280.0130.03017.91
5.5.270.0070.03717.91
5.5.260.0100.04317.97
5.5.250.0070.03717.73
5.5.240.0070.03317.40
5.5.230.0000.04017.29
5.5.220.0030.03717.39
5.5.210.0030.03717.33
5.5.200.0100.06317.27
5.5.190.0030.04317.30
5.5.180.0070.07317.36
5.5.160.0070.07717.36
5.5.150.0030.08717.36
5.5.140.0100.06317.26
5.5.130.0030.05017.22
5.5.120.0030.07317.33
5.5.110.0100.03317.30
5.5.100.0030.08317.13
5.5.90.0100.06717.23
5.5.80.0000.05017.13
5.5.70.0100.07017.14
5.5.60.0070.05017.26
5.5.50.0100.06317.23
5.5.40.0100.07317.20
5.5.30.0030.04317.24
5.5.20.0070.03717.14
5.5.10.0070.08017.15
5.5.00.0030.08017.16
5.4.450.0100.03319.39
5.4.440.0030.04019.40
5.4.430.0030.03719.21
5.4.420.0030.03719.29
5.4.410.0000.04019.18
5.4.400.0070.03319.21
5.4.390.0030.03719.11
5.4.380.0030.03718.99
5.4.370.0000.04019.03
5.4.360.0070.05019.07
5.4.350.0000.04318.89
5.4.340.0170.03719.13
5.4.320.0030.05319.09
5.4.310.0070.06318.96
5.4.300.0030.06718.98
5.4.290.0030.07019.12
5.4.280.0100.03319.12
5.4.270.0030.05018.99
5.4.260.0130.06718.82
5.4.250.0030.04718.98
5.4.240.0070.07719.12
5.4.230.0100.07719.12
5.4.220.0130.07319.04
5.4.210.0070.05719.08
5.4.200.0070.07718.99
5.4.190.0130.04318.97
5.4.180.0100.03319.08
5.4.170.0100.07318.96
5.4.160.0100.07719.05
5.4.150.0030.04719.05
5.4.140.0000.08316.30
5.4.130.0070.07716.35
5.4.120.0130.06716.44
5.4.110.0100.06716.43
5.4.100.0070.03316.25
5.4.90.0030.03716.30
5.4.80.0100.04316.28
5.4.70.0070.04716.27
5.4.60.0100.06716.17
5.4.50.0030.04716.36
5.4.40.0070.04316.46
5.4.30.0030.03716.24
5.4.20.0000.04316.14
5.4.10.0070.03716.37
5.4.00.0000.07715.68
5.3.290.0100.07314.51
5.3.280.0100.06014.45
5.3.270.0070.05714.45
5.3.260.0100.04014.59
5.3.250.0130.03014.71
5.3.240.0130.06714.59
5.3.230.0130.07014.55
5.3.220.0030.04714.54
5.3.210.0100.07314.44
5.3.200.0100.03314.52
5.3.190.0130.03014.52
5.3.180.0100.07314.55
5.3.170.0000.05014.36
5.3.160.0100.07014.55
5.3.150.0070.06014.44
5.3.140.0030.05014.53
5.3.130.0000.05314.55
5.3.120.0070.07314.54
5.3.110.0030.04014.52
5.3.100.0030.07714.02
5.3.90.0030.05313.86
5.3.80.0000.05313.80
5.3.70.0030.06013.98
5.3.60.0030.07313.98
5.3.50.0000.04013.82
5.3.40.0100.06713.90
5.3.30.0130.06713.70
5.3.20.0130.06013.49
5.3.10.0130.06313.64
5.3.00.0170.06313.50
5.2.170.0070.06011.15
5.2.160.0070.06311.14
5.2.150.0070.03311.16
5.2.140.0000.05310.97
5.2.130.0030.05011.26
5.2.120.0000.03311.04
5.2.110.0030.06311.11
5.2.100.0030.06311.25
5.2.90.0130.04311.12
5.2.80.0070.05011.09
5.2.70.0030.05011.08
5.2.60.0030.03711.06
5.2.50.0070.06011.18
5.2.40.0030.06310.96
5.2.30.0000.06010.90
5.2.20.0100.04310.80
5.2.10.0000.05010.76
5.2.00.0070.05310.64
5.1.60.0100.04310.05
5.1.50.0030.03010.04
5.1.40.0030.0479.90
5.1.30.0000.06310.36
5.1.20.0070.05710.32
5.1.10.0070.04010.06
5.1.00.0000.04010.02
5.0.50.0100.0408.58
5.0.40.0030.0408.32
5.0.30.0000.0638.16
5.0.20.0070.0438.19
5.0.10.0030.0338.16
5.0.00.0070.0538.10
4.4.90.0070.0307.93
4.4.80.0000.0337.93
4.4.70.0000.0407.93
4.4.60.0000.0407.93
4.4.50.0030.0307.93
4.4.40.0070.0477.93
4.4.30.0030.0377.93
4.4.20.0070.0337.93
4.4.10.0000.0377.93
4.4.00.0030.0507.93
4.3.110.0030.0207.93
4.3.100.0030.0377.93
4.3.90.0070.0207.93
4.3.80.0070.0477.93
4.3.70.0070.0307.93
4.3.60.0030.0307.93
4.3.50.0030.0377.93
4.3.40.0100.0377.93
4.3.30.0100.0277.93
4.3.20.0030.0237.93
4.3.10.0000.0207.93
4.3.00.0000.0177.93

preferences:
40.19 ms | 400 KiB | 5 Q