3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Output using xdebug $zero = 'zero'; $ary = array($zero, 'one', 'two'); //unset($ary[1]); unset($ary[2]); unset($ary[1]); $bry = $ary; $ary[] = 'three'; $bry[] = 'three'; var_dump($ary, $bry, $ary == $bry);

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.00616.50
8.3.50.0110.01022.92
8.3.40.0110.00718.63
8.3.30.0140.00319.13
8.3.20.0040.00420.16
8.3.10.0000.00723.66
8.3.00.0000.00819.50
8.2.180.0120.00916.63
8.2.170.0070.00722.96
8.2.160.0070.00720.44
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0120.00626.16
8.2.120.0070.00021.08
8.2.110.0000.01020.94
8.2.100.0080.00317.72
8.2.90.0080.00318.02
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0060.00318.03
8.2.50.0040.00418.07
8.2.40.0040.00418.34
8.2.30.0050.00218.13
8.2.20.0040.00417.81
8.2.10.0000.00718.07
8.2.00.0040.00417.64
8.1.280.0100.00725.92
8.1.270.0050.00322.14
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00622.67
8.1.230.0080.00421.04
8.1.220.0000.00917.78
8.1.210.0040.00418.98
8.1.200.0080.00017.23
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0000.00818.47
8.1.160.0000.00722.01
8.1.150.0000.00718.90
8.1.140.0070.00017.41
8.1.130.0030.00317.82
8.1.120.0040.00317.45
8.1.110.0000.00717.46
8.1.100.0030.00317.45
8.1.90.0070.00017.45
8.1.80.0060.00317.49
8.1.70.0000.00817.44
8.1.60.0030.00517.53
8.1.50.0050.00317.50
8.1.40.0040.00417.36
8.1.30.0030.00517.60
8.1.20.0080.00017.65
8.1.10.0000.00817.57
8.1.00.0000.00817.45
8.0.300.0050.00219.88
8.0.290.0000.00716.75
8.0.280.0000.00818.47
8.0.270.0000.00717.29
8.0.260.0030.00317.27
8.0.250.0030.00316.87
8.0.240.0040.00417.02
8.0.230.0000.00716.94
8.0.220.0000.00716.84
8.0.210.0050.00216.85
8.0.200.0000.00616.96
8.0.190.0040.00416.97
8.0.180.0000.00716.94
8.0.170.0050.00316.81
8.0.160.0040.00416.89
8.0.150.0000.00716.73
8.0.140.0030.00316.78
8.0.130.0050.00013.28
8.0.120.0090.00016.74
8.0.110.0040.00316.89
8.0.100.0000.00716.75
8.0.90.0000.00716.88
8.0.80.0110.00416.94
8.0.70.0000.00816.96
8.0.60.0040.00416.79
8.0.50.0080.00016.75
8.0.30.0100.00917.15
8.0.20.0100.01017.40
8.0.10.0050.00216.99
8.0.00.0150.00216.69
7.4.330.0000.00515.09
7.4.320.0030.00316.61
7.4.300.0070.00016.49
7.4.290.0070.00016.39
7.4.280.0000.00816.48
7.4.270.0030.00316.45
7.4.260.0030.00316.51
7.4.250.0070.00016.61
7.4.240.0030.00316.52
7.4.230.0000.00616.31
7.4.220.0070.01116.67
7.4.210.0030.01316.66
7.4.200.0040.00416.30
7.4.160.0130.00316.52
7.4.150.0110.00817.40
7.4.140.0070.01017.86
7.4.130.0080.00916.46
7.4.120.0060.01116.59
7.4.110.0100.00616.53
7.4.100.0140.00316.48
7.4.90.0100.00716.53
7.4.80.0060.01519.39
7.4.70.0030.01316.42
7.4.60.0100.01016.54
7.4.50.0050.00016.49
7.4.40.0060.01216.45
7.4.30.0130.00316.54
7.4.00.0100.00414.88
7.3.330.0000.00513.20
7.3.320.0060.00013.24
7.3.310.0070.00016.40
7.3.300.0030.00316.16
7.3.290.0000.01516.37
7.3.280.0070.01116.36
7.3.270.0170.00817.40
7.3.260.0110.01516.40
7.3.250.0130.00616.48
7.3.240.0090.01216.35
7.3.230.0110.00616.50
7.3.210.0110.00716.45
7.3.200.0070.01119.39
7.3.190.0100.00716.78
7.3.180.0120.00916.48
7.3.170.0030.01316.63
7.3.160.0060.01516.67
7.3.120.0040.00714.76
7.3.110.0070.01014.90
7.3.100.0090.00915.12
7.3.90.0100.01014.86
7.3.80.0120.00314.60
7.3.70.0100.00714.82
7.3.60.0080.00814.86
7.3.50.0030.00714.48
7.3.40.0160.00014.55
7.3.30.0070.00715.02
7.3.20.0030.00716.35
7.3.10.0070.00316.46
7.3.00.0040.01116.89
7.2.330.0140.00316.75
7.2.320.0090.01416.64
7.2.310.0130.00916.41
7.2.300.0160.00016.28
7.2.290.0100.01016.59
7.2.250.0130.00714.98
7.2.240.0070.01314.91
7.2.230.0130.00615.17
7.2.220.0000.01514.84
7.2.210.0050.00514.92
7.2.200.0040.00814.96
7.2.190.0000.01015.04
7.2.180.0040.00814.94
7.2.170.0030.01314.88
7.2.00.0040.00819.07
7.1.330.0060.00615.76
7.1.320.0030.01015.58
7.1.310.0030.01315.93
7.1.300.0080.00415.59
7.1.290.0060.00615.99
7.1.280.0110.00415.55
7.1.270.0060.00315.88
7.1.260.0070.01016.02
7.1.100.0600.01015.62
7.1.70.0030.00717.02
7.1.60.0130.00719.40
7.1.50.0140.01016.93
7.1.00.0070.07322.30
7.0.200.0070.01016.54
7.0.140.0030.07322.21
7.0.60.0130.07320.00
7.0.50.0100.03317.87
7.0.40.0100.05020.19
7.0.30.0370.03720.13
7.0.20.0270.08720.11
7.0.10.0100.08720.12
7.0.00.0070.04020.17
5.6.280.0000.07321.09
5.6.210.0070.06320.72
5.6.200.0100.08018.13
5.6.190.0100.06320.29
5.6.180.0470.07320.36
5.6.170.0230.08020.50
5.6.160.0030.09020.40
5.6.150.0070.08318.18
5.6.140.0100.06718.22
5.6.130.0070.05718.11
5.6.120.0100.08020.71
5.6.110.0200.08021.11
5.6.100.0100.07320.95
5.6.90.0230.07020.95
5.6.80.0170.07320.48
5.5.350.0300.06320.35
5.5.340.0130.06317.88
5.5.330.0130.08020.57
5.5.320.0270.04320.28
5.5.310.0270.07720.29
5.5.300.0070.05017.89
5.5.290.0130.07717.90
5.5.280.0100.08020.78
5.5.270.0000.08320.71
5.5.260.0200.07020.75
5.5.250.0130.08020.45
5.5.240.0130.08320.15
5.4.450.0230.04319.43
5.4.440.0230.04019.46
5.4.430.0230.04719.54
5.4.420.0200.04019.38
5.4.410.0330.04319.43
5.4.400.0170.04719.25
5.4.390.0170.04719.10
5.4.380.0330.06718.62
5.4.370.0230.05718.44
5.4.360.0400.04018.50
5.4.350.0330.05018.61
5.4.340.0370.05018.68
5.4.320.0050.03612.45
5.4.310.0030.04012.45
5.4.300.0070.03412.45
5.4.290.0050.03812.45
5.4.280.0050.03512.34
5.4.270.0090.03912.35
5.4.260.0120.03712.34
5.4.250.0050.05212.35
5.4.240.0060.03512.35
5.4.230.0060.04712.34
5.4.220.0060.03512.34
5.4.210.0070.03512.34
5.4.200.0040.03912.34
5.4.190.0050.03612.33
5.4.180.0070.03312.33
5.4.170.0060.04512.34
5.4.160.0110.04412.34
5.4.150.0060.04212.34
5.4.140.0100.03712.02
5.4.130.0120.03512.01
5.4.120.0060.04411.96
5.4.110.0050.04211.96
5.4.100.0070.03311.96
5.4.90.0080.04011.96
5.4.80.0030.04511.96
5.4.70.0070.03311.96
5.4.60.0070.03411.96
5.4.50.0080.03411.96
5.4.40.0040.03611.95
5.4.30.0050.03611.95
5.4.20.0060.03811.95
5.4.10.0120.03911.95
5.4.00.0090.04411.44
5.3.290.0120.04612.80
5.3.280.0050.04412.71
5.3.270.0080.03712.72
5.3.260.0060.03812.71
5.3.250.0040.03912.72
5.3.240.0070.03612.72
5.3.230.0080.03812.71
5.3.220.0070.03712.68
5.3.210.0090.03712.68
5.3.200.0110.03212.68
5.3.190.0050.04112.68
5.3.180.0070.03912.67
5.3.170.0060.03812.67
5.3.160.0090.03712.68
5.3.150.0030.04212.68
5.3.140.0060.04312.66
5.3.130.0100.05012.66
5.3.120.0080.05212.66
5.3.110.0130.04812.66
5.3.100.0110.04612.12
5.3.90.0110.04712.09
5.3.80.0100.03812.08
5.3.70.0080.03412.07
5.3.60.0060.03612.06
5.3.50.0070.03812.00
5.3.40.0100.04612.00
5.3.30.0100.03311.94
5.3.20.0030.03711.72
5.3.10.0050.03511.69
5.3.00.0080.03411.68
5.2.170.0080.0359.18
5.2.160.0030.0369.18
5.2.150.0050.0299.17
5.2.140.0040.0309.17
5.2.130.0060.0279.13
5.2.120.0030.0299.13
5.2.110.0040.0299.14
5.2.100.0040.0339.14
5.2.90.0040.0289.14
5.2.80.0070.0269.14
5.2.70.0020.0319.14
5.2.60.0040.0309.08
5.2.50.0060.0299.05
5.2.40.0050.0289.03
5.2.30.0030.0319.00
5.2.20.0030.0319.00
5.2.10.0050.0328.92
5.2.00.0070.0308.77
5.1.60.0100.0288.06
5.1.50.0050.0298.05
5.1.40.0050.0238.04
5.1.30.0020.0288.39
5.1.20.0060.0258.41
5.1.10.0050.0258.13
5.1.00.0100.0268.13
5.0.50.0040.0196.62
5.0.40.0030.0186.47
5.0.30.0040.0296.29
5.0.20.0030.0206.26
5.0.10.0020.0216.23
5.0.00.0050.0316.23
4.4.90.0030.0234.77
4.4.80.0060.0164.76
4.4.70.0030.0154.75
4.4.60.0050.0164.75
4.4.50.0050.0194.77
4.4.40.0050.0264.71
4.4.30.0020.0184.76
4.4.20.0040.0184.85
4.4.10.0020.0164.85
4.4.00.0020.0254.76
4.3.110.0030.0154.67
4.3.100.0020.0154.67
4.3.90.0030.0174.63
4.3.80.0020.0254.59
4.3.70.0040.0164.63
4.3.60.0050.0224.63
4.3.50.0030.0154.63
4.3.40.0030.0234.54
4.3.30.0010.0183.29
4.3.20.0040.0213.27
4.3.10.0010.0173.23
4.3.00.0130.01315.64

preferences:
35.89 ms | 401 KiB | 5 Q