3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 'foo'; $bar = new stdClass; $bar->$foo = array(10,20,30); var_dump($bar->$foo); $bar->{$foo[0]} = 42; $bar->$foo[0] = 42; var_dump($bar);

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.0040.01116.75
8.3.50.0140.00921.13
8.3.40.0140.00318.84
8.3.30.0060.00918.70
8.3.20.0040.00420.02
8.3.10.0040.00423.48
8.3.00.0080.00023.64
8.2.180.0090.01218.41
8.2.170.0080.00822.96
8.2.160.0130.00020.39
8.2.150.0060.00324.18
8.2.140.0070.00024.66
8.2.130.0040.00419.76
8.2.120.0120.00626.35
8.2.110.0070.00321.06
8.2.100.0040.00818.05
8.2.90.0000.00819.26
8.2.80.0030.00917.97
8.2.70.0000.00917.63
8.2.60.0000.00818.03
8.2.50.0090.00018.07
8.2.40.0000.00822.35
8.2.30.0050.00219.50
8.2.20.0030.00617.80
8.2.10.0070.00018.11
8.2.00.0000.00718.19
8.1.280.0060.00925.92
8.1.270.0040.01123.96
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0030.00622.51
8.1.230.0070.00318.97
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.01017.35
8.1.190.0040.00417.23
8.1.180.0030.00618.10
8.1.170.0000.00818.52
8.1.160.0000.00720.81
8.1.150.0000.00718.93
8.1.140.0000.00819.49
8.1.130.0040.00417.70
8.1.120.0040.00417.44
8.1.110.0040.00417.51
8.1.100.0000.00717.49
8.1.90.0040.00417.39
8.1.80.0000.00817.44
8.1.70.0000.00717.51
8.1.60.0040.00417.56
8.1.50.0000.00917.47
8.1.40.0000.00817.52
8.1.30.0030.00517.67
8.1.20.0030.00617.66
8.1.10.0040.00417.52
8.1.00.0060.00317.54
8.0.300.0000.00718.77
8.0.290.0000.00716.63
8.0.280.0070.00018.52
8.0.270.0080.00017.26
8.0.260.0070.00017.20
8.0.250.0040.00416.86
8.0.240.0030.00316.82
8.0.230.0000.00816.82
8.0.220.0000.00716.80
8.0.210.0030.00316.91
8.0.200.0040.00416.95
8.0.190.0000.00817.02
8.0.180.0050.00616.89
8.0.170.0030.00516.89
8.0.160.0040.00416.93
8.0.150.0050.00516.88
8.0.140.0000.00716.86
8.0.130.0030.00313.34
8.0.120.0030.00516.84
8.0.110.0000.00716.78
8.0.100.0040.00416.76
8.0.90.0040.00416.93
8.0.80.0060.00916.86
8.0.70.0070.00016.95
8.0.60.0030.00316.88
8.0.50.0040.00416.71
8.0.30.0110.01017.09
8.0.20.0110.00817.40
8.0.10.0000.00817.08
8.0.00.0070.01316.69
7.4.330.0050.00016.71
7.4.320.0040.00416.38
7.4.300.0070.00016.39
7.4.290.0000.00716.58
7.4.280.0060.00316.34
7.4.270.0000.00616.44
7.4.260.0070.00016.44
7.4.250.0080.00016.48
7.4.240.0050.00216.40
7.4.230.0000.00716.54
7.4.220.0040.01416.64
7.4.210.0070.01016.54
7.4.200.0030.00316.41
7.4.160.0070.01016.43
7.4.150.0060.01217.40
7.4.140.0170.00217.86
7.4.130.0130.00816.58
7.4.120.0090.01116.50
7.4.110.0110.00716.42
7.4.100.0070.01016.51
7.4.90.0090.00916.58
7.4.80.0120.00619.39
7.4.70.0070.01016.73
7.4.60.0110.00716.65
7.4.50.0140.00016.34
7.4.40.0120.00416.53
7.4.30.0100.01316.53
7.4.10.0000.01814.85
7.4.00.0090.00814.84
7.3.330.0000.00813.20
7.3.320.0000.00613.25
7.3.310.0030.00616.29
7.3.300.0030.00316.35
7.3.290.0030.00316.31
7.3.280.0050.01016.30
7.3.270.0070.01017.40
7.3.260.0120.00616.57
7.3.250.0110.00916.45
7.3.240.0070.01016.39
7.3.230.0150.00316.66
7.3.210.0060.01316.21
7.3.200.0040.01419.39
7.3.190.0160.00316.46
7.3.180.0080.00816.34
7.3.170.0090.00816.28
7.3.160.0100.01016.43
7.3.130.0110.00714.86
7.3.120.0050.01314.71
7.3.110.0060.01114.74
7.3.100.0010.01014.66
7.3.90.0040.00914.85
7.3.80.0030.01014.74
7.3.70.0070.00714.86
7.3.60.0030.00914.78
7.3.50.0020.01214.85
7.3.40.0070.00914.66
7.3.30.0070.00414.47
7.3.20.0080.00716.46
7.3.10.0090.00816.38
7.3.00.0090.00816.51
7.2.330.0090.00916.28
7.2.320.0110.00716.74
7.2.310.0070.01016.34
7.2.300.0130.00416.60
7.2.290.0060.01516.55
7.2.260.0090.01015.23
7.2.250.0050.01315.08
7.2.240.0120.00514.84
7.2.230.0110.00415.14
7.2.220.0100.00615.15
7.2.210.0030.00915.04
7.2.200.0080.00714.81
7.2.190.0020.01115.04
7.2.180.0050.00814.99
7.2.170.0090.00414.92
7.2.160.0060.00815.07
7.2.150.0030.01017.13
7.2.140.0060.01016.95
7.2.130.0100.00516.70
7.2.120.0090.00916.75
7.2.110.0060.00816.74
7.2.100.0090.00616.59
7.2.90.0070.00816.64
7.2.80.0090.00916.72
7.2.70.0110.00516.70
7.2.60.0190.00716.84
7.2.50.0090.00816.86
7.2.40.0110.00516.78
7.2.30.0100.00416.76
7.2.20.0100.00816.63
7.2.10.0090.00816.81
7.2.00.0060.00917.31
7.1.330.0050.00815.64
7.1.320.0030.00815.65
7.1.310.0070.00515.82
7.1.300.0020.01215.84
7.1.290.0050.00815.72
7.1.280.0070.00715.72
7.1.270.0070.00515.81
7.1.260.0020.01115.74
7.1.250.0120.00515.65
7.1.240.0100.00415.83
7.1.230.0100.00515.75
7.1.220.0060.00915.80
7.1.210.0100.00515.67
7.1.200.0060.00915.82
7.1.190.0060.00915.79
7.1.180.0070.00815.71
7.1.170.0030.01015.49
7.1.160.0080.00615.59
7.1.150.0080.00515.80
7.1.140.0060.00715.73
7.1.130.0040.01315.81
7.1.120.0110.00515.73
7.1.110.0090.00715.81
7.1.100.0110.00416.51
7.1.90.0040.01115.74
7.1.80.0020.01115.69
7.1.70.0070.00516.19
7.1.60.0060.01017.01
7.1.50.0070.01016.05
7.1.40.0080.00515.75
7.1.30.0100.00515.86
7.1.20.0010.01115.63
7.1.10.0100.00615.79
7.1.00.0070.02818.01
7.0.330.0070.00715.34
7.0.320.0080.00815.48
7.0.310.0060.00715.27
7.0.300.0070.00815.37
7.0.290.0080.00615.20
7.0.280.0070.00815.36
7.0.270.0050.00715.47
7.0.260.0100.00215.39
7.0.250.0320.01215.40
7.0.240.0060.01015.46
7.0.230.0110.00215.37
7.0.220.0070.00715.37
7.0.210.0050.00715.45
7.0.200.0070.00615.88
7.0.190.0040.01115.24
7.0.180.0120.00215.36
7.0.170.0080.00415.51
7.0.160.0080.00415.39
7.0.150.0100.00515.35
7.0.140.0090.00415.40
7.0.130.0040.01015.20
7.0.120.0080.00315.36
7.0.110.0040.00815.36
7.0.100.0050.00615.36
7.0.90.0060.00615.26
7.0.80.0060.00815.57
7.0.70.0080.00615.45
7.0.60.0130.02817.50
7.0.50.0090.01916.29
7.0.40.0040.03315.65
7.0.30.0150.02815.80
7.0.20.0140.02615.78
7.0.10.0080.01515.57
7.0.00.0090.02315.69
5.6.400.0100.00314.30
5.6.390.0110.00614.59
5.6.380.0070.00514.46
5.6.370.0050.00914.75
5.6.360.0070.00714.58
5.6.350.0100.00514.43
5.6.340.0060.01014.27
5.6.330.0090.00314.44
5.6.320.0070.00914.41
5.6.310.0090.00314.56
5.6.300.0070.00614.65
5.6.290.0080.00514.45
5.6.280.0100.01616.63
5.6.270.0090.00514.48
5.6.260.0070.00914.47
5.6.250.0100.00314.40
5.6.240.0060.00814.19
5.6.230.0100.00414.45
5.6.220.0070.00714.46
5.6.210.0090.02016.47
5.6.200.0130.02715.70
5.6.190.0070.03516.42
5.6.180.0180.01716.41
5.6.170.0160.01716.33
5.6.160.0120.01516.27
5.6.150.0070.02915.65
5.6.140.0100.02815.66
5.6.130.0110.01515.75
5.6.120.0090.02816.51
5.6.110.0030.02116.63
5.6.100.0060.02816.63
5.6.90.0060.01916.67
5.6.80.0060.02816.34
5.6.70.0050.00814.42
5.6.60.0020.01214.31
5.6.50.0040.00614.08
5.6.40.0090.00514.03
5.6.30.0090.00714.29
5.6.20.0110.00314.29
5.6.10.0060.01014.31
5.6.00.0080.00614.26
5.5.380.0070.00712.72
5.5.370.0050.00612.68
5.5.360.0090.00412.65
5.5.350.0140.01115.37
5.5.340.0070.03114.42
5.5.330.0060.03415.25
5.5.320.0250.02815.42
5.5.310.0110.01515.28
5.5.300.0070.03014.53
5.5.290.0070.02814.61
5.5.280.0050.01815.40
5.5.270.0100.02915.49
5.5.260.0130.02415.51
5.5.250.0080.02615.33
5.5.240.0090.02815.20
5.5.230.0060.00312.65
5.5.220.0030.01012.47
5.5.210.0060.00612.73
5.5.200.0060.00812.71
5.5.190.0060.00612.72
5.5.180.0070.00312.53
5.5.170.0000.01014.32
5.5.160.0090.00512.78
5.5.150.0060.00412.74
5.5.140.0060.00312.79
5.5.130.0080.00312.69
5.5.120.0050.00612.74
5.5.110.0070.00512.74
5.5.100.0050.00712.39
5.5.90.0000.01412.48
5.5.80.0060.01012.36
5.5.70.0080.00512.67
5.5.60.0030.00812.63
5.5.50.0020.00812.52
5.5.40.0050.00612.51
5.5.30.0100.00312.58
5.5.20.0050.00712.70
5.5.10.0060.00512.52
5.5.00.0080.00412.57

preferences:
57 ms | 401 KiB | 5 Q