3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myclass { public function __construct () { echo("constructor\n"); } public function __destruct () { echo("destructor\n"); } } $temp = array( 0 => array( 'dupa' => 'ddd', 'test' => new myclass() ) ); echo("------------1-----------\n"); foreach ($temp as $key => $ttt) { //unset($temp[$key]['test']); $temp[$key] = null; unset($temp[$key]); } echo("------------2-----------\n"); echo("------------3-----------\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.60.0110.01116.63
8.3.50.0130.00521.94
8.3.40.0120.00318.66
8.3.30.0110.00419.27
8.3.20.0040.00420.18
8.3.10.0000.00821.89
8.3.00.0000.00719.18
8.2.180.0100.00718.54
8.2.170.0120.00318.96
8.2.160.0100.00322.96
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0060.00326.16
8.2.120.0000.00819.66
8.2.110.0030.00620.46
8.2.100.0000.01118.09
8.2.90.0040.00719.36
8.2.80.0000.00817.97
8.2.70.0040.00417.38
8.2.60.0000.00718.05
8.2.50.0080.00318.07
8.2.40.0040.00418.22
8.2.30.0000.00719.43
8.2.20.0000.00817.81
8.2.10.0070.00018.00
8.2.00.0040.00417.71
8.1.280.0120.00625.92
8.1.270.0080.00019.00
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0000.00823.97
8.1.230.0080.00419.16
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0070.00417.23
8.1.190.0030.00617.35
8.1.180.0050.00318.10
8.1.170.0000.00918.58
8.1.160.0040.00422.02
8.1.150.0070.00018.83
8.1.140.0040.00419.11
8.1.130.0030.00317.78
8.1.120.0030.00317.44
8.1.110.0050.00317.45
8.1.100.0000.00717.51
8.1.90.0000.00817.34
8.1.80.0040.00317.39
8.1.70.0000.00717.51
8.1.60.0070.00317.64
8.1.50.0040.00417.55
8.1.40.0080.00417.47
8.1.30.0040.00417.65
8.1.20.0030.00617.68
8.1.10.0030.00517.42
8.1.00.0000.00817.54
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.48
8.0.270.0000.00717.32
8.0.260.0030.00317.31
8.0.250.0030.00316.99
8.0.240.0030.00317.00
8.0.230.0000.00716.95
8.0.220.0000.00716.95
8.0.210.0030.00316.92
8.0.200.0030.00316.84
8.0.190.0050.00217.03
8.0.180.0000.00716.80
8.0.170.0060.00316.89
8.0.160.0030.00316.90
8.0.150.0030.00616.88
8.0.140.0070.00016.86
8.0.130.0030.00313.29
8.0.120.0040.00416.90
8.0.110.0050.00216.74
8.0.100.0050.00216.77
8.0.90.0040.00416.89
8.0.80.0060.01216.94
8.0.70.0050.00316.78
8.0.60.0000.00816.92
8.0.50.0000.00716.69
8.0.30.0200.00416.98
8.0.20.0120.01017.40
8.0.10.0070.00016.83
8.0.00.0110.00816.76
7.4.330.0060.00015.23
7.4.320.0000.00616.45
7.4.300.0000.00616.59
7.4.290.0030.00316.50
7.4.280.0040.00416.61
7.4.270.0000.00816.46
7.4.260.0000.00716.36
7.4.250.0040.00416.59
7.4.240.0030.00316.58
7.4.230.0070.00016.58
7.4.220.0070.01216.44
7.4.210.0070.01016.56
7.4.200.0040.00416.51
7.4.160.0110.00716.63
7.4.150.0070.01117.40
7.4.140.0070.01117.86
7.4.130.0110.00816.56
7.4.120.0030.01316.54
7.4.110.0160.00916.49
7.4.100.0100.01016.51
7.4.90.0130.00416.31
7.4.80.0090.00919.39
7.4.70.0090.00616.46
7.4.60.0100.00716.48
7.4.50.0050.00016.57
7.4.40.0130.00316.41
7.4.30.0110.01116.27
7.4.00.0030.01014.64
7.3.330.0000.00613.37
7.3.320.0050.00013.34
7.3.310.0030.00416.36
7.3.300.0000.00716.38
7.3.290.0000.00716.25
7.3.280.0070.00916.35
7.3.270.0080.01217.40
7.3.260.0180.00016.65
7.3.250.0110.00616.46
7.3.240.0140.00316.40
7.3.230.0110.01116.39
7.3.210.0120.00616.53
7.3.200.0060.01519.39
7.3.190.0070.01016.57
7.3.180.0060.00916.71
7.3.170.0040.01916.49
7.3.160.0130.01016.47
7.3.10.0070.00716.42
7.3.00.0120.00016.59
7.2.330.0110.00716.60
7.2.320.0100.00716.78
7.2.310.0080.00816.55
7.2.300.0140.00316.68
7.2.290.0120.00616.76
7.2.130.0060.00916.93
7.2.120.0060.00916.87
7.2.110.0000.01117.03
7.2.100.0060.00316.87
7.2.90.0070.00417.04
7.2.80.0060.00616.93
7.2.70.0000.01517.03
7.2.60.0070.00716.84
7.2.50.0040.00817.01
7.2.40.0070.00416.87
7.2.30.0030.01016.75
7.2.20.0070.00716.79
7.2.10.0080.00416.99
7.2.00.0060.00618.17
7.1.250.0000.00815.88
7.1.200.0090.00615.75
7.1.100.0060.00918.08
7.1.70.0030.00617.02
7.1.60.0090.01319.46
7.1.50.0130.01017.01
7.1.00.0000.08022.37
7.0.200.0070.00016.88
7.0.140.0130.06722.00
7.0.70.0070.08021.64
7.0.60.0000.08721.67
7.0.50.0100.08022.11
7.0.40.0030.08720.16
7.0.30.0100.08020.09
7.0.20.0070.07720.02
7.0.10.0030.08020.11
7.0.00.0100.08720.11
5.6.280.0000.07320.82
5.6.220.0070.06020.63
5.6.210.0070.07720.61
5.6.200.0030.04720.94
5.6.190.0070.06321.10
5.6.180.0030.07721.16
5.6.170.0100.07021.05
5.6.160.0070.07720.93
5.6.150.0070.07321.01
5.6.140.0070.08021.05
5.6.130.0130.06721.02
5.6.120.0030.07320.94
5.6.110.0000.07721.02
5.6.100.0030.07321.10
5.6.90.0030.08321.00
5.6.80.0070.07320.40
5.6.70.0130.07320.40
5.6.60.0130.06020.34
5.6.50.0070.06020.33
5.6.40.0030.08020.30
5.6.30.0030.05020.48
5.6.20.0130.07020.34
5.6.10.0030.08020.47
5.6.00.0100.07020.37
5.5.360.0030.08320.31
5.5.350.0000.08320.37
5.5.340.0100.07320.77
5.5.330.0030.08320.74
5.5.320.0100.07320.76
5.5.310.0000.08720.86
5.5.300.0030.07320.90
5.5.290.0100.06720.78
5.5.280.0000.04320.75
5.5.270.0000.09020.78
5.5.260.0030.08720.85
5.5.250.0070.07320.67
5.5.240.0100.06720.11
5.5.230.0030.05020.13
5.5.220.0130.06720.25
5.5.210.0000.07320.25
5.5.200.0100.06720.27
5.5.190.0030.06320.21
5.5.180.0030.07020.17
5.5.160.0070.07320.25
5.5.150.0030.07720.20
5.5.140.0070.07020.26
5.5.130.0070.06320.07
5.5.120.0070.07320.21
5.5.110.0030.08020.24
5.5.100.0130.05020.16
5.5.90.0030.05319.93
5.5.80.0130.07020.00
5.5.70.0070.05020.13
5.5.60.0030.06020.04
5.5.50.0200.05319.98
5.5.40.0100.05720.02
5.5.30.0030.08020.09
5.5.20.0000.05319.98
5.5.10.0130.06719.97
5.5.00.0070.07320.02
5.4.450.0030.08319.44
5.4.440.0070.08019.50
5.4.430.0070.07719.40
5.4.420.0070.07719.40
5.4.410.0030.06719.35
5.4.400.0130.07019.12
5.4.390.0000.08018.87
5.4.380.0030.05718.89
5.4.370.0000.06719.08
5.4.360.0030.08019.20
5.4.350.0000.07718.93
5.4.340.0030.07318.84
5.4.320.0030.06319.04
5.4.310.0030.07019.11
5.4.300.0030.07719.03
5.4.290.0100.07318.86
5.4.280.0000.07019.11
5.4.270.0000.08018.83
5.4.260.0100.09019.19
5.4.250.0070.07719.03
5.4.240.0070.07318.93
5.4.230.0070.06719.07
5.4.220.0030.07019.11
5.4.210.0070.04719.20
5.4.200.0070.03719.16
5.4.190.0000.05319.11
5.4.180.0000.07718.82
5.4.170.0070.07019.20
5.4.160.0000.06018.84
5.4.150.0030.06718.83
5.4.140.0030.07316.40
5.4.130.0000.07316.18
5.4.120.0000.08016.26
5.4.110.0070.07016.38
5.4.100.0070.05316.31
5.4.90.0000.08016.37
5.4.80.0070.06316.44
5.4.70.0030.07316.31
5.4.60.0030.05716.41
5.4.50.0070.07016.32
5.4.40.0030.07016.51
5.4.30.0070.06716.42
5.4.20.0030.06716.46
5.4.10.0070.07316.39
5.4.00.0070.07015.71
5.3.290.0030.07714.85
5.3.280.0030.07314.85
5.3.270.0000.06714.85
5.3.260.0030.07314.85
5.3.250.0100.06714.85
5.3.240.0030.07314.85
5.3.230.0000.08314.85
5.3.220.0030.06714.85
5.3.210.0070.06314.85
5.3.200.0100.06714.85
5.3.190.0070.06714.85
5.3.180.0030.05314.85
5.3.170.0030.06714.85
5.3.160.0030.07014.85
5.3.150.0000.07714.85
5.3.140.0070.07014.85
5.3.130.0030.07714.85
5.3.120.0030.07314.85
5.3.110.0000.07714.85
5.3.100.0000.07314.85
5.3.90.0030.07014.85
5.3.80.0030.07314.85
5.3.70.0070.07014.85
5.3.60.0030.07314.85
5.3.50.0000.07314.85
5.3.40.0070.06014.85
5.3.30.0000.07714.85
5.3.20.0070.06714.85
5.3.10.0030.06314.85
5.3.00.0000.07314.85
5.2.170.0000.06314.85
5.2.160.0100.05714.85
5.2.150.0030.05714.85
5.2.140.0000.05014.85
5.2.130.0070.05714.85
5.2.120.0070.05714.85
5.2.110.0070.05714.85
5.2.100.0030.06014.85
5.2.90.0000.06314.85
5.2.80.0000.05714.85
5.2.70.0070.04714.85
5.2.60.0030.06314.85
5.2.50.0000.06314.85
5.2.40.0030.05314.85
5.2.30.0030.06014.85
5.2.20.0100.06014.85
5.2.10.0030.05714.85
5.2.00.0000.05714.85
5.1.60.0070.05314.85
5.1.50.0030.04714.85
5.1.40.0070.04014.85
5.1.30.0030.05314.85
5.1.20.0030.04314.85
5.1.10.0030.05714.85
5.1.00.0030.03014.85
5.0.50.0000.04314.85
5.0.40.0030.04314.85
5.0.30.0030.05714.85
5.0.20.0030.04014.85
5.0.10.0000.03714.85
5.0.00.0030.06014.85
4.4.90.0030.03014.85
4.4.80.0030.03314.85
4.4.70.0000.03714.85
4.4.60.0070.02714.85
4.4.50.0000.03314.85
4.4.40.0000.05314.85
4.4.30.0000.03714.85
4.4.20.0000.02714.85
4.4.10.0030.03314.85
4.4.00.0000.04714.85
4.3.110.0000.03714.85
4.3.100.0030.02714.85
4.3.90.0000.02714.85
4.3.80.0030.05014.85
4.3.70.0000.03314.85
4.3.60.0000.03714.85
4.3.50.0000.03314.85
4.3.40.0030.05014.85
4.3.30.0030.03314.85
4.3.20.0030.03714.85
4.3.10.0030.03314.85
4.3.00.0030.02714.85

preferences:
53.63 ms | 401 KiB | 5 Q