3v4l.org

run code in 300+ PHP versions simultaneously
<?php $b = [1, 2, 3]; foreach($b ?: [] as &$v){ $v = $v*2; unset($v); } var_dump($b);

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.10.0060.00317.56
8.3.140.0040.01116.73
8.3.130.0030.00516.48
8.3.120.0040.01520.53
8.3.110.0040.00416.53
8.3.100.0030.00718.44
8.3.90.0000.00826.77
8.3.80.0030.00616.38
8.3.70.0110.00416.72
8.3.60.0040.01116.63
8.3.50.0110.00521.85
8.3.40.0130.00918.68
8.3.30.0070.00718.63
8.3.20.0080.00620.16
8.3.10.0060.00321.78
8.3.00.0080.00019.25
8.2.260.0060.00318.91
8.2.250.0080.00016.46
8.2.240.0080.00016.33
8.2.230.0090.00020.94
8.2.220.0060.00324.06
8.2.210.0060.00326.77
8.2.200.0060.00318.17
8.2.190.0070.01116.58
8.2.180.0140.00025.92
8.2.170.0100.00718.57
8.2.160.0130.00622.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0060.00317.50
8.2.120.0000.00726.16
8.2.110.0030.00620.54
8.2.100.0070.00717.46
8.2.90.0000.00817.63
8.2.80.0090.00017.97
8.2.70.0000.00817.75
8.2.60.0000.00817.63
8.2.50.0050.00617.98
8.2.40.0030.00618.34
8.2.30.0050.00318.05
8.2.20.0000.01017.66
8.2.10.0020.00518.16
8.2.00.0040.00418.14
8.1.310.0110.00318.35
8.1.300.0120.00016.48
8.1.290.0120.00030.84
8.1.280.0100.00325.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0090.00022.66
8.1.230.0070.00319.01
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0090.00017.36
8.1.190.0040.00417.35
8.1.180.0030.00518.10
8.1.170.0000.00817.62
8.1.160.0040.00418.83
8.1.150.0040.00418.63
8.1.140.0050.00319.57
8.1.130.0050.00219.25
8.1.120.0070.00017.42
8.1.110.0050.00217.44
8.1.100.0000.00717.43
8.1.90.0040.00417.30
8.1.80.0040.00417.32
8.1.70.0040.00417.39
8.1.60.0030.00617.59
8.1.50.0030.00717.52
8.1.40.0080.00017.50
8.1.30.0090.00317.55
8.1.20.0070.00017.53
8.1.10.0060.00317.57
8.1.00.0000.00717.42
8.0.300.0060.00318.77
8.0.290.0040.00416.63
8.0.280.0070.00018.43
8.0.270.0030.00317.18
8.0.260.0070.00016.75
8.0.250.0000.00716.97
8.0.240.0000.00816.82
8.0.230.0070.00016.83
8.0.220.0040.00416.79
8.0.210.0050.00216.94
8.0.200.0060.00016.93
8.0.190.0040.00417.00
8.0.180.0040.00416.90
8.0.170.0040.00416.81
8.0.160.0000.00716.84
8.0.150.0030.00316.84
8.0.140.0030.00316.83
8.0.130.0030.00313.33
8.0.120.0040.00416.79
8.0.110.0000.00716.88
8.0.100.0040.00416.79
8.0.90.0070.00016.75
8.0.80.0090.01216.89
8.0.70.0000.00816.88
8.0.60.0000.00716.83
8.0.50.0040.00416.91
8.0.30.0100.01017.11
8.0.20.0080.01017.40
8.0.10.0030.00316.99
8.0.00.0090.01116.80
7.4.330.0060.00016.76
7.4.320.0060.00016.50
7.4.300.0030.00316.49
7.4.290.0030.00316.38
7.4.280.0000.00916.63
7.4.270.0000.00716.54
7.4.260.0000.00716.55
7.4.250.0040.00416.58
7.4.240.0070.00016.60
7.4.230.0030.00316.37
7.4.220.0090.01316.49
7.4.210.0060.00916.61
7.4.200.0000.00716.38
7.4.160.0060.00916.24
7.4.150.0150.00317.40
7.4.140.0080.01217.86
7.4.130.0150.00516.47
7.4.120.0060.01116.44
7.4.110.0070.01716.61
7.4.100.0090.00916.35
7.4.90.0100.00716.38
7.4.80.0120.00619.39
7.4.70.0100.01016.46
7.4.60.0100.00616.36
7.4.50.0030.00916.20
7.4.40.0030.01516.57
7.4.30.0070.01116.30
7.4.10.0060.01314.90
7.4.00.0090.00914.93
7.3.330.0020.00213.11
7.3.320.0030.00313.25
7.3.310.0030.00516.17
7.3.300.0030.00316.31
7.3.290.0070.00016.38
7.3.280.0120.00916.30
7.3.270.0080.00817.40
7.3.260.0060.01216.43
7.3.250.0110.00616.42
7.3.240.0130.00816.40
7.3.230.0120.00916.53
7.3.210.0100.00616.23
7.3.200.0080.00816.23
7.3.190.0130.00316.41
7.3.180.0070.01416.47
7.3.170.0070.01016.52
7.3.160.0120.00816.48
7.3.130.0070.01014.55
7.3.120.0000.01215.10
7.3.110.0130.00614.91
7.3.100.0030.01014.59
7.3.90.0080.00415.05
7.3.80.0000.01414.61
7.3.70.0000.01414.66
7.3.60.0040.00714.82
7.3.50.0090.00614.88
7.3.40.0030.00614.94
7.3.30.0030.00915.01
7.3.20.0080.00416.57
7.3.10.0100.00516.49
7.3.00.0080.00816.58
7.2.330.0110.00516.43
7.2.320.0140.01316.58
7.2.310.0100.00716.29
7.2.300.0090.01216.77
7.2.290.0160.00516.32
7.2.260.0110.00714.93
7.2.250.0070.01114.85
7.2.240.0070.00714.94
7.2.230.0090.00614.89
7.2.220.0000.01514.97
7.2.210.0120.00315.23
7.2.200.0030.01515.02
7.2.190.0000.01515.09
7.2.180.0060.00915.07
7.2.170.0040.00814.88
7.2.160.0100.00314.77
7.2.150.0060.00917.14
7.2.140.0040.01116.88
7.2.130.0090.00616.70
7.2.120.0050.00816.84
7.2.110.0050.01116.76
7.2.100.0050.00916.94
7.2.90.0070.00616.94
7.2.80.0060.01117.00
7.2.70.0120.00517.03
7.2.60.0060.00916.81
7.2.50.0150.00216.83
7.2.40.0080.00816.96
7.2.30.0030.01116.90
7.2.20.0060.00816.79
7.2.10.0020.01416.86
7.2.00.0040.00917.74
7.1.330.0060.00915.79
7.1.320.0040.00415.89
7.1.310.0090.00615.78
7.1.300.0060.00615.54
7.1.290.0040.01115.51
7.1.280.0040.01115.66
7.1.270.0000.01216.01
7.1.260.0030.00915.79
7.1.250.0050.00815.87
7.1.240.0060.00615.54
7.1.230.0090.00315.63
7.1.220.0030.00715.72
7.1.210.0080.00615.91
7.1.200.0040.00615.68
7.1.190.0080.00415.74
7.1.180.0110.00015.81
7.1.170.0090.00016.00
7.1.160.0070.00715.54
7.1.150.0110.00415.89
7.1.140.0070.00715.67
7.1.130.0090.00615.62
7.1.120.0060.00915.86
7.1.110.0000.01415.58
7.1.100.0070.00317.00
7.1.90.0030.01415.74
7.1.80.0100.00715.63
7.1.70.0040.00416.46
7.1.60.0100.00717.60
7.1.50.0070.00816.06
7.1.40.0030.01415.87
7.1.30.0060.00615.80
7.1.20.0040.00415.70
7.1.10.0040.01115.59
7.1.00.0050.04019.11
7.0.330.0060.00615.51
7.0.320.0000.01215.16
7.0.310.0070.00715.50
7.0.300.0060.00615.37
7.0.290.0060.00615.50
7.0.280.0000.01215.19
7.0.270.0060.00915.38
7.0.260.0000.01315.05
7.0.250.0060.00815.44
7.0.240.0040.00415.28
7.0.230.0100.00315.41
7.0.220.0040.00715.21
7.0.210.0070.00715.61
7.0.200.0200.00515.07
7.0.190.0070.00715.38
7.0.180.0000.01415.41
7.0.170.0050.00515.63
7.0.160.0070.00415.23
7.0.150.0000.00815.23
7.0.140.0000.01515.38
7.0.130.0030.01015.65
7.0.120.0070.00715.47
7.0.110.0060.00615.38
7.0.100.0060.00615.47
7.0.90.0040.00815.34
7.0.80.0040.00715.34
7.0.70.0000.00915.56
7.0.60.0100.03017.61
7.0.50.0050.04116.72
7.0.40.0050.04216.91
7.0.30.0220.02316.88
7.0.20.0170.04416.77
7.0.10.0020.02816.78
7.0.00.0080.02316.82
5.6.400.0040.00414.27
5.6.390.0030.01014.52
5.6.380.0090.00314.32
5.6.370.0070.00414.53
5.6.360.0000.01314.43
5.6.350.0050.00314.44
5.6.340.0030.01014.52
5.6.330.0030.00914.63
5.6.320.0040.00714.31
5.6.310.0080.00514.13
5.6.300.0060.00313.98
5.6.290.0030.01314.23
5.6.280.0050.01917.51
5.6.270.0000.01414.45
5.6.260.0110.00414.18
5.6.250.0070.00714.38
5.6.240.0000.01514.22
5.6.230.0060.00914.21
5.6.220.0060.00614.30
5.6.210.0060.02317.38
5.6.200.0070.04316.26
5.6.190.0080.04317.34
5.6.180.0130.04417.29
5.6.170.0210.04317.22
5.6.160.0050.02516.26
5.6.150.0030.02516.29
5.6.140.0120.04016.20
5.6.130.0070.04516.17
5.6.120.0080.02717.62
5.6.110.0150.03817.60
5.6.100.0050.04817.61
5.6.90.0100.04317.57
5.6.80.0080.04217.17
5.6.70.0030.01014.39
5.6.60.0030.00614.23
5.6.50.0070.00714.25
5.6.40.0070.00713.99
5.6.30.0090.00314.38
5.6.20.0090.00614.16
5.6.10.0060.00914.16
5.6.00.0000.01514.13
5.5.380.0120.00314.27
5.5.370.0080.00814.18
5.5.360.0070.00714.51
5.5.350.0100.03117.23
5.5.340.0020.02616.02
5.5.330.0070.04117.26
5.5.320.0060.02317.22
5.5.310.0150.02317.25
5.5.300.0080.02016.06
5.5.290.0060.02616.06
5.5.280.0030.03117.68
5.5.270.0100.04117.58
5.5.260.0080.03317.61
5.5.250.0030.02517.46
5.5.240.2000.02217.10
5.5.230.0000.01314.22
5.5.220.0030.01014.11
5.5.210.0070.00714.04
5.5.200.0100.00614.33
5.5.190.0070.01014.21
5.5.180.0130.00014.33
5.5.170.0080.00814.13
5.5.160.0070.01114.29
5.5.150.0070.00714.18
5.5.140.0100.00714.18
5.5.130.0000.01214.46
5.5.120.0080.00814.35
5.5.110.0120.00014.36
5.5.100.0030.00614.45
5.5.90.0100.00614.01
5.5.80.0130.00014.27
5.5.70.0030.00914.28
5.5.60.0130.00014.05
5.5.50.0030.00614.36
5.5.40.0060.00614.28
5.5.30.0090.00414.23
5.5.20.0000.01214.39
5.5.10.0100.00714.08
5.5.00.0030.01014.18

preferences:
28.81 ms | 403 KiB | 5 Q