3v4l.org

run code in 300+ PHP versions simultaneously
<?php gc_enable(); class test { public $spl; public function __construct() { $this->spl = new SplPriorityQueue(); $this->spl->insert($this, 1); } } $i = 0; while($i < 500) { $test = new test(); unset($test); gc_collect_cycles(); echo number_format(memory_get_usage()) . " B \n"; $i++; }

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)
7.4.00.0070.01414.93
7.3.120.0140.00714.88
7.3.110.0110.00714.95
7.3.100.0100.01014.47
7.3.90.0000.01614.65
7.3.80.0030.00714.75
7.3.70.0100.00714.68
7.3.60.0070.00714.80
7.3.50.0030.00915.00
7.3.40.0030.01314.84
7.3.30.0140.00314.68
7.3.20.0000.01416.74
7.3.10.0100.00916.68
7.3.00.0100.01016.69
7.2.250.0100.01015.03
7.2.240.0090.00914.94
7.2.230.0030.01315.08
7.2.220.0000.01415.13
7.2.210.0100.00714.91
7.2.200.0030.01314.98
7.2.190.0070.01015.05
7.2.180.0030.01415.00
7.2.170.0060.00915.21
7.2.160.0040.01215.18
7.2.150.0000.01417.05
7.2.140.0030.01617.14
7.2.130.0050.01416.75
7.2.120.0120.00716.78
7.2.110.0070.01316.81
7.2.100.0070.01016.85
7.2.90.0100.00917.02
7.2.80.0050.01216.98
7.2.70.0080.00916.90
7.2.60.0070.00916.87
7.2.50.0100.00516.79
7.2.40.0110.00716.81
7.2.30.0030.01016.82
7.2.20.0090.00516.74
7.2.10.0040.00916.85
7.2.00.0070.00917.69
7.1.330.0040.01515.96
7.1.320.0040.01115.80
7.1.310.0000.01015.95
7.1.300.0030.01015.74
7.1.290.0040.01415.98
7.1.280.0040.01015.68
7.1.270.0060.00615.93
7.1.260.0090.00615.84
7.1.250.0030.01115.76
7.1.240.0040.01215.76
7.1.230.0130.00715.46
7.1.220.0080.00815.67
7.1.210.0100.00315.96
7.1.200.0080.00415.67
7.1.190.0000.01315.89
7.1.180.0000.01315.73
7.1.170.0080.00315.68
7.1.160.0080.00815.86
7.1.150.0100.00015.79
7.1.140.0030.01415.90
7.1.130.0070.00715.76
7.1.120.0160.00315.86
7.1.110.0090.00915.87
7.1.100.0160.00015.91
7.1.90.0040.01215.96
7.1.80.0090.00615.57
7.1.70.0060.01416.64
7.1.60.0090.00917.67
7.1.50.0080.01216.34
7.1.40.0090.00315.80
7.1.30.0000.01615.72
7.1.20.0040.01415.96
7.1.10.0160.00615.67
7.1.00.0050.03518.97
7.0.330.0080.00815.34
7.0.320.0100.01015.12
7.0.310.0080.00815.50
7.0.300.0060.00615.38
7.0.290.0080.00415.21
7.0.280.0070.00315.37
7.0.270.0070.01115.59
7.0.260.0030.00715.33
7.0.250.0130.00315.35
7.0.240.0110.00315.41
7.0.230.0040.00815.56
7.0.220.0000.01615.60
7.0.210.0000.01215.57
7.0.200.0040.00616.17
7.0.190.0120.00315.41
7.0.180.0070.01115.14
7.0.170.0040.01515.31
7.0.160.0030.01515.40
7.0.150.0120.00915.57
7.0.140.0020.04518.64
7.0.130.0100.00615.59
7.0.120.0100.00615.30
7.0.110.0020.03718.65
7.0.100.0020.04418.60
7.0.90.0000.03518.59
7.0.80.0030.04018.62
7.0.70.0130.03818.63
7.0.60.0050.04118.64
7.0.50.0080.04118.80
7.0.40.0100.03516.76
7.0.30.0070.04216.83
7.0.20.0070.03716.72
7.0.10.0070.02516.90
7.0.00.0100.04016.77
5.6.400.0030.00914.93
5.6.390.0080.00414.92
5.6.380.0030.01714.94
5.6.370.0090.00914.90
5.6.360.0060.00914.93
5.6.350.0120.00314.90
5.6.340.0030.00915.15
5.6.330.0000.01815.09
5.6.320.0000.01715.20
5.6.310.0070.01314.82
5.6.300.0090.00914.83
5.6.290.0100.00314.87
5.6.280.0030.04518.40
5.6.270.0090.00615.03
5.6.260.0050.04218.00
5.6.250.0070.04317.97
5.6.240.0120.04218.05
5.6.230.0050.03017.96
5.6.220.0090.04217.91
5.6.210.0030.04617.94
5.6.200.0090.04318.04
5.6.190.0050.04118.05
5.6.180.0030.02618.34
5.6.170.0080.04518.13
5.6.160.0110.04418.20
5.6.150.0100.04018.37
5.6.140.0050.04918.30
5.6.130.0130.04018.13
5.6.120.0110.03918.47
5.6.110.0070.04518.01
5.6.100.0100.02818.26
5.6.90.0090.04518.20
5.6.80.0030.04418.06
5.6.70.0050.04117.78
5.6.60.0070.04117.82
5.6.50.0020.03617.91
5.6.40.0160.03517.89
5.6.30.0070.03517.93
5.6.20.0110.04317.84
5.6.10.0050.04217.98
5.6.00.0020.05017.74
5.5.380.0100.04218.00
5.5.370.0000.05017.88
5.5.360.0070.04017.80
5.5.350.0020.04817.96
5.5.340.0070.04918.20
5.5.330.0100.03818.23
5.5.320.0070.04518.28
5.5.310.0100.04518.01
5.5.300.0080.04817.91
5.5.290.0050.04718.12
5.5.280.0070.04318.27
5.5.270.0020.04918.16
5.5.260.0050.04618.21
5.5.250.0070.04517.95
5.5.240.0030.04917.83
5.5.230.0080.04717.90
5.5.220.0070.04317.90
5.5.210.0060.03017.81
5.5.200.0060.02917.84
5.5.190.0150.04017.76
5.5.180.0170.03817.89
5.5.170.0110.01114.85
5.5.160.0070.04417.74
5.5.150.0080.04017.88
5.5.140.0030.04817.58
5.5.130.0020.05017.79
5.5.120.0060.02517.76
5.5.110.0100.04417.71
5.5.100.0100.04017.54
5.5.90.0050.04517.77
5.5.80.0080.02617.79
5.5.70.0080.04417.61
5.5.60.0060.04517.72
5.5.50.0070.04217.73
5.5.40.0050.04517.84
5.5.30.0050.03017.58
5.5.20.0080.04517.71
5.5.10.0020.04517.67
5.5.00.0020.04517.84
5.4.450.0070.04616.21
5.4.440.0030.03716.25
5.4.430.0070.04216.16
5.4.420.0020.04616.16
5.4.410.0020.04716.15
5.4.400.0070.03016.06
5.4.390.0070.04216.09
5.4.380.0060.02616.07
5.4.370.0020.04416.20
5.4.360.0050.04416.11
5.4.350.0020.04716.06
5.4.340.0060.03616.15
5.4.330.0000.01512.60
5.4.320.0030.04216.10
5.4.310.0030.04316.11
5.4.300.0030.04616.18
5.4.290.0070.02716.02
5.4.280.0070.04016.07
5.4.270.0070.03516.02
5.4.260.0040.04016.19
5.4.250.0090.03616.09
5.4.240.0080.04316.09
5.4.230.0080.03716.05
5.4.220.0020.04416.06
5.4.210.0080.03516.00
5.4.200.0070.04116.07
5.4.190.0060.04316.05
5.4.180.0050.04416.06
5.4.170.0050.02816.02
5.4.160.0100.02616.04
5.4.150.0090.04116.03
5.4.140.0030.04114.77
5.4.130.0070.02314.79
5.4.120.0050.04014.69
5.4.110.0050.03814.82
5.4.100.0060.03814.79
5.4.90.0060.03814.80
5.4.80.0030.04214.90
5.4.70.0040.02714.81
5.4.60.0070.03314.86
5.4.50.0100.03814.81
5.4.40.0070.03814.73
5.4.30.0050.04014.78
5.4.20.0020.04314.74
5.4.10.0030.04214.70
5.4.00.0080.03514.43
5.3.290.0040.04114.08
5.3.280.0050.04014.04
5.3.270.0080.04014.09
5.3.260.0030.02814.16
5.3.250.0050.03914.06
5.3.240.0050.04214.13
5.3.230.0030.03814.00
5.3.220.0050.04114.01
5.3.210.0050.04114.10
5.3.200.0030.04614.15
5.3.190.0060.04114.07
5.3.180.0030.04014.04
5.3.170.0080.04014.10
5.3.160.0070.02814.04
5.3.150.0060.03914.14
5.3.140.0030.04514.14
5.3.130.0050.04214.03
5.3.120.0020.04914.09
5.3.110.0080.04014.07
5.3.100.0050.04313.79
5.3.90.0060.04013.84
5.3.80.0000.04813.75
5.3.70.0030.03313.85
5.3.60.0080.04313.79
5.3.50.0050.02813.83
5.3.40.0030.03913.72
5.3.30.0090.03613.71
5.3.20.0020.04413.63
5.3.10.0080.03713.64
5.3.00.0030.04313.56
5.2.170.0030.06313.02
5.2.160.0000.06313.02
5.2.150.0070.05713.02
5.2.140.0030.04313.02
5.2.130.0000.06313.02
5.2.120.0000.06313.02
5.2.110.0070.05313.02
5.2.100.0000.06713.02
5.2.90.0030.06013.02
5.2.80.0070.05713.02
5.2.70.0070.05713.02
5.2.60.0000.06713.02
5.2.50.0000.06313.02
5.2.40.0030.05713.02
5.2.30.0070.04013.02
5.2.20.0070.05013.02
5.2.10.0070.06013.02
5.2.00.0030.05713.02
5.1.60.0000.05713.02
5.1.50.0100.04013.02
5.1.40.0030.03713.02
5.1.30.0030.06013.02
5.1.20.0070.04713.02
5.1.10.0000.04013.02
5.1.00.0030.05313.02
5.0.50.0000.02713.02
5.0.40.0030.04313.02
5.0.30.0030.06713.02
5.0.20.0030.04313.02
5.0.10.0030.04313.02
5.0.00.0030.06013.02
4.4.90.0000.03713.02
4.4.80.0030.03313.02
4.4.70.0030.03713.02
4.4.60.0030.03313.02
4.4.50.0030.03313.02
4.4.40.0030.05013.02
4.4.30.0030.03013.02
4.4.20.0000.02313.02
4.4.10.0000.03313.02
4.4.00.0070.05013.02
4.3.110.0030.02013.02
4.3.100.0000.03713.02
4.3.90.0030.03013.02
4.3.80.0030.05013.02
4.3.70.0070.03013.02
4.3.60.0000.03313.02
4.3.50.0000.03313.02
4.3.40.0030.05013.02
4.3.30.0000.03013.02
4.3.20.0000.02013.02
4.3.10.0000.04013.02
4.3.00.0030.03313.02

preferences:
60.79 ms | 401 KiB | 5 Q