3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new stdClass; $obj->foo = 'something'; $arr = ['foo']; echo $obj->$arr[0];

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.4.10.0040.00817.72
8.3.140.0060.00317.41
8.3.130.0080.00018.67
8.3.120.0090.00018.95
8.3.110.0030.00620.94
8.3.100.0040.00416.60
8.3.90.0120.00826.77
8.3.80.0030.00616.63
8.3.70.0140.01016.88
8.3.60.0170.00316.88
8.3.50.0100.00916.67
8.3.40.0070.01018.71
8.3.30.0070.00718.79
8.3.20.0070.00020.21
8.3.10.0000.00821.92
8.3.00.0070.00023.66
8.2.260.0130.00616.86
8.2.250.0070.00716.74
8.2.240.0090.00917.33
8.2.230.0000.00822.58
8.2.220.0080.00024.06
8.2.210.0050.00326.77
8.2.200.0040.00418.29
8.2.190.0090.00916.88
8.2.180.0070.00725.92
8.2.170.0100.00318.97
8.2.160.0150.00022.96
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00720.52
8.2.120.0040.00426.35
8.2.110.0050.00519.30
8.2.100.0040.00818.03
8.2.90.0000.00819.35
8.2.80.0090.00017.97
8.2.70.0040.00417.75
8.2.60.0000.00817.63
8.2.50.0080.00017.63
8.2.40.0000.00818.15
8.2.30.0040.00419.30
8.2.20.0040.00418.10
8.2.10.0040.00418.12
8.2.00.0030.00518.11
8.1.310.0060.00318.33
8.1.300.0040.00417.73
8.1.290.0080.00430.84
8.1.280.0120.00925.92
8.1.270.0030.00620.19
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00422.71
8.1.230.0040.00817.77
8.1.220.0040.00417.77
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0080.00017.35
8.1.180.0030.00518.10
8.1.170.0000.00717.62
8.1.160.0000.00718.88
8.1.150.0000.00820.14
8.1.140.0080.00017.70
8.1.130.0060.00018.93
8.1.120.0030.00317.29
8.1.110.0050.00317.33
8.1.100.0030.00417.44
8.1.90.0080.00017.30
8.1.80.0000.00717.50
8.1.70.0000.00817.52
8.1.60.0030.00617.55
8.1.50.0050.00317.48
8.1.40.0070.00017.41
8.1.30.0050.00317.69
8.1.20.0000.00817.70
8.1.10.0040.00417.50
8.1.00.0000.00917.41
8.0.300.0000.00718.84
8.0.290.0040.00416.75
8.0.280.0070.00018.31
8.0.270.0000.00716.88
8.0.260.0000.00718.50
8.0.250.0060.00317.01
8.0.240.0070.00016.95
8.0.230.0000.00716.98
8.0.220.0000.00716.99
8.0.210.0030.00316.86
8.0.200.0060.00016.93
8.0.190.0040.00417.01
8.0.180.0030.00516.98
8.0.170.0070.00017.02
8.0.160.0040.00416.96
8.0.150.0000.00716.88
8.0.140.0000.00716.95
8.0.130.0000.00513.34
8.0.120.0000.00816.82
8.0.110.0050.00416.94
8.0.100.0070.00316.93
8.0.90.0020.00616.92
8.0.80.0070.00416.91
8.0.70.0040.00416.87
8.0.60.0040.00416.96
8.0.50.0060.00216.86
8.0.30.0120.00817.06
8.0.20.0080.01217.26
8.0.10.0130.00917.05
8.0.00.0120.00616.90
7.4.330.0000.00615.55
7.4.320.0050.00216.45
7.4.300.0060.00016.47
7.4.290.0080.00016.44
7.4.280.0000.00816.41
7.4.270.0070.00016.45
7.4.260.0040.00416.39
7.4.250.0000.00716.53
7.4.240.0010.00616.56
7.4.230.0020.00516.50
7.4.220.0050.00916.44
7.4.210.0060.00716.38
7.4.200.0040.00416.37
7.4.190.0040.00416.51
7.4.180.0050.00516.66
7.4.160.0090.00816.39
7.4.150.0120.00616.78
7.4.140.0110.00817.34
7.4.130.0100.00816.42
7.4.120.0100.00816.49
7.4.110.0100.00916.44
7.4.100.0130.00816.44
7.4.90.0110.00916.40
7.4.80.0110.00816.84
7.4.70.0120.00716.44
7.4.60.0110.00816.36
7.4.50.0110.00716.32
7.4.40.0090.00916.32
7.4.30.0100.00716.43
7.4.20.0100.00716.50
7.4.10.0120.00616.45
7.4.00.0080.00816.20
7.3.330.0060.00013.16
7.3.320.0020.00213.16
7.3.310.0000.00716.39
7.3.300.0060.00216.27
7.3.290.0050.00716.34
7.3.280.0100.00716.30
7.3.270.0100.00616.63
7.3.260.0100.00816.38
7.3.250.0120.00716.41
7.3.240.0100.00816.39
7.3.230.0080.01016.48
7.3.220.0110.00916.23
7.3.210.0090.01016.28
7.3.200.0110.00816.27
7.3.190.0110.00916.34
7.3.180.0100.00916.35
7.3.170.0100.00716.22
7.3.160.0090.01016.32
7.3.150.0090.00816.33
7.3.140.0100.00816.32
7.3.130.0080.01016.31
7.3.120.0100.00816.16
7.3.110.0100.00715.87
7.3.100.0090.00915.80
7.3.90.0090.00815.62
7.3.80.0100.00915.72
7.3.70.0090.00915.59
7.3.60.0110.00715.52
7.3.50.0090.00915.55
7.3.40.0090.00915.55
7.3.30.0090.00815.48
7.3.20.0130.00816.07
7.3.10.0100.00916.16
7.3.00.0250.00815.94
7.2.340.0110.01216.41
7.2.330.0110.00816.41
7.2.320.0120.00916.48
7.2.310.0120.00916.56
7.2.300.0110.00816.45
7.2.290.0110.01016.48
7.2.280.0100.01016.51
7.2.270.0090.01116.46
7.2.260.0100.00816.36
7.2.250.0120.00716.31
7.2.240.0080.01216.18
7.2.230.0110.00915.99
7.2.220.0100.00815.85
7.2.210.0120.00715.86
7.2.200.0110.00815.82
7.2.190.0100.00815.71
7.2.180.0100.00815.78
7.2.170.0090.01015.78
7.2.160.0100.00915.77
7.2.150.0130.00716.35
7.2.140.0100.01016.29
7.2.130.0240.00916.24
7.2.120.0230.00916.15
7.2.110.0250.00816.19
7.2.100.0270.00916.14
7.2.90.0220.00716.20
7.2.80.0240.00816.27
7.2.70.0260.00816.25
7.2.60.0230.00816.37
7.2.50.0240.00816.29
7.2.40.0230.00816.29
7.2.30.0190.00816.33
7.2.20.0260.00816.26
7.2.10.0220.01016.59
7.2.00.0200.01016.46
7.1.330.0120.00915.38
7.1.320.0120.00915.10
7.1.310.0110.00915.24
7.1.300.0090.00915.27
7.1.290.0120.00715.28
7.1.280.0110.00815.26
7.1.270.0120.00715.25
7.1.260.0090.00915.27
7.1.250.0260.00815.18
7.1.240.0370.01015.06
7.1.230.0300.00915.05
7.1.220.0300.00915.09
7.1.210.0320.00715.09
7.1.200.0230.00815.09
7.1.190.0200.00915.07
7.1.180.0280.00915.06
7.1.170.0270.00815.07
7.1.160.0260.00815.10
7.1.150.0180.00715.05
7.1.140.0250.00915.07
7.1.130.0250.00915.30
7.1.120.0190.01015.30
7.1.110.0260.00715.26
7.1.100.0300.00715.26
7.1.90.0220.00915.28
7.1.80.0270.00915.28
7.1.70.0200.00915.13
7.1.60.0260.00717.38
7.1.50.0200.01017.38
7.1.40.0200.00917.32
7.1.30.0210.00917.32
7.1.20.0310.00817.33
7.1.10.0160.01015.05
7.1.00.0260.00715.08
7.0.330.0280.00814.68
7.0.320.0320.00814.63
7.0.310.0320.00714.67
7.0.300.0250.00814.65
7.0.290.0200.00814.71
7.0.280.0280.00714.60
7.0.270.0240.00814.92
7.0.260.0350.00714.90
7.0.250.0230.00814.87
7.0.240.0320.00914.91
7.0.230.0230.00814.88
7.0.220.0290.00914.89
7.0.210.0320.00714.75
7.0.200.0270.00814.81
7.0.190.0260.00914.81
7.0.180.0200.00814.72
7.0.170.0310.00714.75
7.0.160.0300.00814.71
7.0.150.0180.00814.73
7.0.140.0280.00814.73
7.0.130.0320.00814.77
7.0.120.0170.00914.78
7.0.110.0190.00814.76
7.0.100.0180.00814.76
7.0.90.0240.00914.69
7.0.80.0390.00714.71
7.0.70.0250.00814.70
7.0.60.0300.00714.68
7.0.50.0170.00814.77
7.0.40.0170.00914.81
7.0.30.0220.00714.85
7.0.20.0180.00814.84
7.0.10.0280.00914.89
7.0.00.0370.00914.85
5.6.400.0140.00915.09
5.6.390.0130.00915.13
5.6.380.0140.00815.00
5.6.370.0140.00915.92
5.6.360.0150.00815.82
5.6.350.0140.01115.88
5.6.340.0140.00915.85
5.6.330.0130.00915.88
5.6.320.0170.00815.92
5.6.310.0140.00915.83
5.6.300.0150.00915.88
5.6.290.0120.01115.88
5.6.280.0140.01015.82
5.6.270.0120.01115.88
5.6.260.0140.01015.94
5.6.250.0150.00915.90
5.6.240.0140.01015.83
5.6.230.0160.00715.89
5.6.220.0130.01115.86
5.6.210.0160.00815.88
5.6.200.0120.01115.96
5.6.190.0140.00915.94
5.6.180.0130.01015.89
5.6.170.0120.01115.97
5.6.160.0120.01115.82
5.6.150.0140.00815.83
5.6.140.0150.00916.00
5.6.130.0130.01016.01
5.6.120.0120.01015.87
5.6.110.0140.00815.88
5.6.100.0140.00915.92
5.6.90.0140.01015.95
5.6.80.0110.01215.82
5.6.70.0120.01015.88
5.6.60.0140.00815.88
5.6.50.0120.01015.80
5.6.40.0120.01115.82
5.6.30.0130.00915.77
5.6.20.0110.01115.85
5.6.10.0120.01215.86
5.6.00.0110.01215.86

preferences:
29.15 ms | 403 KiB | 5 Q