3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr0 = new ArrayObject(['a' => 'A']); $arr1 = new ArrayObject(['x' => 'X']); var_export($arr0 + $arr1);

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.20.0140.00317.88
8.4.10.0060.00319.48
8.3.150.0110.00718.73
8.3.140.0140.00418.60
8.3.130.0040.00418.25
8.3.120.0080.00020.78
8.3.110.0180.00016.52
8.3.100.0050.00324.06
8.3.90.0070.01126.77
8.3.80.0090.00019.36
8.3.70.0110.01116.36
8.3.60.0070.00716.50
8.3.50.0040.01118.36
8.3.40.0040.01120.22
8.3.30.0030.01021.57
8.3.20.0050.00324.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.270.0120.00617.04
8.2.260.0040.00418.53
8.2.250.0080.00018.57
8.2.240.0090.00018.84
8.2.230.0040.00420.94
8.2.220.0000.00837.54
8.2.210.0080.00026.77
8.2.200.0070.00318.88
8.2.190.0150.00018.54
8.2.180.0140.00016.60
8.2.170.0080.00818.77
8.2.160.0070.00722.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.07
8.2.110.0170.00320.36
8.2.100.0140.00718.82
8.2.90.0180.00318.82
8.2.80.0090.01218.71
8.2.70.0080.00818.77
8.2.60.0090.00918.53
8.2.50.0070.01418.71
8.2.40.0060.00618.70
8.2.30.0070.00318.84
8.2.20.0030.00618.64
8.2.10.0070.00318.95
8.2.00.0060.00319.02
8.1.310.0050.00316.82
8.1.300.0060.00316.46
8.1.290.0080.00430.84
8.1.280.0110.00325.92
8.1.270.0070.00023.99
8.1.260.0040.01126.35
8.1.250.0000.00828.09
8.1.240.0100.00718.47
8.1.230.0030.00718.57
8.1.220.0030.00718.54
8.1.210.0100.00019.62
8.1.200.0070.00318.42
8.1.190.0060.00318.25
8.1.180.0060.00318.47
8.1.170.0070.00318.34
8.1.160.0080.00318.79
8.1.150.0100.00020.38
8.1.140.0070.00318.49
8.1.130.0040.00718.48
8.1.120.0100.00018.55
8.1.110.0100.00018.42
8.1.100.0100.00018.39
8.1.90.0100.00018.40
8.1.80.0030.00718.38
8.1.70.0130.00018.61
8.1.60.0070.00418.66
8.1.50.0000.01018.56
8.1.40.0050.00518.84
8.1.30.0070.00318.84
8.1.20.0100.00018.59
8.1.10.0030.00618.53
8.1.00.0110.00018.79
8.0.300.0030.00617.95
8.0.290.0090.00017.79
8.0.280.0060.00318.01
8.0.270.0090.00017.90
8.0.260.0060.00317.57
8.0.250.0100.00017.89
8.0.240.0000.00917.58
8.0.230.0060.00318.19
8.0.220.0050.00517.82
8.0.210.0100.00017.79
8.0.200.0070.00317.82
8.0.190.0100.00017.88
8.0.180.0070.00317.92
8.0.170.0030.00617.94
8.0.160.0060.00317.75
8.0.150.0090.00017.89
8.0.140.0030.00617.83
8.0.130.0070.00417.89
8.0.120.0110.00017.67
8.0.110.0090.00017.98
8.0.100.0070.00317.71
8.0.90.0060.00317.70
8.0.80.0070.00417.70
8.0.70.0070.00317.68
8.0.60.0080.00417.88
8.0.50.0100.00317.93
8.0.30.0090.00317.79
8.0.20.0090.00318.02
8.0.10.0070.00317.80

preferences:
49.46 ms | 403 KiB | 5 Q