3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o = new stdClass; $o->text = "test"; $o2 = new stdClass; $o2->text = "test2"; $o3 = new stdClass; $o3->text = "test3"; var_dump([$o,$o2,$o3]); print_r([$o,$o2,$o3]);

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.40.0070.00718.70
8.3.30.0060.00918.59
8.3.20.0090.00020.21
8.3.10.0000.00823.52
8.3.00.0080.00019.79
8.2.170.0150.00422.96
8.2.160.0120.00419.04
8.2.150.0080.00024.18
8.2.140.0060.00624.66
8.2.130.0040.00419.31
8.2.120.0040.00426.35
8.2.110.0000.00922.11
8.2.100.0070.00717.91
8.2.90.0040.00419.23
8.2.80.0040.00417.97
8.2.70.0080.00017.34
8.2.60.0040.00418.04
8.2.50.0050.00318.10
8.2.40.0000.00720.65
8.2.30.0040.00419.31
8.2.20.0040.00417.98
8.2.10.0040.00418.06
8.2.00.0040.00418.09
8.1.270.0000.00822.11
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00320.93
8.1.230.0040.00719.00
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0060.00317.25
8.1.190.0030.00617.22
8.1.180.0080.00018.10
8.1.170.0080.00018.46
8.1.160.0000.00718.94
8.1.150.0040.00418.93
8.1.140.0030.00619.57
8.1.130.0000.00718.88
8.1.120.0040.00417.35
8.1.110.0000.00817.30
8.1.100.0100.00017.44
8.1.90.0030.00317.37
8.1.80.0040.00417.45
8.1.70.0070.00017.41
8.1.60.0050.00317.59
8.1.50.0080.00017.55
8.1.40.0070.00317.38
8.1.30.0000.00817.51
8.1.20.0000.00817.60
8.1.10.0020.00517.59
8.1.00.0000.00817.48
8.0.300.0040.00420.13
8.0.290.0090.00016.75
8.0.280.0030.00318.43
8.0.270.0030.00317.23
8.0.260.0030.00316.81
8.0.250.0060.00016.98
8.0.240.0030.00316.86
8.0.230.0040.00416.99
8.0.220.0030.00316.89
8.0.210.0040.00416.87
8.0.200.0030.00316.91
8.0.190.0040.00416.94
8.0.180.0040.00416.80
8.0.170.0070.00016.94
8.0.160.0000.00716.91
8.0.150.0000.00716.89
8.0.140.0040.00416.92
8.0.130.0050.00213.35
8.0.120.0050.00216.73
8.0.110.0070.00016.90
8.0.100.0070.00016.95
8.0.90.0040.00416.78
8.0.80.0070.00716.76
8.0.70.0040.00416.75
8.0.60.0030.00516.88
8.0.50.0070.00016.92
8.0.30.0110.00717.19
8.0.20.0120.00817.40
8.0.10.0070.00016.90
8.0.00.0130.00316.79
7.4.330.0050.00015.55
7.4.320.0030.00316.66
7.4.300.0060.00016.50
7.4.290.0030.00316.61
7.4.280.0040.00416.59
7.4.270.0070.00016.45
7.4.260.0050.00316.50
7.4.250.0000.00716.55
7.4.240.0070.00016.64
7.4.230.0000.00716.61
7.4.220.0140.00316.54
7.4.210.0150.00016.46
7.4.200.0070.00016.47
7.4.160.0070.01316.55
7.4.150.0120.03217.40
7.4.140.0110.00717.86
7.4.130.0130.01216.51
7.4.120.0080.01116.40
7.4.110.0090.00816.50
7.4.100.0030.01516.38
7.4.90.0100.00716.40
7.4.80.0110.00819.39
7.4.70.0130.00716.50
7.4.60.0090.01316.57
7.4.50.0060.00916.66
7.4.40.0100.00716.39
7.4.30.0060.01016.43
7.4.00.0030.01214.90
7.3.330.0000.00513.06
7.3.320.0050.00013.13
7.3.310.0030.00316.40
7.3.300.0030.00316.26
7.3.290.0060.00816.29
7.3.280.0070.01016.24
7.3.270.0140.00417.40
7.3.260.0090.01016.33
7.3.250.0120.00516.34
7.3.240.0100.00716.29
7.3.230.0130.00716.43
7.3.210.0140.00316.29
7.3.200.0060.01516.54
7.3.190.0130.01016.52
7.3.180.0160.00016.42
7.3.170.0070.01016.40
7.3.160.0130.01116.28
7.2.330.0070.01216.64
7.2.320.0120.00616.32
7.2.310.0100.00816.66
7.2.300.0090.01316.40
7.2.290.0170.00016.58
7.2.60.0060.00916.73
7.2.00.0070.00719.43
7.1.200.0030.00615.70
7.1.100.0040.00717.86
7.1.70.0110.01017.25
7.1.60.0260.01035.14
7.1.50.0330.00734.66
7.1.40.0210.02134.28
7.1.30.0280.01534.42
7.1.20.0310.01334.51
7.1.10.0070.01216.58
7.1.00.0100.01016.49
7.0.200.0080.00816.79
7.0.190.0120.00916.57
7.0.180.0070.01316.16
7.0.170.0110.01616.13
7.0.160.0130.00316.01
7.0.150.0170.00316.16
7.0.140.0050.01516.43
7.0.130.0130.00316.30
7.0.120.0120.00616.54
7.0.110.0090.00616.20
7.0.100.0100.01016.31
7.0.90.0110.01116.31
7.0.80.0090.01316.23
7.0.70.0050.02116.28
7.0.60.0090.01216.11
7.0.50.0030.01516.25
7.0.40.0030.01716.51
7.0.30.0150.00316.44
7.0.20.0170.00816.45
7.0.10.0030.01516.48
7.0.00.0100.01216.43

preferences:
33.82 ms | 400 KiB | 5 Q