3v4l.org

run code in 300+ PHP versions simultaneously
<?php class testing { public function fetch_array() { return array('version' => '1.2.3'); } } $result = new testing(); $k =$result->fetch_array()['version'];

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.0100.01016.38
8.3.50.0140.00716.39
8.3.40.0120.00318.54
8.3.30.0040.01118.71
8.3.20.0170.00020.29
8.3.10.0100.00721.86
8.3.00.0040.00420.59
8.2.180.0090.00918.41
8.2.170.0040.01122.96
8.2.160.0040.01122.17
8.2.150.0070.00024.18
8.2.140.0060.00324.66
8.2.130.0080.00022.11
8.2.120.0040.00426.35
8.2.110.0100.00020.51
8.2.100.0110.00017.78
8.2.90.0080.00019.04
8.2.80.0000.00817.97
8.2.70.0090.00017.63
8.2.60.0040.00417.93
8.2.50.0080.00018.10
8.2.40.0040.00422.20
8.2.30.0050.00319.32
8.2.20.0040.00418.02
8.2.10.0000.00718.06
8.2.00.0020.00517.98
8.1.280.0100.01025.92
8.1.270.0030.00623.75
8.1.260.0000.00826.35
8.1.250.0150.00328.09
8.1.240.0030.00622.14
8.1.230.0000.01117.95
8.1.220.0050.00517.74
8.1.210.0000.00918.77
8.1.200.0060.00317.10
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0080.00018.65
8.1.160.0000.00718.93
8.1.150.0040.00420.61
8.1.140.0030.00519.50
8.1.130.0030.00318.75
8.1.120.0050.00317.37
8.1.110.0040.00417.41
8.1.100.0020.00517.37
8.1.90.0050.00217.38
8.1.80.0070.00017.29
8.1.70.0030.00517.35
8.1.60.0060.00317.61
8.1.50.0050.00317.40
8.1.40.0050.00317.45
8.1.30.0040.00417.64
8.1.20.0000.00917.58
8.1.10.0060.00317.54
8.1.00.0080.00017.43
8.0.300.0050.00319.89
8.0.290.0000.00716.63
8.0.280.0030.00318.39
8.0.270.0000.00817.20
8.0.260.0050.00316.81
8.0.250.0000.00716.90
8.0.240.0040.00416.68
8.0.230.0040.00416.88
8.0.220.0070.00016.89
8.0.210.0070.00016.86
8.0.200.0040.00416.94
8.0.190.0090.00016.91
8.0.180.0070.00016.87
8.0.170.0070.00016.85
8.0.160.0000.00816.89
8.0.150.0000.00716.72
8.0.140.0040.00416.69
8.0.130.0080.00013.19
8.0.120.0060.00316.75
8.0.110.0040.00416.77
8.0.100.0080.00016.81
8.0.90.0030.00516.62
8.0.80.0090.00616.71
8.0.70.0040.00316.81
8.0.60.0070.00016.63
8.0.50.0020.00516.82
8.0.30.0120.00916.99
8.0.20.0100.00817.40
8.0.10.0080.00016.95
8.0.00.0080.01116.72
7.4.330.0050.00015.55
7.4.320.0030.00316.42
7.4.300.0030.00316.52
7.4.290.0000.00716.50
7.4.280.0040.00416.50
7.4.270.0000.00716.52
7.4.260.0000.00716.43
7.4.250.0040.00416.57
7.4.240.0000.00716.46
7.4.230.0030.00316.55
7.4.220.0030.01616.60
7.4.210.0100.00616.49
7.4.200.0000.00716.59
7.4.160.0100.00616.45
7.4.150.0030.01517.40
7.4.140.0050.01317.86
7.4.130.0190.00316.55
7.4.120.0100.01116.43
7.4.110.0070.01116.65
7.4.100.0120.01216.40
7.4.90.0100.00716.26
7.4.80.0160.00719.39
7.4.70.0170.00016.36
7.4.60.0110.00716.61
7.4.50.0030.01016.62
7.4.40.0130.00316.53
7.4.30.0090.01216.47
7.4.00.0120.00314.93
7.3.330.0000.00613.38
7.3.320.0020.00213.18
7.3.310.0030.00316.36
7.3.300.0000.00716.29
7.3.290.0100.00716.35
7.3.280.0110.00616.32
7.3.270.0070.01117.40
7.3.260.0130.00616.44
7.3.250.0020.01716.43
7.3.240.0100.00816.50
7.3.230.0070.01016.28
7.3.210.0070.01716.32
7.3.200.0090.00616.44
7.3.190.0080.00816.25
7.3.180.0060.00916.29
7.3.170.0110.00516.19
7.3.160.0110.00716.26
7.3.10.0120.00316.54
7.3.00.0060.00316.35
7.2.330.0070.01016.31
7.2.320.0060.01516.53
7.2.310.0130.00516.53
7.2.300.0070.01016.69
7.2.290.0130.01016.55
7.2.130.0030.01016.84
7.2.120.0060.00916.96
7.2.110.0090.00316.79
7.2.100.0100.00716.75
7.2.90.0110.00417.00
7.2.80.0030.00716.81
7.2.70.0030.01016.59
7.2.60.0080.00616.89
7.2.50.0070.00716.99
7.2.40.0000.01316.87
7.2.30.0070.00716.89
7.2.20.0040.00716.71
7.2.10.0100.00716.87
7.2.00.0070.00817.85
7.1.250.0070.01115.75
7.1.200.0040.01115.48
7.1.100.0000.01217.91
7.1.70.0100.00716.81
7.1.60.0370.02732.87
7.1.50.0370.01332.85
7.1.40.0430.01332.46
7.1.30.0500.01732.52
7.1.20.0470.00732.81
7.1.10.0230.01314.61
7.1.00.0270.01014.76
7.0.200.0370.00714.86
7.0.190.0370.00014.68
7.0.180.0330.00714.25
7.0.170.0330.00714.17
7.0.160.0230.01314.37
7.0.150.0270.00714.46
7.0.140.0230.01314.42
7.0.130.0270.01014.54
7.0.120.0270.00714.58
7.0.110.0300.00314.27
7.0.100.0400.00314.30
7.0.90.0500.01014.10
7.0.80.0300.00714.44
7.0.70.0230.01314.25
7.0.60.0230.01314.25
7.0.50.0230.01314.41
7.0.40.0270.00714.48
7.0.30.0270.01014.52
7.0.20.0270.01014.41
7.0.10.0270.00714.46
7.0.00.0300.00714.62

preferences:
33.77 ms | 400 KiB | 5 Q