3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public $field = null; } $test = new foo(); $test->field = '1111'; var_dump([ $test->field, $test['field'], ]);

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.0120.00316.59
8.3.50.0120.00318.05
8.3.40.0070.00718.84
8.3.30.0060.00918.68
8.3.20.0080.00020.39
8.3.10.0040.00423.67
8.3.00.0030.00519.38
8.2.180.0090.01218.29
8.2.170.0140.00422.96
8.2.160.0060.00822.13
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00017.75
8.2.120.0090.00026.35
8.2.110.0060.00320.52
8.2.100.0040.00818.04
8.2.90.0000.00719.22
8.2.80.0030.00717.97
8.2.70.0040.00417.63
8.2.60.0080.00017.93
8.2.50.0000.00818.07
8.2.40.0000.00819.36
8.2.30.0050.00220.60
8.2.20.0070.00317.67
8.2.10.0040.00418.05
8.2.00.0000.00717.98
8.1.280.0110.00325.92
8.1.270.0070.00323.79
8.1.260.0060.00328.09
8.1.250.0050.00328.09
8.1.240.0040.00423.92
8.1.230.0070.00417.66
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0060.00317.48
8.1.190.0000.00817.35
8.1.180.0060.00318.10
8.1.170.0040.00418.66
8.1.160.0040.00422.05
8.1.150.0040.00418.89
8.1.140.0030.00519.56
8.1.130.0030.00317.76
8.1.120.0080.00017.37
8.1.110.0000.00717.38
8.1.100.0040.00417.45
8.1.90.0040.00417.42
8.1.80.0080.00017.31
8.1.70.0040.00417.34
8.1.60.0050.00317.48
8.1.50.0090.00017.54
8.1.40.0000.00817.47
8.1.30.0030.00517.55
8.1.20.0080.00017.51
8.1.10.0000.00817.50
8.1.00.0040.00417.43
8.0.300.0020.00518.77
8.0.290.0040.00416.75
8.0.280.0000.00818.38
8.0.270.0000.00717.23
8.0.260.0030.00317.19
8.0.250.0080.00017.08
8.0.240.0070.00016.95
8.0.230.0000.00717.01
8.0.220.0040.00417.00
8.0.210.0070.00016.83
8.0.200.0000.00616.88
8.0.190.0070.00016.94
8.0.180.0040.00417.01
8.0.170.0050.00316.97
8.0.160.0020.00516.95
8.0.150.0070.00016.75
8.0.140.0000.01016.98
8.0.130.0030.00313.33
8.0.120.0040.00416.97
8.0.110.0000.00716.88
8.0.100.0040.00416.95
8.0.90.0000.00716.80
8.0.80.0160.00616.88
8.0.70.0030.00517.06
8.0.60.0000.00716.80
8.0.50.0000.00816.98
8.0.30.0080.01117.16
8.0.20.0120.00717.40
8.0.10.0060.00316.98
8.0.00.0050.01216.67
7.4.330.0000.00516.67
7.4.320.0050.00216.41
7.4.300.0030.00316.61
7.4.290.0000.00616.60
7.4.280.0050.00316.58
7.4.270.0040.00416.49
7.4.260.0030.00616.48
7.4.250.0000.00716.59
7.4.240.0000.00816.45
7.4.230.0000.00716.30
7.4.220.0090.00916.53
7.4.210.0040.01116.54
7.4.200.0030.00316.70
7.4.160.0110.01116.64
7.4.150.0110.00717.40
7.4.140.0110.01217.86
7.4.130.0090.00916.58
7.4.120.0110.00916.59
7.4.110.0090.01216.34
7.4.100.0140.00316.58
7.4.90.0070.01016.78
7.4.80.0110.00719.39
7.4.70.0160.00616.52
7.4.60.0040.01316.52
7.4.50.0000.01516.46
7.4.40.0090.00916.41
7.4.30.0170.00316.57
7.4.00.0060.00914.85
7.3.330.0030.00313.22
7.3.320.0000.00613.18
7.3.310.0000.00716.41
7.3.300.0000.00716.30
7.3.290.0120.00216.29
7.3.280.0120.00516.27
7.3.270.0030.01317.40
7.3.260.0070.01016.66
7.3.240.0020.01516.35
7.3.230.0070.01116.53
7.3.210.0060.01216.28
7.3.200.0100.00716.49
7.3.190.0200.00316.61
7.3.180.0060.01116.57
7.3.170.0100.01016.32
7.3.160.0150.00016.46
7.2.330.0100.00616.54
7.2.320.0070.01016.69
7.2.310.0080.00816.69
7.2.300.0080.00816.71
7.2.290.0190.00416.38
7.2.60.0030.01016.74
7.2.00.0040.01419.05
7.1.200.0030.01015.79
7.1.100.0060.00618.23
7.1.70.0030.00516.95
7.1.60.0030.01719.48
7.1.50.0070.01117.00
7.1.00.0000.08022.45
7.0.200.0250.00414.77
7.0.100.0130.06020.17
7.0.90.0370.07719.96
7.0.80.0170.08719.98
7.0.70.0370.05719.86
7.0.60.0370.05019.98
7.0.50.0270.08020.34
7.0.40.0170.05719.95
7.0.30.0030.05020.11
7.0.20.0130.07720.19
7.0.10.0130.07719.95
7.0.00.0070.08020.04
5.6.280.0070.06021.03
5.6.250.0070.07320.59
5.6.240.0100.08020.51
5.6.230.0100.06320.68
5.6.220.0100.07720.71
5.6.210.0100.07720.61
5.6.200.0030.06321.09
5.6.190.0100.07721.04
5.6.180.0170.07321.02
5.6.170.0070.08721.02
5.6.160.0100.08021.00
5.6.150.0070.05021.05
5.6.140.0130.07021.01
5.6.130.0030.08321.07
5.6.120.0200.07020.93
5.6.110.0100.08021.00
5.6.100.0030.06720.99
5.6.90.0200.06321.01
5.6.80.0130.07320.56
5.6.70.0030.08020.45
5.6.60.0070.08020.53
5.6.50.0170.07020.40
5.6.40.0070.07720.31
5.6.30.0170.06720.41
5.6.20.0070.08020.35
5.6.10.0070.07320.46
5.6.00.0170.06320.38
5.5.380.0130.08320.34
5.5.370.0070.06320.35
5.5.360.0100.07020.40
5.5.350.0070.08020.37
5.5.340.0270.06720.82
5.5.330.0030.05320.89
5.5.320.0170.07320.86
5.5.310.0100.08320.79
5.5.300.0070.08320.86
5.5.290.0200.07320.80
5.5.280.0130.08020.83
5.5.270.0130.07320.63
5.5.260.0100.07020.91
5.5.250.0070.08320.57
5.5.240.0100.07720.11
5.5.230.0100.07720.13
5.5.220.0170.05020.27
5.5.210.0100.07320.26
5.5.200.0070.05720.28
5.5.190.0130.07320.27
5.5.180.0100.08020.22
5.5.160.0070.08320.26
5.5.150.0030.05720.23
5.5.140.0030.08020.23
5.5.130.0170.06720.11
5.5.120.0100.07020.18
5.5.110.0030.05320.27
5.5.100.0030.08720.08
5.5.90.0000.07720.16
5.5.80.0070.08020.07
5.5.70.0170.05720.14
5.5.60.0030.08320.15
5.5.50.0000.08720.03
5.5.40.0030.06020.13
5.5.30.0170.06720.11
5.5.20.0070.07720.14
5.5.10.0100.07320.11
5.5.00.0170.06020.09

preferences:
54.53 ms | 401 KiB | 5 Q