3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(); $object = (object) [ 'title' => '', ]; $object->{title} = 'wootcakes'; array_push($arr, $object); $object = (object) [ 'title' => '', ]; $object->{title} = 'foobars'; array_push($arr, $object); $object = (object) [ 'title' => '', ]; $object->{title} = 'lulmeightz'; array_push($arr, $object); var_dump($arr);

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.70.0120.00316.63
8.3.60.0070.00718.40
8.3.50.0090.00617.96
8.3.40.0070.01318.93
8.3.30.0070.00718.75
8.3.20.0000.00820.77
8.3.10.0050.00223.51
8.3.00.0040.00423.48
8.2.180.0140.00718.54
8.2.170.0120.00918.91
8.2.160.0070.00722.96
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0070.00019.95
8.2.110.0060.00320.32
8.2.100.0080.00417.72
8.2.90.0070.00020.53
8.2.80.0060.00318.03
8.2.70.0000.00817.91
8.2.60.0030.00618.03
8.2.50.0030.00618.10
8.2.40.0000.00719.34
8.2.30.0040.00419.24
8.2.20.0030.00518.02
8.2.10.0020.00519.20
8.2.00.0000.00719.11
8.1.280.0150.00025.92
8.1.270.0000.00724.66
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0000.01023.91
8.1.230.0080.00423.88
8.1.220.0040.00417.77
8.1.210.0030.00618.77
8.1.200.0000.00917.35
8.1.190.0040.00417.48
8.1.180.0080.00018.10
8.1.170.0060.00318.46
8.1.160.0100.00018.90
8.1.150.0040.00418.95
8.1.140.0050.00322.16
8.1.130.0000.00820.16
8.1.120.0040.00417.50
8.1.110.0040.00417.38
8.1.100.0020.00517.38
8.1.90.0070.00317.48
8.1.80.0050.00217.44
8.1.70.0040.00417.51
8.1.60.0040.00417.50
8.1.50.0040.00417.55
8.1.40.0000.00817.56
8.1.30.0050.00317.50
8.1.20.0020.00717.64
8.1.10.0000.00717.55
8.1.00.0000.00817.54
8.0.300.0000.00719.57
8.0.290.0040.00416.75
8.0.280.0030.00318.41
8.0.270.0000.00717.25
8.0.260.0030.00318.50
8.0.250.0000.00716.90
8.0.240.0000.00617.07
8.0.230.0000.00716.92
8.0.220.0030.00316.84
8.0.210.0030.00416.93
8.0.200.0040.00417.02
8.0.190.0000.00817.00
8.0.180.0040.00416.88
8.0.170.0060.00316.98
8.0.160.0080.00016.99
8.0.150.0070.00016.94
8.0.140.0040.00416.96
8.0.130.0080.00013.32
8.0.120.0060.00316.90
8.0.110.0040.00416.87
8.0.100.0000.00816.82
8.0.90.0000.00716.82
8.0.80.0060.01317.01
8.0.70.0040.00416.84
8.0.60.0000.00816.80
8.0.50.0000.00816.83
8.0.30.0090.01217.18
8.0.20.0100.01017.40
8.0.10.0070.00016.96
8.0.00.0070.01416.85
7.4.330.0030.00315.55
7.4.320.0000.00716.55
7.4.300.0040.00416.57
7.4.290.0040.00416.50
7.4.280.0020.00516.50
7.4.270.0030.00316.57
7.4.260.0030.00316.55
7.4.250.0040.00416.44
7.4.240.0000.00716.62
7.4.230.0030.00316.51
7.4.220.0000.00816.33
7.4.210.0110.00616.56
7.4.200.0050.00316.50
7.4.160.0080.00816.61
7.4.140.0150.01317.86
7.4.130.0140.00916.53
7.4.120.0160.00316.53
7.4.110.0140.00316.66
7.4.100.0150.00316.28
7.4.90.0090.00916.51
7.4.80.0060.01519.39
7.4.70.0090.00916.52
7.4.60.0090.00616.50
7.4.50.0060.01016.23
7.4.40.0090.00916.24
7.4.00.0130.00315.23
7.3.330.0030.00313.12
7.3.320.0030.00313.11
7.3.310.0000.00716.31
7.3.300.0000.00716.25
7.3.290.0030.00316.26
7.3.280.0040.01216.24
7.3.260.0110.00916.34
7.3.240.0100.00816.38
7.3.230.0080.01116.36
7.3.210.0100.00616.46
7.3.200.0060.00916.60
7.3.190.0150.00916.37
7.3.180.0060.01616.43
7.3.170.0100.00716.23
7.3.160.0090.00616.23
7.3.00.0500.00014.82
7.2.330.0090.00916.38
7.2.320.0120.01216.53
7.2.310.0130.00316.54
7.2.300.0040.01616.36
7.2.290.0120.00916.54
7.2.130.0370.00715.04
7.2.120.0530.01015.03
7.2.110.0490.00014.70
7.2.100.0370.00314.93
7.2.90.0300.01014.88
7.2.80.0360.00414.95
7.2.70.0400.00714.79
7.2.60.0340.00714.56
7.2.50.0360.00715.05
7.2.40.0430.01215.10
7.2.30.0360.00315.02
7.2.20.0350.00314.93
7.2.10.0420.00614.77
7.2.00.0350.01014.89
7.1.250.0460.00813.79
7.0.330.0280.01213.40
5.6.380.0120.00314.35

preferences:
64.99 ms | 401 KiB | 5 Q