3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = 1; $obj = new stdClass; $obj->$key = 'val'; $arr = (array) $obj; var_dump($arr); var_dump($key); var_dump(isset($arr[$key]));

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.80.0030.00618.55
8.3.70.0180.00418.30
8.3.60.0110.00718.40
8.3.50.0070.01222.03
8.3.40.0090.00918.79
8.3.30.0090.00618.46
8.3.20.0000.00720.21
8.3.10.0040.00421.90
8.3.00.0040.00417.63
8.2.200.0090.00016.50
8.2.190.0110.00316.58
8.2.180.0040.01117.00
8.2.170.0110.00422.96
8.2.160.0000.01519.21
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0080.00022.09
8.2.120.0040.00426.35
8.2.110.0030.00620.51
8.2.100.0020.01418.16
8.2.90.0090.00019.20
8.2.80.0040.00417.97
8.2.70.0080.00417.63
8.2.60.0050.00318.04
8.2.50.0000.00818.07
8.2.40.0050.00320.07
8.2.30.0080.00018.02
8.2.20.0040.00417.63
8.2.10.0040.00418.13
8.2.00.0020.00517.95
8.1.290.0120.00330.84
8.1.280.0070.01025.92
8.1.270.0080.00023.86
8.1.260.0000.00828.09
8.1.250.0070.00028.09
8.1.240.0090.00023.92
8.1.230.0090.00517.77
8.1.220.0080.00017.74
8.1.210.0090.00018.77
8.1.200.0060.00317.36
8.1.190.0000.00817.36
8.1.180.0000.00818.10
8.1.170.0040.00418.59
8.1.160.0040.00418.89
8.1.150.0000.00718.91
8.1.140.0040.00419.52
8.1.130.0030.00320.21
8.1.120.0040.00417.54
8.1.110.0000.00817.46
8.1.100.0040.00417.35
8.1.90.0030.00617.51
8.1.80.0020.00517.52
8.1.70.0040.00417.48
8.1.60.0000.00717.48
8.1.50.0000.00817.51
8.1.40.0050.00317.50
8.1.30.0040.00417.64
8.1.20.0040.00417.49
8.1.10.0000.00817.39
8.1.00.0040.00417.46
8.0.300.0030.00518.77
8.0.290.0040.00416.58
8.0.280.0000.00718.49
8.0.270.0070.00017.17
8.0.260.0040.00418.35
8.0.250.0000.00716.96
8.0.240.0050.00316.86
8.0.230.0040.00416.97
8.0.220.0040.00416.88
8.0.210.0030.00516.89
8.0.200.0000.00616.89
8.0.190.0080.00016.93
8.0.180.0050.00316.88
8.0.170.0000.00716.94
8.0.160.0040.00416.80
8.0.150.0040.00416.79
8.0.140.0000.00816.89
8.0.130.0030.00313.38
8.0.120.0080.00016.92
8.0.110.0060.00316.83
8.0.100.0040.00416.76
8.0.90.0000.00816.95
8.0.80.0080.00816.85
8.0.70.0050.00516.74
8.0.60.0040.00416.93
8.0.50.0000.00816.74
8.0.30.0130.00817.04
8.0.20.0110.00717.40
8.0.10.0030.00516.83
8.0.00.0140.00316.85
7.4.330.0020.00215.08
7.4.320.0030.00316.54
7.4.300.0030.00316.55
7.4.290.0000.00716.63
7.4.280.0030.00616.51
7.4.270.0000.00816.47
7.4.260.0040.00416.54
7.4.250.0070.00016.46
7.4.240.0050.00316.40
7.4.230.0070.00016.59
7.4.220.0150.00616.51
7.4.210.0090.00616.62
7.4.200.0000.00716.58
7.4.160.0140.00416.39
7.4.150.0110.00717.40
7.4.140.0120.00817.86
7.4.130.0070.00916.46
7.4.120.0080.01216.52
7.4.110.0130.00316.44
7.4.100.0090.00616.46
7.4.90.0120.00616.41
7.4.80.0060.01219.39
7.4.70.0060.00916.45
7.4.60.0070.01016.40
7.4.50.0070.00716.69
7.4.40.0060.01216.58
7.4.30.0100.00716.41
7.4.10.0100.01014.64
7.4.00.0080.01014.93
7.3.330.0030.00313.00
7.3.320.0050.00012.94
7.3.310.0080.00016.18
7.3.300.0070.00016.06
7.3.290.0070.01116.25
7.3.280.0100.00816.24
7.3.270.0080.00817.40
7.3.260.0050.01216.34
7.3.250.0130.00816.38
7.3.240.0110.00516.36
7.3.230.0070.01116.39
7.3.210.0070.01016.23
7.3.200.0060.01019.39
7.3.190.0070.01016.18
7.3.180.0180.00316.27
7.3.170.0120.00616.24
7.3.160.0070.01016.46
7.3.130.0080.01114.65
7.3.120.0120.00614.43
7.3.110.0070.01014.57
7.3.100.0030.01314.98
7.3.90.0080.00814.77
7.3.80.0070.01014.43
7.3.70.0000.01514.83
7.3.60.0060.00914.78
7.3.50.0000.01514.42
7.3.40.0040.01114.79
7.3.30.0080.00414.77
7.3.20.0080.00616.61
7.3.10.0060.00916.32
7.3.00.0130.00016.56
7.2.330.0060.01216.46
7.2.320.0290.02916.44
7.2.310.0070.01116.44
7.2.300.0090.01216.57
7.2.290.0140.00716.37
7.2.260.0060.01215.15
7.2.250.0070.01014.70
7.2.240.0080.00514.70
7.2.230.0100.01014.93
7.2.220.0040.01514.93
7.2.210.0070.00315.18
7.2.200.0030.01014.84
7.2.190.0070.00715.08
7.2.180.0090.00314.82
7.2.170.0100.00714.99
7.2.160.0040.01414.75
7.2.150.0110.00716.93
7.2.140.0030.01316.89
7.2.130.0070.01016.73
7.2.120.0100.00316.55
7.2.110.0070.00416.93
7.2.100.0110.00016.97
7.2.90.0090.00616.88
7.2.80.0090.00316.80
7.2.70.0070.00316.71
7.2.60.0050.00916.97
7.2.50.0030.01017.01
7.2.40.0030.01017.04
7.2.30.0070.00716.79
7.2.20.0070.00716.70
7.2.10.0030.01016.78
7.2.00.0060.00718.11
7.1.330.0100.00315.73
7.1.320.0070.00715.58
7.1.310.0110.00415.81
7.1.300.0060.00915.84
7.1.290.0030.00615.72
7.1.280.0110.00415.84
7.1.270.0040.00415.75
7.1.260.0070.00715.34
7.1.250.0030.01315.81
7.1.240.0000.01515.89
7.1.230.0060.00915.95
7.1.220.0030.01015.86
7.1.210.0040.01115.84
7.1.200.0050.00815.82
7.1.190.0060.00315.46
7.1.180.0030.00715.79
7.1.170.0000.01215.85
7.1.160.0040.01115.95
7.1.150.0040.00815.52
7.1.140.0060.00915.55
7.1.130.0070.00715.66
7.1.120.0120.00015.95
7.1.110.0000.01515.77
7.1.100.0060.00716.79
7.1.90.0120.00615.95
7.1.80.0030.01215.82
7.1.70.0070.00616.36
7.1.60.0040.00717.83
7.1.50.0060.01316.41
7.1.40.0070.01015.96
7.1.30.0000.01515.89
7.1.20.0060.00315.89
7.1.10.0060.00915.62
7.1.00.0070.03819.04
7.0.330.0040.00815.35
7.0.320.0030.00915.21
7.0.310.0030.00715.21
7.0.300.0090.00615.53
7.0.290.0000.00815.54
7.0.280.0100.00615.45
7.0.270.0030.01015.41
7.0.260.0040.01115.24
7.0.250.0040.01515.40
7.0.240.0110.00415.57
7.0.230.0030.00715.41
7.0.220.0000.00815.40
7.0.210.0060.00815.11
7.0.200.0290.00615.04
7.0.190.0070.00715.49
7.0.180.0080.00415.50
7.0.170.0060.00315.18
7.0.160.0030.00915.48
7.0.150.0030.00915.21
7.0.140.0030.01215.52
7.0.130.0100.00615.52
7.0.120.0060.00615.20
7.0.110.0070.01015.27
7.0.100.0100.00715.17
7.0.90.0060.00315.59
7.0.80.0180.03517.56
7.0.70.0270.04918.61
7.0.60.0330.03517.60
7.0.50.0280.04017.90
7.0.40.0290.03916.96
7.0.30.0290.03416.81
7.0.20.0290.03816.82
7.0.10.0350.04016.88
7.0.00.0280.03416.95
5.6.400.0030.00714.41
5.6.390.0040.01214.65
5.6.380.0060.00314.24
5.6.370.0100.00314.32
5.6.360.0070.00714.50
5.6.350.0000.00814.55
5.6.340.0050.00314.22
5.6.330.0000.00914.26
5.6.320.0100.00614.33
5.6.310.0070.00714.55
5.6.300.0070.01014.41
5.6.290.0110.00414.53
5.6.280.0060.03817.71
5.6.270.0040.01114.39
5.6.260.0030.01014.57
5.6.250.0080.00814.26
5.6.240.0000.01114.54
5.6.230.0200.03517.60
5.6.220.0170.05317.62
5.6.210.0200.03517.40
5.6.200.0300.04217.62
5.6.190.0230.04217.66
5.6.180.0300.04017.74
5.6.170.0330.03017.62
5.6.160.0210.02917.79
5.6.150.0250.03517.65
5.6.140.0270.03317.75
5.6.130.0300.03317.67
5.6.120.0130.03817.87
5.6.110.0190.03717.70
5.6.100.0130.04217.61
5.6.90.0230.03517.73
5.6.80.0250.04017.44
5.6.70.0280.03317.54
5.6.60.0230.03117.26
5.6.50.0280.03417.35
5.6.40.0220.03517.36
5.6.30.0290.02817.46
5.6.20.0330.04217.42
5.6.10.0300.03617.48
5.6.00.0350.02217.25
5.5.380.0070.00714.50
5.5.370.0270.02717.45
5.5.360.0260.03417.46
5.5.350.0220.04717.48
5.5.340.0290.03417.44
5.5.330.0310.03617.69
5.5.320.0410.04317.86
5.5.310.0160.03817.55
5.5.300.0210.03817.71
5.5.290.0180.03717.74
5.5.280.0170.03517.48
5.5.270.0220.04017.49
5.5.260.0300.03417.66
5.5.250.0330.03617.52
5.5.240.0270.03217.22
5.5.230.0350.03217.37
5.5.220.0250.03117.31
5.5.210.0250.03417.15
5.5.200.0220.03717.15
5.5.190.0270.03517.38
5.5.180.0360.03517.23
5.5.170.0020.01314.23
5.5.160.0280.03817.33
5.5.150.0270.02517.21
5.5.140.0280.03817.21
5.5.130.0280.02517.25
5.5.120.0350.02817.17
5.5.110.0180.03417.05
5.5.100.0270.02917.15
5.5.90.0200.03417.02
5.5.80.0220.03317.02
5.5.70.0280.02617.21
5.5.60.0200.03517.27
5.5.50.0200.03517.34
5.5.40.0250.03317.22
5.5.30.0230.03517.14
5.5.20.0200.03517.13
5.5.10.0270.03216.99
5.5.00.0210.03117.24

preferences:
15.9 ms | 401 KiB | 5 Q