3v4l.org

run code in 300+ PHP versions simultaneously
<?php $objects = array( new StdClass, new StdClass ); foreach ($objects as $obj) { $obj->var = true; } var_dump($objects); $arrays = array( array(), array() ); foreach ($arrays as $arr) { $arr['var'] = true; } var_dump($arrays);

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.0130.01016.63
8.3.50.0140.00816.46
8.3.40.0120.00918.84
8.3.30.0070.01118.67
8.3.20.0080.00018.70
8.3.10.0040.00418.66
8.3.00.0090.00019.25
8.2.180.0140.00416.63
8.2.170.0150.00022.96
8.2.160.0070.00721.20
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00821.11
8.2.110.0060.00320.99
8.2.100.0080.00417.72
8.2.90.0060.00319.38
8.2.80.0070.00019.40
8.2.70.0030.00517.75
8.2.60.0080.00017.93
8.2.50.0040.00418.07
8.2.40.0000.00918.17
8.2.30.0000.00918.08
8.2.20.0000.00917.75
8.2.10.0000.00717.55
8.2.00.0030.00517.64
8.1.280.0150.00325.92
8.1.270.0050.00324.66
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0070.00322.55
8.1.230.0110.00020.91
8.1.220.0000.00817.74
8.1.210.0030.00618.80
8.1.200.0030.00717.48
8.1.190.0040.00417.52
8.1.180.0060.00318.10
8.1.170.0000.00918.78
8.1.160.0000.00718.79
8.1.150.0000.00718.66
8.1.140.0000.00717.44
8.1.130.0030.00517.82
8.1.120.0030.00617.39
8.1.110.0030.00617.33
8.1.100.0000.00717.52
8.1.90.0000.00817.46
8.1.80.0000.00717.36
8.1.70.0000.00717.41
8.1.60.0110.00017.44
8.1.50.0030.00617.46
8.1.40.0080.00017.43
8.1.30.0070.00017.63
8.1.20.0050.00217.64
8.1.10.0060.00317.59
8.1.00.0040.00417.48
8.0.300.0040.00419.86
8.0.290.0000.00716.63
8.0.280.0000.00718.35
8.0.270.0030.00317.18
8.0.260.0000.00616.81
8.0.250.0040.00417.02
8.0.240.0000.00716.95
8.0.230.0050.00316.85
8.0.220.0060.00016.82
8.0.210.0000.00716.86
8.0.200.0030.00316.78
8.0.190.0030.00617.00
8.0.180.0000.01016.89
8.0.170.0000.00816.86
8.0.160.0000.00716.92
8.0.150.0060.00316.88
8.0.140.0030.00616.87
8.0.130.0030.00313.32
8.0.120.0040.00416.82
8.0.110.0080.00016.82
8.0.100.0050.00316.82
8.0.90.0000.00716.88
8.0.80.0040.01116.85
8.0.70.0020.00516.83
8.0.60.0070.00016.86
8.0.50.0040.00416.82
8.0.30.0070.01117.07
8.0.20.0100.00817.18
8.0.10.0000.00816.89
8.0.00.0100.01016.81
7.4.330.0000.00612.99
7.4.320.0000.00616.60
7.4.300.0000.00616.59
7.4.290.0030.00316.59
7.4.280.0070.00016.61
7.4.270.0000.00716.50
7.4.260.0000.00513.28
7.4.250.0000.00816.40
7.4.240.0020.00516.54
7.4.230.0030.00316.70
7.4.220.0070.01116.34
7.4.210.0090.00616.59
7.4.200.0060.00316.57
7.4.190.0000.00816.63
7.4.160.0080.00816.60
7.4.150.0160.00316.56
7.4.140.0060.01116.56
7.4.130.0060.01216.61
7.4.120.0070.01016.50
7.4.110.0060.01216.34
7.4.100.0170.00016.65
7.4.90.0060.01316.65
7.4.80.0090.00919.39
7.4.70.0110.00816.51
7.4.60.0070.01016.46
7.4.50.0020.00616.45
7.4.40.0030.01116.29
7.4.30.0150.00016.49
7.4.00.0070.00714.79
7.3.330.0070.00013.07
7.3.320.0060.00013.12
7.3.310.0000.00716.33
7.3.300.0000.00716.32
7.3.290.0060.00916.28
7.3.280.0090.00716.31
7.3.270.0070.01116.36
7.3.260.0130.00416.39
7.3.250.0130.01116.52
7.3.240.0120.00416.58
7.3.230.0120.00616.39
7.3.210.0080.00816.29
7.3.200.0130.00316.64
7.3.190.0180.00416.26
7.3.180.0060.00916.52
7.3.170.0070.01116.46
7.3.160.0040.01216.14
7.3.120.0110.00414.65
7.2.330.0190.00616.70
7.2.320.0070.01816.79
7.2.310.0100.01316.52
7.2.300.0140.00716.68
7.2.290.0100.01416.43
7.2.120.0070.00616.56
7.2.110.0100.00316.61
7.2.100.0030.00816.56
7.2.90.0030.01316.66
7.2.80.0090.00416.51
7.2.70.0110.00416.82
7.2.60.0030.01317.07
7.2.50.0040.00916.77
7.2.40.0090.00617.07
7.2.30.0000.01416.89
7.2.20.0090.00916.86
7.2.10.0070.01016.79
7.2.00.0020.01218.09
7.1.240.0090.00315.75
7.1.230.0040.00715.91
7.1.220.0030.00915.61
7.1.210.0030.00715.91
7.1.200.0030.00815.84
7.1.190.0120.00015.72
7.1.180.0030.00615.93
7.1.170.0070.00715.70
7.1.160.0000.01215.94
7.1.150.0040.00815.94
7.1.140.0070.00715.62
7.1.130.0060.00315.55
7.1.120.0090.00315.79
7.1.110.0000.01315.49
7.1.100.0070.00616.87
7.1.90.0080.00315.93
7.1.80.0040.00815.59
7.1.70.0030.00816.43
7.1.60.0050.01117.49
7.1.50.0080.01116.30
7.1.40.0110.00015.54
7.1.30.0030.01015.70
7.1.20.0070.00715.90
7.1.10.0000.00815.82
7.1.00.0120.03719.17
7.0.320.0000.00715.46
7.0.310.0030.01015.35
7.0.300.0060.00615.48
7.0.290.0040.00815.36
7.0.280.0040.00815.25
7.0.270.0060.00615.22
7.0.260.0070.00715.56
7.0.250.0030.00915.54
7.0.240.0040.00815.59
7.0.230.0040.00715.18
7.0.220.0100.00315.44
7.0.210.0060.00615.50
7.0.200.0080.00516.04
7.0.190.0060.00615.28
7.0.180.0080.00615.61
7.0.170.0040.00415.36
7.0.160.0040.00415.24
7.0.150.0040.00815.21
7.0.140.0040.04118.76
7.0.130.0000.01115.23
7.0.120.0050.03818.81
7.0.110.0060.00615.42
7.0.100.0000.01015.35
7.0.90.0120.00315.41
7.0.80.0000.01215.64
7.0.70.0000.01315.42
7.0.60.0070.04717.69
7.0.50.0050.04216.65
7.0.40.0130.03815.72
7.0.30.0050.02215.66
7.0.20.0050.02515.60
7.0.10.0020.02315.64
7.0.00.0080.04015.47
5.6.380.0030.01014.57
5.6.370.0090.00614.16
5.6.360.0040.00714.68
5.6.350.0060.00614.55
5.6.340.0000.01214.76
5.6.330.0050.00314.37
5.6.320.0070.00714.70
5.6.310.0040.00714.74
5.6.300.0100.00014.64
5.6.290.0000.00814.73
5.6.280.0070.00314.38
5.6.270.0000.00814.25
5.6.260.0030.00914.58
5.6.250.0070.00714.53
5.6.240.0070.00714.53
5.6.230.0070.00414.62
5.6.220.0090.00314.32
5.6.210.0040.04717.72
5.6.200.0050.03816.25
5.6.190.0030.04216.37
5.6.180.0000.02616.38
5.6.170.0030.02316.30
5.6.160.0060.04016.22
5.6.150.0100.03916.31
5.6.140.0080.02216.21
5.6.130.0120.03516.47
5.6.120.0120.04216.23
5.6.110.0080.03516.27
5.6.100.0060.04516.21
5.6.90.0100.04116.12
5.6.80.0090.03615.81
5.6.70.0050.03216.00
5.6.60.0070.03215.89
5.6.50.0050.02515.92
5.6.40.0050.04516.00
5.6.30.0100.03715.85
5.6.20.0110.03615.83
5.6.10.0130.03216.11
5.6.00.0070.03915.89
5.5.380.0060.00011.04
5.5.370.0060.00011.11
5.5.360.0050.00011.32
5.5.350.0170.03515.63
5.5.340.0050.02214.68
5.5.330.0090.03214.61
5.5.320.0000.02614.48
5.5.310.0030.02314.59
5.5.300.0060.02814.58
5.5.290.0030.03814.53
5.5.280.0050.04014.46
5.5.270.0100.02314.64
5.5.260.0050.04714.52
5.5.250.0120.03514.53
5.5.240.0080.03214.23
5.5.230.0070.02714.30
5.5.220.0080.03914.24
5.5.210.0100.02314.21
5.5.200.0040.02714.21
5.5.190.0080.04014.18
5.5.180.0060.02714.23
5.5.170.0120.00014.18
5.5.160.0100.03814.04
5.5.150.0090.03714.19
5.5.140.0070.04214.13
5.5.130.0080.03714.29
5.5.120.0080.02614.25
5.5.110.0070.02414.23
5.5.100.0070.03014.13
5.5.90.0050.04014.03
5.5.80.0130.03514.13
5.5.70.0050.04014.19
5.5.60.0070.03914.13
5.5.50.0160.03314.13
5.5.40.0060.04114.14
5.5.30.0050.03014.13
5.5.20.0080.02514.01
5.5.10.0060.03914.10
5.5.00.0110.02114.04
5.4.450.0070.03715.10
5.4.440.0080.03215.06
5.4.430.0050.04215.31
5.4.420.0080.03215.32
5.4.410.0100.02715.16
5.4.400.0070.03715.05
5.4.390.0110.04014.96
5.4.380.0090.03814.98
5.4.370.0080.01814.94
5.4.360.0030.02515.02
5.4.350.0030.03015.04
5.4.340.0030.04415.00
5.4.330.0090.00310.90
5.4.320.0060.04315.12
5.4.310.0080.03315.19
5.4.300.0110.03515.12
5.4.290.0050.04214.98
5.4.280.0030.02415.05
5.4.270.0100.03814.99
5.4.260.0040.04514.96
5.4.250.0050.02714.86
5.4.240.0100.03915.01
5.4.230.0080.02515.07
5.4.220.0130.03315.12
5.4.210.0050.04215.04
5.4.200.0060.03514.97
5.4.190.0040.04215.01
5.4.180.0110.03415.04
5.4.170.0040.03115.05
5.4.160.0040.02215.02
5.4.150.0100.02715.03
5.4.140.0060.04213.77
5.4.130.0070.03513.51
5.4.120.0100.03313.62
5.4.110.0050.03113.64
5.4.100.0070.02013.82
5.4.90.0120.01313.73
5.4.80.0090.02513.72
5.4.70.0060.03913.72
5.4.60.0060.02513.60
5.4.50.0090.03413.68
5.4.40.0080.02013.78
5.4.30.0050.02013.71
5.4.20.0070.02013.60
5.4.10.0100.03513.60
5.4.00.0090.03513.51
5.3.290.0120.03212.64
5.3.280.0070.04012.52
5.3.270.0040.03712.55
5.3.260.0070.04112.56
5.3.250.0090.02812.55
5.3.240.0100.03212.54
5.3.230.0070.04112.43
5.3.220.0070.04012.47
5.3.210.0080.02512.50
5.3.200.0100.01812.40
5.3.190.0090.01812.36
5.3.180.0060.02812.52
5.3.170.0030.02612.49
5.3.160.0100.02012.60
5.3.150.0130.03312.41
5.3.140.0050.03312.43
5.3.130.0050.02112.41
5.3.120.0090.02012.47
5.3.110.0090.01812.46
5.3.100.0070.03912.24
5.3.90.0050.03112.31
5.3.80.0080.04012.18
5.3.70.0030.04112.01
5.3.60.0040.04212.19
5.3.50.0060.04312.03
5.3.40.0040.03912.14
5.3.30.0040.02912.12
5.3.20.0080.03812.01
5.3.10.0060.03711.80
5.3.00.0060.03911.90
5.2.170.0030.02910.40
5.2.160.0130.02510.47
5.2.150.0070.03510.44
5.2.140.0090.02510.48
5.2.130.0110.02610.44
5.2.120.0030.02210.45
5.2.110.0120.02710.54
5.2.100.0050.03410.45
5.2.90.0050.03410.43
5.2.80.0030.03310.38
5.2.70.0020.02710.46
5.2.60.0050.03410.44
5.2.50.0090.02310.50
5.2.40.0040.03210.38
5.2.30.0070.02310.37
5.2.20.0030.03510.39
5.2.10.0040.02510.35
5.2.00.0050.02210.25
5.1.60.0100.0179.90
5.1.50.0040.0309.91
5.1.40.0060.0289.97
5.1.30.0040.03210.09
5.1.20.0070.02710.10
5.1.10.0070.0309.94
5.1.00.0080.0189.91
5.0.50.0040.0259.17
5.0.40.0070.0209.08
5.0.30.0040.0328.94
5.0.20.0050.0219.06
5.0.10.0060.0159.01
5.0.00.0030.0339.00
4.4.90.0050.0188.85
4.4.80.0050.0188.85
4.4.70.0010.0118.85
4.4.60.0020.0228.85
4.4.50.0060.0128.85
4.4.40.0050.0258.85
4.4.30.0030.0238.85
4.4.20.0010.0208.85
4.4.10.0040.0188.85
4.4.00.0050.0168.85
4.3.110.0010.0208.85
4.3.100.0040.0108.85
4.3.90.0000.0198.85
4.3.80.0010.0238.85
4.3.70.0000.0208.85
4.3.60.0040.0158.85
4.3.50.0060.0148.85
4.3.40.0080.0228.85
4.3.30.0000.0198.85
4.3.20.0000.0238.85
4.3.10.0030.0198.85
4.3.00.0020.0188.85

preferences:
50.09 ms | 401 KiB | 5 Q