3v4l.org

run code in 300+ PHP versions simultaneously
<?php class User { public $types = [ 'name' => 'string' ]; public string $name; } $u = new User; for ($i = 0; $i < 10000; $i++) { echo $u->types['name']; }

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.0270.00718.27
8.3.50.0190.00420.23
8.3.40.0190.00320.22
8.3.30.0140.01018.71
8.3.20.0120.00024.18
8.3.10.0190.00624.66
8.3.00.0080.00326.16
8.2.180.0130.01325.92
8.2.170.0150.00922.96
8.2.160.0230.00622.96
8.2.150.0110.00025.66
8.2.140.0060.00624.66
8.2.130.0080.00426.16
8.2.120.0060.00626.16
8.2.110.0130.00322.21
8.2.100.0110.00717.84
8.2.90.0070.00419.21
8.2.80.0090.00018.05
8.2.70.0030.00617.75
8.2.60.0050.00518.05
8.2.50.0090.00018.07
8.2.40.0030.00720.07
8.2.30.0030.00718.25
8.2.20.0080.00420.36
8.2.10.0090.00317.80
8.2.00.0070.00319.36
8.1.280.0230.00725.92
8.1.270.0120.00023.99
8.1.260.0120.00026.35
8.1.250.0060.00628.09
8.1.240.0080.00823.96
8.1.230.0080.00822.62
8.1.220.0090.00317.79
8.1.210.0110.00018.77
8.1.200.0040.00717.23
8.1.190.0060.00317.09
8.1.180.0080.00418.70
8.1.170.0100.00318.94
8.1.160.0030.00618.89
8.1.150.0070.00418.55
8.1.140.0070.00317.49
8.1.130.0060.00320.31
8.1.120.0070.00317.52
8.1.110.0090.00317.39
8.1.100.0040.00417.47
8.1.90.0060.00317.36
8.1.80.0030.00617.43
8.1.70.0000.00817.52
8.1.60.0060.00317.46
8.1.50.0070.00417.52
8.1.40.0070.00417.53
8.1.30.0070.00417.59
8.1.20.0230.00317.49
8.1.10.0130.01317.45
8.1.00.0250.00017.33
8.0.300.0000.01118.77
8.0.290.0070.00316.63
8.0.280.0060.00318.25
8.0.270.0040.00416.79
8.0.260.0060.00318.30
8.0.250.0040.00416.81
8.0.240.0080.00316.82
8.0.230.0090.00016.71
8.0.220.0060.00316.65
8.0.210.0030.00616.75
8.0.200.0060.00316.70
8.0.190.0000.00916.84
8.0.180.0040.00716.67
8.0.170.0140.00016.85
8.0.160.0070.00416.82
8.0.150.0150.00716.55
8.0.140.0150.00516.48
8.0.130.0170.00416.48
8.0.120.0120.01216.61
8.0.110.0210.00016.50
8.0.100.0170.00416.61
8.0.90.0150.00716.46
8.0.80.0190.00316.56
8.0.70.0250.00016.52
8.0.60.0180.00416.54
8.0.50.0120.00916.61
8.0.30.0180.00416.50
8.0.20.0220.00016.61
8.0.10.0100.01316.60
7.4.330.0030.00315.55
7.4.320.0080.00016.39
7.4.300.0060.00316.38
7.4.290.0000.01116.32
7.4.280.0030.00716.40
7.4.270.0200.00416.12
7.4.260.0200.00416.14
7.4.250.0210.00416.21
7.4.240.0210.00316.20
7.4.230.0140.00016.16
7.4.220.0090.00416.22
7.4.210.0110.00016.16
7.4.200.0110.00716.08
7.4.190.0120.00516.36
7.4.180.0110.00416.26
7.4.160.0210.00016.31
7.4.150.0070.00416.19
7.4.140.0090.00316.25
7.4.130.0030.00816.06
7.4.120.0090.00316.24
7.4.110.0090.00316.11
7.4.100.0070.00216.29
7.4.90.0030.00616.18
7.4.80.0060.00316.07
7.4.70.0060.00316.09
7.4.60.0090.00016.16
7.4.50.0000.00916.12
7.4.40.0100.00016.02
7.4.30.0060.00316.21
7.4.20.0070.00216.11
7.4.10.0000.00916.04
7.4.00.0060.00316.25

preferences:
52.69 ms | 400 KiB | 5 Q