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(); echo ($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.0180.00016.63
8.3.50.0070.00716.43
8.3.40.0140.00018.80
8.3.30.0100.01018.79
8.3.20.0040.01420.19
8.3.10.0040.00421.85
8.3.00.0090.00921.02
8.2.180.0090.00618.41
8.2.170.0070.00722.96
8.2.160.0130.00721.92
8.2.150.0080.00024.18
8.2.140.0120.00624.66
8.2.130.0000.00722.13
8.2.120.0040.00426.35
8.2.110.0090.01220.42
8.2.100.0040.00717.84
8.2.90.0030.00619.21
8.2.80.0000.00918.05
8.2.70.0000.00917.63
8.2.60.0080.00018.04
8.2.50.0000.00918.10
8.2.40.0000.00720.42
8.2.30.0060.00321.04
8.2.20.0050.00518.23
8.2.10.0040.00418.13
8.2.00.0060.00317.94
8.1.280.0130.01025.92
8.1.270.0030.00624.02
8.1.260.0070.01126.35
8.1.250.0070.00028.09
8.1.240.0030.00622.08
8.1.230.0070.00419.19
8.1.220.0050.00317.75
8.1.210.0000.00818.77
8.1.200.0000.01017.23
8.1.190.0040.00416.88
8.1.180.0040.00418.10
8.1.170.0000.00918.41
8.1.160.0060.00318.97
8.1.150.0040.00418.73
8.1.140.0040.00419.39
8.1.130.0000.00718.75
8.1.120.0000.00817.43
8.1.110.0000.00817.40
8.1.100.0000.00717.30
8.1.90.0060.00317.30
8.1.80.0080.00017.38
8.1.70.0000.00717.28
8.1.60.0080.00017.63
8.1.50.0030.00617.41
8.1.40.0000.00817.42
8.1.30.0070.00017.62
8.1.20.0030.00617.68
8.1.10.0000.00817.59
8.1.00.0030.00517.39
8.0.300.0070.00019.72
8.0.290.0070.00016.75
8.0.280.0070.00018.39
8.0.270.0030.00317.27
8.0.260.0030.00316.78
8.0.250.0000.00716.92
8.0.240.0000.00816.73
8.0.230.0040.00416.91
8.0.220.0070.00016.87
8.0.210.0000.00716.84
8.0.200.0040.00416.91
8.0.190.0090.00016.93
8.0.180.0050.00316.86
8.0.170.0070.00016.81
8.0.160.0000.00716.82
8.0.150.0000.00716.70
8.0.140.0070.00016.69
8.0.130.0060.00313.24
8.0.120.0040.00416.81
8.0.110.0040.00416.75
8.0.100.0040.00416.80
8.0.90.0000.00816.71
8.0.80.0120.00616.80
8.0.70.0030.00516.74
8.0.60.0000.00716.83
8.0.50.0040.00416.77
8.0.30.0120.00617.23
8.0.20.0080.01317.40
8.0.10.0040.00417.06
8.0.00.0070.01116.70
7.4.330.0000.00515.55
7.4.320.0000.00716.45
7.4.300.0030.00316.59
7.4.290.0040.00416.49
7.4.280.0030.00516.50
7.4.270.0000.00616.66
7.4.260.0000.00716.48
7.4.250.0000.00716.38
7.4.240.0070.00016.37
7.4.230.0030.00316.68
7.4.220.0110.00916.57
7.4.210.0140.00316.62
7.4.200.0030.00316.50
7.4.160.0060.01016.38
7.4.150.0060.01217.40
7.4.140.0120.00517.86
7.4.130.0150.00916.46
7.4.120.0110.00916.56
7.4.110.0130.00716.50
7.4.100.0100.01016.64
7.4.90.0130.00416.50
7.4.80.0100.00619.39
7.4.70.0160.00016.54
7.4.60.0100.00716.67
7.4.50.0030.00716.40
7.4.40.0220.00016.51
7.4.30.0140.00816.61
7.4.10.0100.00715.16
7.4.00.0070.01114.93
7.3.330.0030.00313.14
7.3.320.0000.00513.17
7.3.310.0040.00416.36
7.3.300.0070.00016.18
7.3.290.0040.01316.33
7.3.280.0080.00816.28
7.3.270.0090.00917.40
7.3.260.0090.01116.34
7.3.250.0120.00816.35
7.3.240.0090.00716.47
7.3.230.0080.00816.31
7.3.210.0030.01416.45
7.3.200.0090.00916.27
7.3.190.0080.00816.43
7.3.180.0060.00916.44
7.3.170.0060.00916.50
7.3.160.0080.01116.29
7.3.130.0040.01514.54
7.3.120.0090.00914.74
7.3.110.0130.00714.74
7.3.100.0130.00314.85
7.3.90.0030.01414.80
7.3.80.0000.01314.69
7.3.70.0030.00815.00
7.3.60.0000.00914.66
7.3.50.0070.00714.88
7.3.40.0090.00614.53
7.3.30.0070.00714.79
7.3.20.0000.01116.44
7.3.10.0070.00416.57
7.3.00.0080.00816.60
7.2.330.0060.01216.74
7.2.320.0090.01416.42
7.2.310.0040.01216.75
7.2.300.0090.00916.80
7.2.290.0080.01516.42
7.2.260.0100.01014.76
7.2.250.0090.01014.84
7.2.240.0000.01514.68
7.2.230.0080.00415.01
7.2.220.0100.00714.87
7.2.210.0110.00414.66
7.2.200.0040.01214.95
7.2.190.0000.01415.01
7.2.180.0030.01015.01
7.2.170.0040.01214.82
7.2.160.0060.00314.78
7.2.150.0040.00816.78
7.2.140.0080.00316.98
7.2.130.0100.00516.77
7.2.120.0050.00916.88
7.2.110.0090.00816.66
7.2.100.0060.00517.00
7.2.90.0030.01216.75
7.2.80.0080.00816.44
7.2.70.0030.01116.96
7.2.60.0040.00916.87
7.2.50.0070.00516.89
7.2.40.0060.00816.83
7.2.30.0050.00916.80
7.2.20.0050.00816.78
7.2.10.0020.01216.81
7.2.00.0080.00617.65
7.1.330.0000.01315.55
7.1.320.0110.00415.91
7.1.310.0070.00715.70
7.1.300.0070.00315.67
7.1.290.0060.00915.87
7.1.280.0080.00815.70
7.1.270.0080.00415.73
7.1.260.0100.00615.85
7.1.250.0000.00915.73
7.1.240.0060.00615.81
7.1.230.0060.00615.77
7.1.220.0040.00415.79
7.1.210.0050.00815.93
7.1.200.0030.01115.53
7.1.190.0030.01015.48
7.1.180.0030.00715.84
7.1.170.0030.01015.73
7.1.160.0060.00315.64
7.1.150.0030.00715.50
7.1.140.0070.00415.70
7.1.130.0070.00715.77
7.1.120.0120.00315.81
7.1.110.0090.00615.82
7.1.100.0070.00517.04
7.1.90.0070.01015.56
7.1.80.0030.00615.95
7.1.70.0090.00316.15
7.1.60.0490.00824.48
7.1.50.0270.00724.11
7.1.40.0290.00724.05
7.1.30.0280.01023.97
7.1.20.0480.01024.16
7.1.10.0230.00515.06
7.1.00.0210.00515.20
7.0.330.0070.00715.45
7.0.320.0000.01415.14
7.0.310.0070.00715.34
7.0.300.0000.01415.36
7.0.290.0070.00315.31
7.0.280.0030.00915.38
7.0.270.0070.00715.30
7.0.260.0110.00415.34
7.0.250.0060.00315.53
7.0.240.0040.01115.32
7.0.230.0100.00615.09
7.0.220.0050.00515.34
7.0.210.0000.01415.19
7.0.200.0190.00715.16
7.0.190.0170.01015.14
7.0.180.0200.01014.73
7.0.170.0210.00814.78
7.0.160.0230.00514.56
7.0.150.0150.01214.93
7.0.140.0170.00814.78
7.0.130.0180.00815.08
7.0.120.0200.00815.03
7.0.110.0230.00514.90
7.0.100.0190.00714.78
7.0.90.0230.00314.86
7.0.80.0150.00914.90
7.0.70.0160.00814.91
7.0.60.0150.00814.58
7.0.50.0170.00715.06
7.0.40.0190.00613.95
7.0.30.0150.00813.96
7.0.20.0150.00814.09
7.0.10.0130.01113.80
7.0.00.0170.00714.02
5.6.400.0040.00814.23
5.6.390.0100.00714.37
5.6.380.0040.01214.13
5.6.370.0070.00713.75
5.6.360.0030.01014.44
5.6.350.0080.00014.27
5.6.340.0030.01014.32
5.6.330.0130.00013.91
5.6.320.0070.00314.12
5.6.310.0070.00714.01
5.6.300.0060.00914.07
5.6.290.0110.00414.20
5.6.280.0070.01014.38
5.6.270.0040.01214.11
5.6.260.0000.01214.10
5.6.250.0030.00614.21
5.6.240.0000.01414.14
5.6.230.0090.00614.17
5.6.220.0000.01114.29
5.6.210.0000.01013.95
5.6.200.0090.00614.43
5.6.190.0130.00014.20
5.6.180.0080.00314.28
5.6.170.0030.00614.27
5.6.160.0030.01214.02
5.6.150.0060.00314.13
5.6.140.0030.01014.25
5.6.130.0090.00614.21
5.6.120.0000.00913.91
5.6.110.0060.00914.34
5.6.100.0080.00613.87
5.6.90.0070.00713.92
5.6.80.0060.00314.08
5.6.70.0030.00714.18
5.6.60.0070.01113.83
5.6.50.0070.01013.89
5.6.40.0120.00614.09
5.6.30.0030.01313.92
5.6.20.0070.01113.94
5.6.10.0060.01014.03
5.6.00.0070.00714.08

preferences:
34.15 ms | 400 KiB | 5 Q