3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Create new stdClass with numeric attribute, stored as string. $bla = new stdClass; $bla->{"1012"} = "Value 1"; $bla->{1012} = "Value 2"; // Convert to array $bla = (array) $bla; if (!isset($bla[1012])) { // ISSET fails, because it is now "1012" instead of 1012 var_dump($bla); $bla[1012] = "Value 4"; } var_dump($bla); echo json_encode($bla);

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.0140.00718.32
8.3.50.0070.00718.04
8.3.40.0120.00918.92
8.3.30.0070.00718.66
8.3.20.0080.00018.69
8.3.10.0000.00723.67
8.3.00.0040.00420.89
8.2.180.0140.00718.42
8.2.170.0090.00622.96
8.2.160.0030.01020.35
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0130.00719.77
8.2.120.0070.00026.35
8.2.110.0030.00722.26
8.2.100.0060.00617.78
8.2.90.0060.00317.88
8.2.80.0000.00817.97
8.2.70.0050.00317.93
8.2.60.0040.00418.09
8.2.50.0080.00018.10
8.2.40.0000.00719.36
8.2.30.0040.00419.37
8.2.20.0000.00818.05
8.2.10.0050.00318.24
8.2.00.0000.00817.67
8.1.280.0150.00625.92
8.1.270.0060.00323.91
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0070.00322.51
8.1.230.0080.00617.77
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0060.00318.57
8.1.160.0070.00018.89
8.1.150.0050.00218.97
8.1.140.0000.00723.92
8.1.130.0000.00720.04
8.1.120.0070.00017.49
8.1.110.0070.00417.34
8.1.100.0070.00017.39
8.1.90.0040.00417.38
8.1.80.0040.00417.36
8.1.70.0070.00017.39
8.1.60.0050.00317.54
8.1.50.0030.00617.52
8.1.40.0000.00717.54
8.1.30.0060.00317.63
8.1.20.0040.00417.65
8.1.10.0000.00917.44
8.1.00.0030.00617.40
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0000.00818.32
8.0.270.0000.00717.13
8.0.260.0030.00620.16
8.0.250.0070.00016.96
8.0.240.0030.00316.92
8.0.230.0070.00016.79
8.0.220.0100.00016.89
8.0.210.0030.00316.96
8.0.200.0070.00016.80
8.0.190.0000.00816.99
8.0.180.0000.00716.84
8.0.170.0040.00416.91
8.0.160.0040.00416.90
8.0.150.0000.00716.88
8.0.140.0070.00016.85
8.0.130.0030.00313.31
8.0.120.0040.00416.86
8.0.110.0000.00716.95
8.0.100.0000.00716.76
8.0.90.0060.00316.91
8.0.80.0040.01416.87
8.0.70.0040.00416.73
8.0.60.0080.00016.96
8.0.50.0040.00416.93
8.0.30.0100.00916.95
8.0.20.0100.01217.40
8.0.10.0080.00016.90
8.0.00.0120.00916.82
7.4.330.0000.00515.55
7.4.320.0000.00616.58
7.4.300.0000.00716.65
7.4.290.0000.00716.49
7.4.280.0040.00416.52
7.4.270.0030.00316.54
7.4.260.0040.00416.39
7.4.250.0030.00616.45
7.4.240.0070.00016.63
7.4.230.0080.00016.67
7.4.220.0000.00716.62
7.4.210.0110.00516.50
7.4.200.0080.00016.69
7.4.160.0100.00816.50
7.4.140.0090.01017.86
7.4.130.0130.01016.50
7.4.120.0100.00816.52
7.4.110.0160.00616.36
7.4.100.0090.01516.41
7.4.90.0150.00316.62
7.4.80.0030.01319.39
7.4.70.0130.00616.43
7.4.60.0100.00716.55
7.4.50.0150.00016.53
7.4.40.0100.00616.58
7.4.10.0060.01115.23
7.4.00.0060.01114.91
7.3.330.0000.00513.18
7.3.320.0000.00613.19
7.3.310.0000.00816.23
7.3.300.0060.00016.20
7.3.290.0030.00316.25
7.3.280.0090.00716.30
7.3.260.0090.00916.42
7.3.240.0110.00716.41
7.3.230.0100.00716.44
7.3.210.0110.00716.29
7.3.200.0100.00616.38
7.3.190.0090.00616.46
7.3.180.0060.01016.38
7.3.170.0100.00716.53
7.3.160.0140.00716.73
7.3.130.0070.00714.51
7.3.120.0030.01314.68
7.3.110.0070.01014.83
7.3.100.0080.00514.70
7.3.90.0050.01014.69
7.3.80.0080.00614.85
7.3.70.0050.00714.74
7.3.60.0080.00914.70
7.3.50.0050.00814.78
7.3.40.0060.00714.70
7.3.30.0020.01414.77
7.3.20.0050.00816.70
7.3.10.0020.01416.34
7.3.00.0030.01116.45
7.2.330.0170.00616.57
7.2.320.0140.00716.57
7.2.310.0120.00616.58
7.2.300.0080.00916.65
7.2.290.0110.00516.44
7.2.260.0130.00315.09
7.2.250.0080.00614.97
7.2.240.0090.00714.88
7.2.230.0050.00814.88
7.2.220.0030.00715.07
7.2.210.0070.00815.08
7.2.200.0000.01415.01
7.2.190.0030.00715.02
7.2.180.0090.00415.17
7.2.170.0050.00914.95
7.2.160.0070.00715.07
7.2.150.0030.01216.83
7.2.140.0090.00516.71
7.2.130.0050.00716.81
7.2.120.0080.00716.92
7.2.110.0310.00816.23
7.2.100.0300.00816.13
7.2.90.0320.00716.27
7.2.80.0640.01116.36
7.2.70.0280.00816.32
7.2.60.0600.00716.29
7.2.50.0300.00616.40
7.2.40.0370.00916.33
7.2.30.0290.00816.29
7.2.20.0300.00616.27
7.2.10.0130.00916.37
7.2.00.0300.00616.18
7.1.330.0070.00715.69
7.1.320.0080.00615.74
7.1.310.0070.00316.02
7.1.300.0030.00815.63
7.1.290.0050.00815.89
7.1.280.0080.00615.59
7.1.270.0100.00515.70
7.1.260.0110.00515.64
7.1.250.0050.01015.65
7.1.240.0040.01515.75
7.1.230.0370.01114.76
7.1.220.0410.01414.87
7.1.210.0340.01114.88
7.1.200.0350.00914.78
7.1.190.0490.00914.92
7.1.180.0460.00714.71
7.1.170.0370.00914.86
7.1.160.0530.00814.76
7.1.150.0250.00814.85
7.1.140.0250.00814.80
7.1.130.0440.00714.88
7.1.120.0420.00614.86
7.1.110.0410.00914.80
7.1.100.0340.01014.84
7.1.90.0250.01114.79
7.1.80.0460.00614.93
7.1.70.0360.00714.74
7.1.60.0500.00623.86
7.1.50.0530.00723.83
7.1.40.0550.01223.77
7.1.30.0180.01123.70
7.1.20.0540.01223.62
7.1.10.0120.00714.90
7.1.00.0400.01014.74
7.0.330.0060.00315.42
7.0.320.0000.00915.32
7.0.310.0030.00715.58
7.0.300.0080.00515.36
7.0.290.0080.00315.34
7.0.280.0090.00615.51
7.0.270.0070.00715.48
7.0.260.0070.00715.46
7.0.250.0120.00015.30
7.0.240.0060.00915.54
7.0.230.0040.00415.56
7.0.220.0030.00515.37
7.0.210.0000.01015.54
7.0.200.0110.00415.54
7.0.190.0000.01315.61
7.0.180.0040.00415.41
7.0.170.0030.00615.48
7.0.160.0070.01015.29
7.0.150.0030.01315.57
7.0.140.0030.01015.18
7.0.130.0000.01115.38
7.0.120.0030.01315.53
7.0.110.0100.00315.50
7.0.100.0120.00615.42
7.0.90.0000.01515.57
7.0.80.0080.00315.42
7.0.70.0090.00315.51
7.0.60.0070.00715.33
7.0.50.0070.00415.52
7.0.40.0030.01013.64
7.0.30.0040.00413.48
7.0.20.0090.00613.41
7.0.10.0040.00713.49
7.0.00.0000.01113.52
5.6.400.0100.00614.33
5.6.390.0000.00814.40
5.6.380.0070.00914.59
5.6.370.0130.00014.36
5.6.360.0030.00614.40
5.6.350.0000.01714.54
5.6.340.0030.00614.29
5.6.330.0060.00314.65
5.6.320.0040.01114.36
5.6.310.0030.00914.55
5.6.300.0030.01014.68
5.6.290.0030.00714.63
5.6.280.0030.01014.43
5.6.270.0070.00714.26
5.6.260.0060.00914.56
5.6.250.0060.01314.57
5.6.240.0000.01014.50
5.6.230.0070.00714.58
5.6.220.0060.00314.48
5.6.210.0060.00614.65
5.6.200.0070.00414.63
5.6.190.0000.01314.35
5.6.180.0070.00314.44
5.6.170.0100.00014.23
5.6.160.0030.01214.40
5.6.150.0000.01114.55
5.6.140.0040.00714.57
5.6.130.0100.00714.41
5.6.120.0040.00814.76
5.6.110.0100.00014.55
5.6.100.0000.01014.74
5.6.90.0060.00614.55
5.6.80.0100.00614.74
5.6.70.0080.00814.42
5.6.60.0030.01014.52
5.6.50.0060.00614.54
5.6.40.0060.00314.08
5.6.30.0070.00714.14
5.6.20.0130.00314.41
5.6.10.0100.00714.44
5.6.00.0090.00614.17

preferences:
53.44 ms | 400 KiB | 5 Q