3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = new SplFixedArray(2); $subject[0] = 'red'; $subject[1] = 'blue'; var_dump(get_object_vars($subject));

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.5.00.0130.01119.84
8.4.150.0020.00014.05
8.4.140.0110.00917.32
8.4.130.0120.00817.50
8.4.120.0110.00922.38
8.4.110.0120.01018.95
8.4.100.0120.00917.53
8.4.90.0110.01017.52
8.4.80.0120.00717.66
8.4.70.0110.00917.87
8.4.60.0130.00818.78
8.4.50.0130.00818.47
8.4.40.0160.00317.36
8.4.30.0090.00918.75
8.4.20.0000.00818.80
8.4.10.0040.00419.25
8.3.280.0110.00818.21
8.3.270.0040.00616.42
8.3.260.0100.00816.60
8.3.250.0110.00718.67
8.3.240.0120.00716.39
8.3.230.0120.00716.39
8.3.220.0090.00716.59
8.3.210.0060.00816.50
8.3.200.0040.00516.39
8.3.190.0110.00818.67
8.3.180.0110.00818.04
8.3.170.0050.00518.54
8.3.160.0110.00716.51
8.3.150.0040.01117.33
8.3.140.0070.01116.73
8.3.130.0070.01018.59
8.3.120.0110.00020.68
8.3.110.0040.00416.78
8.3.100.0030.00624.06
8.3.90.0100.00026.77
8.3.80.0060.00317.97
8.3.70.0070.01418.18
8.3.60.0110.00716.50
8.3.50.0110.00416.42
8.3.40.0070.00720.34
8.3.30.0130.00720.14
8.3.20.0080.00024.18
8.3.10.0150.00324.66
8.3.00.0120.00624.66
8.2.290.0040.00418.68
8.2.280.0100.00920.45
8.2.270.0120.00618.81
8.2.260.0040.00420.09
8.2.250.0070.00718.20
8.2.240.0060.01316.94
8.2.230.0030.00620.94
8.2.220.0030.00637.54
8.2.210.0080.00026.77
8.2.200.0060.00318.29
8.2.190.0160.00016.63
8.2.180.0140.00416.38
8.2.170.0120.00318.89
8.2.160.0100.01022.96
8.2.150.0050.00325.66
8.2.140.0110.00724.66
8.2.130.0140.00324.66
8.2.120.0120.00624.66
8.2.110.0060.00924.66
8.2.100.0100.01024.66
8.2.90.0070.01324.66
8.2.80.0130.00724.66
8.2.70.0070.01324.66
8.2.60.0100.01024.66
8.2.50.0060.01024.66
8.2.40.0090.00624.66
8.2.30.0090.00924.66
8.2.20.0130.00324.66
8.2.10.0040.01124.66
8.2.00.0180.00424.66
8.1.330.0110.00816.13
8.1.320.0120.00616.28
8.1.310.0030.00616.66
8.1.300.0000.00920.05
8.1.290.0070.00430.84
8.1.280.0110.00425.92
8.1.270.0060.01324.66
8.1.260.0100.01024.66
8.1.250.0090.00624.66
8.1.240.0100.00624.66
8.1.230.0100.01024.66
8.1.220.0060.01024.66
8.1.210.0100.01024.66
8.1.200.0130.00724.66
8.1.190.0030.01624.66
8.1.180.0150.00424.66
8.1.170.0120.00324.66
8.1.160.0030.01224.66
8.1.150.0060.01024.66
8.1.140.0030.01224.66
8.1.130.0110.00424.66
8.1.120.0150.00024.66
8.1.110.0090.00624.66
8.1.100.0100.00724.66
8.1.90.0090.00624.66
8.1.80.0050.00324.66
8.1.70.0050.00324.66
8.1.60.0030.00524.66
8.1.50.0090.00024.66
8.1.40.0030.00524.66
8.1.30.0030.00624.66
8.1.20.0050.00324.66
8.1.10.0030.00624.66
8.1.00.0040.00424.66

preferences:
31.21 ms | 403 KiB | 5 Q