3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [0 => 1, 1 => 2, 2 => 3]; $obj = (object) $arr; var_dump($obj);

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.140.0040.00420.80
8.3.130.0000.00818.54
8.3.120.0130.00618.84
8.3.110.0130.00320.94
8.3.100.0060.00324.06
8.3.90.0040.00426.77
8.3.80.0000.00916.63
8.3.70.0070.00716.58
8.3.60.0220.00016.63
8.3.50.0310.00516.37
8.3.40.0120.00918.69
8.3.30.0110.00418.64
8.3.20.0040.00420.16
8.3.10.0040.00422.00
8.3.00.0080.00023.65
8.2.250.0110.00416.76
8.2.240.0150.00019.01
8.2.230.0030.00722.58
8.2.220.0060.00337.54
8.2.210.0050.00326.77
8.2.200.0040.00416.63
8.2.190.0170.00316.75
8.2.180.0040.01116.50
8.2.170.0140.00422.96
8.2.160.0110.00720.58
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00020.25
8.2.120.0070.00026.35
8.2.110.0150.00022.20
8.2.100.0060.00617.59
8.2.90.0000.00817.63
8.2.80.0000.00818.75
8.2.70.0040.00417.92
8.2.60.0040.00418.03
8.2.50.0000.00818.10
8.2.40.0000.00819.42
8.2.30.0030.00619.18
8.2.20.0030.00618.04
8.2.10.0000.00717.94
8.2.00.0040.00418.05
8.1.300.0040.01518.17
8.1.290.0030.00830.84
8.1.280.0030.01525.92
8.1.270.0080.00023.79
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00619.03
8.1.230.0120.00019.61
8.1.220.0000.00717.74
8.1.210.0080.00018.77
8.1.200.0060.00317.00
8.1.190.0080.00017.23
8.1.180.0080.00018.10
8.1.170.0030.00618.33
8.1.160.0070.00018.91
8.1.150.0000.01018.72
8.1.140.0040.00417.38
8.1.130.0000.00719.00
8.1.120.0030.00517.38
8.1.110.0000.00717.37
8.1.100.0060.00317.38
8.1.90.0040.00417.36
8.1.80.0040.00417.35
8.1.70.0030.00317.45
8.1.60.0030.00517.59
8.1.50.0060.00317.48
8.1.40.0000.00717.56
8.1.30.0040.00417.50
8.1.20.0000.00717.59
8.1.10.0000.00717.38
8.1.00.0040.00717.34
8.0.300.0060.00318.77
8.0.290.0040.00416.63
8.0.280.0050.00318.30
8.0.270.0000.00717.18
8.0.260.0080.00018.33
8.0.250.0070.00316.88
8.0.240.0000.00716.76
8.0.230.0000.00716.71
8.0.220.0050.00216.81
8.0.210.0040.00416.84
8.0.200.0060.00016.85
8.0.190.0000.00916.84
8.0.180.0030.00516.90
8.0.170.0000.00716.82
8.0.160.0040.00416.81
8.0.150.0070.00016.64
8.0.140.0040.00416.83
8.0.130.0030.00313.17
8.0.120.0040.00416.73
8.0.110.0000.00816.74
8.0.100.0000.00716.68
8.0.90.0000.00816.79
8.0.80.0100.01016.73
8.0.70.0040.00416.72
8.0.60.0040.00416.90
8.0.50.0000.00716.94
8.0.30.0080.01017.11
8.0.20.0100.00817.40
8.0.10.0020.00516.82
8.0.00.0150.00616.92
7.4.330.0000.00515.55
7.4.320.0030.00316.39
7.4.300.0000.00616.50
7.4.290.0050.00316.48
7.4.280.0050.00316.40
7.4.270.0030.00316.51
7.4.260.0040.00416.56
7.4.250.0050.00316.39
7.4.240.0000.00716.58
7.4.230.0040.00416.54
7.4.220.0030.01316.45
7.4.210.0090.00616.49
7.4.200.0030.00316.38
7.4.160.0090.01016.40
7.4.150.0060.01217.40
7.4.140.0100.00817.86
7.4.130.0150.00716.49
7.4.120.0060.01116.44
7.4.110.0080.00816.32
7.4.100.0110.00816.44
7.4.90.0200.00016.48
7.4.80.0130.01019.39
7.4.70.0100.01316.34
7.4.60.0120.00316.36
7.4.50.0060.00916.33
7.4.40.0090.01216.58
7.4.30.0060.01216.49
7.4.00.0030.01214.81
7.3.330.0050.00013.17
7.3.320.0000.00513.06
7.3.310.0040.00416.14
7.3.300.0030.00316.23
7.3.290.0090.00916.24
7.3.280.0080.00816.16
7.3.270.0120.00817.40
7.3.260.0110.00716.48
7.3.250.0110.00816.27
7.3.240.0080.00916.31
7.3.230.0110.00616.26
7.3.210.0090.00916.20
7.3.200.0150.00616.26
7.3.190.0070.01016.44
7.3.180.0090.01216.31
7.3.170.0120.00316.31
7.3.160.0090.00916.39
7.3.10.0150.00916.14
7.3.00.0090.00916.28
7.2.330.0120.00616.48
7.2.320.0140.00316.54
7.2.310.0120.00816.42
7.2.300.0100.00616.55
7.2.290.0100.00616.41
7.2.130.0160.01316.56
7.2.120.0210.00616.22
7.2.110.0130.00916.27
7.2.100.0210.00416.74
7.2.90.0070.01016.21
7.2.80.0200.00316.44
7.2.70.0250.00416.55
7.2.60.0110.01116.61
7.2.50.0080.01616.21
7.2.40.0040.01416.36
7.2.30.0150.00315.86
7.2.20.0190.00816.20
7.2.10.0150.00416.20
7.2.00.0160.00916.31
7.1.250.0130.01315.25
7.1.200.0030.01115.80
7.1.110.1070.00716.33
7.1.100.1190.01016.07
7.1.90.0170.00816.15
7.1.80.0900.01016.23
7.1.70.0520.00515.32
7.1.60.0580.01333.26
7.1.50.0740.01433.00
7.1.40.2510.01632.34
7.1.30.0210.01432.56
7.1.20.0690.01432.67
7.1.10.0090.01314.71
7.1.00.4500.01014.82
7.0.250.0710.01215.72
7.0.240.0840.01115.74
7.0.230.1230.00915.78
7.0.220.1280.00915.79
7.0.210.0110.00814.78
7.0.200.0450.01014.91
7.0.190.0510.00914.63
7.0.180.2800.01014.42
7.0.170.0120.00614.40
7.0.160.0610.01214.26
7.0.150.3510.01214.38
7.0.140.5070.00814.52
7.0.130.4110.01114.67
7.0.120.4210.01114.73
7.0.110.3620.01014.48
7.0.100.3870.01014.45
7.0.90.3210.01014.45
7.0.80.3080.00914.32
7.0.70.3730.00714.44
7.0.60.2320.00814.25
7.0.50.1990.00914.49
7.0.40.2030.00714.56
7.0.30.2520.00714.71
7.0.20.2280.00814.48
7.0.10.2860.00714.61
7.0.00.2630.00814.61

preferences:
70.83 ms | 403 KiB | 5 Q