3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(0, 1, 2); $ar = new ArrayObject($array); $x = (array)$ar; var_dump($x); var_dump((object)$ar);

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.0070.00716.38
8.3.50.0140.00420.07
8.3.40.0040.01118.45
8.3.30.0100.00719.06
8.3.20.0000.00820.26
8.3.10.0000.00723.64
8.3.00.0080.00019.13
8.2.180.0150.00316.38
8.2.170.0080.00622.96
8.2.160.0120.00820.40
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0030.00526.16
8.2.120.0080.00021.16
8.2.110.0030.00622.19
8.2.100.0090.00317.78
8.2.90.0000.00819.09
8.2.80.0030.00517.97
8.2.70.0050.00317.63
8.2.60.0040.00417.79
8.2.50.0090.00018.07
8.2.40.0040.00419.82
8.2.30.0000.00717.92
8.2.20.0040.00417.66
8.2.10.0060.00318.04
8.2.00.0040.00417.65
8.1.280.0030.01025.92
8.1.270.0050.00323.78
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0120.00623.97
8.1.230.0060.00619.22
8.1.220.0090.00017.74
8.1.210.0000.00818.77
8.1.200.0040.00417.36
8.1.190.0080.00017.00
8.1.180.0040.00418.10
8.1.170.0000.00718.47
8.1.160.0040.00421.94
8.1.150.0030.00518.78
8.1.140.0040.00417.24
8.1.130.0030.00317.73
8.1.120.0030.00317.33
8.1.110.0000.00817.21
8.1.100.0000.00717.34
8.1.90.0080.00017.41
8.1.80.0040.00417.39
8.1.70.0000.00717.37
8.1.60.0030.00517.46
8.1.50.0040.00417.46
8.1.40.0030.00617.52
8.1.30.0080.00017.68
8.1.20.0000.00717.73
8.1.10.0040.00417.41
8.1.00.0020.00517.38
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0030.00318.30
8.0.270.0050.00216.68
8.0.260.0030.00317.18
8.0.250.0040.00416.77
8.0.240.0040.00416.89
8.0.230.0030.00316.86
8.0.220.0030.00316.80
8.0.210.0000.00716.74
8.0.200.0060.00016.77
8.0.190.0040.00416.88
8.0.180.0030.00416.81
8.0.170.0030.00516.88
8.0.160.0030.00516.90
8.0.150.0040.00416.68
8.0.140.0030.00316.77
8.0.130.0000.00613.20
8.0.120.0050.00316.77
8.0.110.0000.00716.85
8.0.100.0000.00816.68
8.0.90.0000.00716.69
8.0.80.0040.01116.87
8.0.70.0040.00416.67
8.0.60.0000.00816.72
8.0.50.0040.00416.88
8.0.30.0110.00817.12
8.0.20.0130.00617.40
8.0.10.0000.00716.97
8.0.00.0040.01416.69
7.4.330.0000.00515.00
7.4.320.0000.00616.60
7.4.300.0030.00316.56
7.4.290.0000.00816.59
7.4.280.0050.00316.47
7.4.270.0000.00716.42
7.4.260.0040.00416.45
7.4.250.0040.00416.43
7.4.240.0020.00516.46
7.4.230.0040.00416.40
7.4.220.0040.01416.54
7.4.210.0090.00616.43
7.4.200.0040.00416.32
7.4.160.0030.01316.65
7.4.150.0170.00317.40
7.4.140.0100.00817.86
7.4.130.0100.00916.41
7.4.120.0060.01316.44
7.4.110.0130.01016.28
7.4.100.0100.00716.58
7.4.90.0070.01016.43
7.4.80.0080.01619.39
7.4.70.0150.00016.41
7.4.60.0060.01116.34
7.4.50.0030.00616.30
7.4.40.0120.00916.33
7.4.30.0150.00616.47
7.4.00.0050.00914.94
7.3.330.0050.00013.02
7.3.320.0050.00012.93
7.3.310.0060.00016.32
7.3.300.0030.00316.20
7.3.290.0070.01316.23
7.3.280.0080.00916.22
7.3.270.0090.01017.40
7.3.260.0110.01116.61
7.3.250.0060.01216.35
7.3.240.0080.00816.30
7.3.230.0050.01116.39
7.3.210.0030.01316.24
7.3.200.0090.00619.39
7.3.190.0000.01716.46
7.3.180.0030.01316.29
7.3.170.0030.01316.27
7.3.160.0070.01016.23
7.3.120.0080.00814.57
7.3.110.0000.01714.82
7.3.100.0080.00814.47
7.3.90.0030.00814.46
7.3.80.0090.00614.52
7.3.70.0090.00314.69
7.3.60.0000.01214.67
7.3.50.0000.01114.85
7.3.40.0040.01114.78
7.3.30.0070.00314.87
7.3.20.0120.00016.43
7.3.10.0080.00716.51
7.3.00.0060.00616.12
7.2.330.0070.01516.57
7.2.320.0040.01416.44
7.2.310.0120.00616.53
7.2.300.0060.00916.64
7.2.290.0140.00616.59
7.2.250.0120.00614.79
7.2.240.0030.01714.79
7.2.230.0070.00715.09
7.2.220.0030.01315.09
7.2.210.0110.00414.76
7.2.200.0090.00614.80
7.2.190.0040.01114.90
7.2.180.0000.01314.93
7.2.170.0060.01015.11
7.2.130.0120.00716.14
7.2.120.0160.00316.40
7.2.110.0160.00416.53
7.2.100.0100.01016.53
7.2.90.0100.01116.75
7.2.80.0110.00516.65
7.2.70.0090.01216.81
7.2.60.0100.00516.48
7.2.50.0090.00916.72
7.2.40.0080.01016.60
7.2.30.0060.01416.76
7.2.20.0130.00816.52
7.2.10.0120.00716.41
7.2.00.0040.01117.63
7.1.330.0040.01115.92
7.1.320.0110.00415.76
7.1.310.0120.00315.55
7.1.300.0040.00815.75
7.1.290.0080.00415.57
7.1.280.0070.01015.72
7.1.270.0000.01315.74
7.1.260.0080.00315.62
7.1.250.0090.00615.27
7.1.100.0030.01418.00
7.1.70.0040.00717.16
7.1.60.0070.01419.40
7.1.50.0100.00316.89
7.1.00.0070.07322.32
7.0.200.0030.00316.52
7.0.140.0030.07322.09
7.0.60.0030.07019.96
7.0.50.0070.06717.89
7.0.40.0100.04320.04
7.0.30.0200.04020.09
7.0.20.0270.07020.29
7.0.10.0130.08020.00
7.0.00.0070.05720.19
5.6.280.0130.06320.98
5.6.210.0030.06720.44
5.6.200.0070.08318.12
5.6.190.0100.08020.45
5.6.180.0230.07720.39
5.6.170.0200.03720.46
5.6.160.0070.07320.46
5.6.150.0070.05318.07
5.6.140.0070.05318.11
5.6.130.0070.08718.14
5.6.120.0200.05720.99
5.6.110.0100.08321.03
5.6.100.0130.06320.99
5.6.90.0170.07020.94
5.6.80.0070.06320.37
5.5.350.0200.05320.40
5.5.340.0070.05017.95
5.5.330.0070.07320.06
5.5.320.0230.07320.29
5.5.310.0270.07320.30
5.5.300.0070.08318.02
5.5.290.0130.04017.99
5.5.280.0070.06720.97
5.5.270.0100.08020.71
5.5.260.0200.05720.78
5.5.250.0070.08320.68
5.5.240.0000.08720.15
5.4.450.0800.05719.63
5.4.440.0430.06319.10
5.4.430.0570.06019.48
5.4.420.0570.05719.63
5.4.410.0130.04718.95
5.4.400.0400.05018.75
5.4.390.0470.05018.61
5.4.380.0200.06718.72
5.4.370.0030.04718.52
5.4.360.0230.05018.68
5.4.350.0090.03411.97
5.4.340.0040.03811.97
5.4.320.0050.04112.45
5.4.310.0080.03712.45
5.4.300.0050.03812.45
5.4.290.0050.03912.45
5.4.280.0100.04712.34
5.4.270.0050.03812.35
5.4.260.0080.03512.34
5.4.250.0050.03812.34
5.4.240.0040.03812.34
5.4.230.0070.05112.34
5.4.220.0060.03812.34
5.4.210.0120.04612.34
5.4.200.0090.04612.34
5.4.190.0050.05012.33
5.4.180.0040.04012.34
5.4.170.0070.03812.34
5.4.160.0060.03712.34
5.4.150.0070.04112.34
5.4.140.0060.03612.02
5.4.130.0050.03612.01
5.4.120.0050.03511.97
5.4.110.0080.03311.96
5.4.100.0050.03611.96
5.4.90.0040.03811.96
5.4.80.0050.03711.96
5.4.70.0050.03811.96
5.4.60.0060.03511.96
5.4.50.0050.03511.96
5.4.40.0070.04411.95
5.4.30.0070.03511.95
5.4.20.0050.03611.94
5.4.10.0070.03311.95
5.4.00.0080.03411.43
5.3.290.0060.04112.80
5.3.280.0030.04112.71
5.3.270.0110.03712.72
5.3.260.0040.04212.72
5.3.250.0070.03912.72
5.3.240.0050.04112.71
5.3.230.0050.04112.71
5.3.220.0100.03312.68
5.3.210.0050.04012.68
5.3.200.0040.03812.68
5.3.190.0040.03912.68
5.3.180.0060.03812.67
5.3.170.0060.03712.67
5.3.160.0080.03512.67
5.3.150.0050.03812.67
5.3.140.0060.03712.66
5.3.130.0040.04112.66
5.3.120.0080.03712.66
5.3.110.0050.04012.66
5.3.100.0040.04312.12
5.3.90.0070.03512.09
5.3.80.0060.03712.07
5.3.70.0100.03212.08
5.3.60.0050.03712.07
5.3.50.0030.03912.00
5.3.40.0080.03512.00
5.3.30.0100.03111.94
5.3.20.0060.03611.72
5.3.10.0070.03411.69
5.3.00.0080.03411.68
5.2.170.0070.0379.17
5.2.160.0100.0439.18
5.2.150.0070.0369.18
5.2.140.0040.0349.17
5.2.130.0110.0389.14
5.2.120.0050.0289.13
5.2.110.0080.0369.14
5.2.100.0030.0319.14
5.2.90.0040.0309.14
5.2.80.0040.0319.14
5.2.70.0030.0329.13
5.2.60.0040.0309.08
5.2.50.0040.0299.05
5.2.40.0060.0279.03
5.2.30.0040.0309.01
5.2.20.0050.0319.00
5.2.10.0060.0308.92
5.2.00.0050.0288.77
5.1.60.0030.0258.06
5.1.50.0050.0248.05
5.1.40.0040.0248.04
5.1.30.0050.0258.39
5.1.20.0060.0268.41
5.1.10.0060.0248.13
5.1.00.0050.0288.14
5.0.50.0050.0196.62
5.0.40.0050.0176.47
5.0.30.0050.0296.29
5.0.20.0020.0216.26
5.0.10.0030.0206.24
5.0.00.0070.0276.23
4.4.90.0010.0174.78
4.4.80.0030.0154.76
4.4.70.0040.0144.76
4.4.60.0010.0174.75
4.4.50.0020.0164.77
4.4.40.0020.0254.71
4.4.30.0030.0154.75
4.4.20.0020.0164.84
4.4.10.0020.0164.85
4.4.00.0020.0254.76
4.3.110.0010.0174.67
4.3.100.0030.0144.66
4.3.90.0020.0154.63
4.3.80.0040.0234.59
4.3.70.0020.0184.63
4.3.60.0030.0144.63
4.3.50.0030.0154.63
4.3.40.0030.0234.54
4.3.30.0020.0163.28
4.3.20.0020.0163.25
4.3.10.0000.0173.22
4.3.00.0170.0207.16

preferences:
84.71 ms | 400 KiB | 5 Q