3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public $arr = []; } $t = new Test(); $t->arr['b'] = 'HELLO'; $t->arr2['b'] = "HELLO2"; var_dump($t);

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.60.0040.01218.30
8.3.50.0100.01017.95
8.3.40.0130.01018.83
8.3.30.0070.01118.79
8.3.20.0020.00521.69
8.3.10.0000.00823.64
8.3.00.0030.00623.52
8.2.180.0080.00818.29
8.2.170.0090.00622.96
8.2.160.0140.00720.44
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0050.00317.97
8.2.120.0080.00026.35
8.2.110.0030.00622.02
8.2.100.0070.00417.76
8.2.90.0050.00317.97
8.2.80.0060.00317.97
8.2.70.0040.00417.92
8.2.60.0040.00418.22
8.2.50.0030.00518.10
8.2.40.0050.00319.34
8.2.30.0000.00719.24
8.2.20.0050.00218.11
8.2.10.0000.00819.29
8.2.00.0070.00019.33
8.1.280.0100.00625.92
8.1.270.0030.00623.99
8.1.260.0000.00926.35
8.1.250.0070.00028.09
8.1.240.0060.00617.23
8.1.230.0110.00020.90
8.1.220.0040.00417.74
8.1.210.0000.00818.84
8.1.200.0000.00917.38
8.1.190.0080.00017.35
8.1.180.0030.00618.10
8.1.170.0030.00518.54
8.1.160.0030.00618.74
8.1.150.0050.00318.82
8.1.140.0070.00022.07
8.1.130.0000.00719.95
8.1.120.0000.00717.44
8.1.110.0030.00717.35
8.1.100.0040.00417.34
8.1.90.0040.00417.29
8.1.80.0020.00517.31
8.1.70.0000.00717.33
8.1.60.0000.00817.38
8.1.50.0050.00217.40
8.1.40.0070.00017.35
8.1.30.0050.00317.53
8.1.20.0030.00517.61
8.1.10.0090.00317.60
8.1.00.0000.00817.41
8.0.300.0000.00819.61
8.0.290.0050.00316.63
8.0.280.0030.00318.25
8.0.270.0050.00316.74
8.0.260.0000.00918.38
8.0.250.0030.00316.92
8.0.240.0040.00416.79
8.0.230.0000.00716.76
8.0.220.0050.00316.79
8.0.210.0090.00016.85
8.0.200.0030.00516.92
8.0.190.0040.00416.86
8.0.180.0000.00816.74
8.0.170.0030.00616.80
8.0.160.0000.00816.81
8.0.150.0050.00216.81
8.0.140.0040.00416.84
8.0.130.0000.00613.26
8.0.120.0000.00716.70
8.0.110.0030.00616.83
8.0.100.0040.00416.81
8.0.90.0000.00716.77
8.0.80.0100.00616.76
8.0.70.0040.00416.73
8.0.60.0000.00716.64
8.0.50.0000.00716.83
8.0.30.0130.00816.94
8.0.20.0080.01017.40
8.0.10.0000.00716.93
8.0.00.0110.00716.64
7.4.330.0060.00016.89
7.4.320.0030.00316.49
7.4.300.0060.00016.42
7.4.290.0030.00316.38
7.4.280.0000.00816.46
7.4.270.0000.00716.54
7.4.260.0000.00716.47
7.4.250.0000.00816.38
7.4.240.0030.00616.38
7.4.230.0070.00016.54
7.4.220.0070.00016.52
7.4.210.0070.00916.55
7.4.200.0030.00316.57
7.4.160.0080.01016.49
7.4.140.0090.01117.86
7.4.130.0070.01016.47
7.4.120.0110.01516.38
7.4.110.0100.00716.43
7.4.100.0140.00816.41
7.4.90.0160.00016.29
7.4.80.0060.01519.39
7.4.70.0050.01816.34
7.4.60.0140.00316.50
7.4.50.0040.00816.45
7.4.40.0160.00016.45
7.4.00.0020.01214.88
7.3.330.0050.00013.36
7.3.320.0000.00613.30
7.3.310.0000.00816.31
7.3.300.0040.00416.20
7.3.290.0000.00616.25
7.3.280.0050.01016.24
7.3.260.0130.00716.33
7.3.240.0130.00716.34
7.3.230.0080.01216.34
7.3.210.0110.01116.29
7.3.200.0170.00316.36
7.3.190.0160.00316.36
7.3.180.0060.01016.38
7.3.170.0130.01016.40
7.3.160.0120.00616.38
7.3.120.0000.01614.80
7.3.110.0070.00714.38
7.3.100.0100.00314.81
7.3.90.0090.00614.73
7.3.80.0070.00714.43
7.3.70.0110.00414.66
7.3.60.0070.00714.68
7.3.50.0110.00314.79
7.3.40.0090.00314.47
7.3.30.0040.01114.43
7.3.20.0150.00016.80
7.3.10.0070.00316.61
7.3.00.0070.00716.59
7.2.330.0100.00716.29
7.2.320.0090.01216.73
7.2.310.0120.00416.62
7.2.300.0090.00816.50
7.2.290.0150.00516.66
7.2.250.0150.00315.16
7.2.240.0030.01514.96
7.2.230.0040.01515.20
7.2.220.0050.00515.04
7.2.210.0000.01514.91
7.2.200.0030.00715.09
7.2.190.0140.00314.83
7.2.180.0060.00314.82
7.2.170.0070.00714.66
7.2.130.0090.00616.86
7.2.120.0070.01016.74
7.2.110.0030.01016.70
7.2.100.0060.01216.98
7.2.90.0070.00716.91
7.2.80.0040.01117.03
7.2.70.0090.00916.97
7.2.60.0130.00316.86
7.2.50.0030.00916.84
7.2.40.0030.00916.74
7.2.30.0030.00916.79
7.2.20.0100.00716.80
7.2.10.0090.00616.86
7.2.00.0090.00617.04
7.1.330.0100.00315.89
7.1.320.0030.00815.65
7.1.310.0060.00915.88
7.1.300.0100.00315.84
7.1.290.0060.00615.75
7.1.280.0070.00715.77
7.1.270.0060.00315.54
7.1.260.0040.01115.59
7.1.250.0090.00315.59
7.0.330.0060.00915.36
5.6.380.0070.00714.23

preferences:
34.18 ms | 400 KiB | 5 Q