3v4l.org

run code in 300+ PHP versions simultaneously
<?php $db_name = "users"; // this will act as an index $db[$db_name] = "some value"; // the index "user" which is the value of the variable "$db_name" holds the value "some value" in the "$db" variable echo $db_name . ' | ' . $db[$db_name]; // prints: users | some value

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.5.10.0060.01121.68
8.5.00.0140.00720.09
8.4.150.0020.00014.05
8.4.140.0100.01017.74
8.4.130.0060.00218.45
8.4.120.0130.00722.16
8.4.110.0120.00718.89
8.4.100.0150.00717.61
8.4.90.0150.00620.65
8.4.80.0120.00818.75
8.4.70.0110.01218.65
8.4.60.0120.00720.43
8.4.50.0130.00820.75
8.4.40.0100.00718.00
8.4.30.0150.00418.67
8.4.20.0080.00017.83
8.4.10.0060.00322.30
8.3.280.0100.01118.41
8.3.270.0120.01216.50
8.3.260.0030.00716.55
8.3.250.0040.00416.68
8.3.240.0130.00716.61
8.3.230.0120.00716.49
8.3.220.0070.00119.10
8.3.210.0110.00716.66
8.3.200.0060.00316.48
8.3.190.0120.00517.00
8.3.180.0090.00918.83
8.3.170.0040.00418.76
8.3.160.0130.00616.43
8.3.150.0070.01116.37
8.3.140.0110.00416.64
8.3.130.0040.01416.60
8.3.120.0090.00620.75
8.3.110.0060.00316.41
8.3.100.0070.00716.25
8.3.90.0120.00326.77
8.3.80.0060.00316.62
8.3.70.0110.00716.58
8.3.60.0070.01118.43
8.3.50.0130.00720.12
8.3.40.0110.00420.29
8.3.30.0120.00318.73
8.3.20.0000.00724.18
8.3.10.0000.00824.66
8.3.00.0080.00026.16
8.2.290.0140.00516.88
8.2.280.0100.00918.19
8.2.270.0090.00916.76
8.2.260.0090.00917.32
8.2.250.0060.00318.49
8.2.240.0100.00618.32
8.2.230.0100.01020.94
8.2.220.0090.00324.06
8.2.210.0100.00326.77
8.2.200.0100.00016.63
8.2.190.0030.01316.58
8.2.180.0070.00725.92
8.2.170.0090.00618.91
8.2.160.0030.01322.96
8.2.150.0080.00025.66
8.2.140.0080.00024.66
8.2.130.0030.01026.16
8.2.120.0050.00221.13
8.2.110.0090.00020.30
8.2.100.0090.00020.26
8.1.330.0070.00716.36
8.1.320.0120.01116.12
8.1.310.0140.00418.71
8.1.300.0040.00417.95
8.1.290.0060.00330.84
8.1.280.0070.01125.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0090.00018.62
8.1.230.0000.00918.62
7.4.300.0000.00816.55

preferences:
41.48 ms | 403 KiB | 5 Q