3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = memory_get_usage(); $names = array_fill(0, 1000, array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)); echo "10k values in a 1000x10 matrix: ", round((memory_get_usage()-$start)/1024),"KB\n"; $names = array_merge(...$names); echo "Same 10k values in a plain vector: ", round((memory_get_usage()-$start)/1024),"KB\n";

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.120.0250.00817.07
8.3.110.0300.00716.53
8.3.100.0310.00916.56
8.3.90.0290.00816.65
8.3.80.0290.00816.49
8.3.70.0300.00716.52
8.3.60.0300.00716.56
8.3.50.0290.00516.60
8.3.40.0230.00617.53
8.3.30.0210.00717.61
8.3.20.0220.00717.57
8.3.10.0220.00717.66
8.3.00.0140.00618.10
8.2.240.0240.00616.56
8.2.230.0210.00616.48
8.2.220.0230.00616.51
8.2.210.0220.00716.44
8.2.200.0210.00716.54
8.2.190.0230.00716.50
8.2.180.0210.00716.48
8.2.170.0250.00517.77
8.2.160.0260.00517.69
8.2.150.0240.00717.64
8.2.140.0260.00717.55
8.2.130.0270.00617.58
8.2.120.0270.00617.64
8.2.110.0260.00717.67
8.2.100.0270.00517.60
8.2.90.0250.00817.68
8.2.80.0270.00717.57
8.2.70.0280.00617.57
8.2.60.0270.00717.56
8.2.50.0260.00617.58
8.2.40.0240.00717.61
8.2.30.0240.00617.57
8.2.20.0240.00717.54
8.2.10.0240.00617.57
8.2.00.0240.00717.57
8.1.300.0250.00716.37
8.1.290.0230.00816.23
8.1.280.0240.00716.36
8.1.270.0280.00617.62
8.1.260.0260.00617.66
8.1.250.0250.00817.60
8.1.240.0230.00717.56
8.1.230.0240.00617.58
8.1.220.0230.00717.64
8.1.210.0260.00817.58
8.1.200.0270.00617.65
8.1.190.0270.00617.54
8.1.180.0260.00717.56
8.1.170.0250.00517.47
8.1.160.0240.00717.46
8.1.150.0240.00717.49
8.1.140.0240.00717.42
8.1.130.0250.00517.54
8.1.120.0240.00617.54
8.1.110.0240.00517.48
8.1.100.0230.00717.49
8.1.90.0230.00717.51
8.1.80.0230.00717.52
8.1.70.0220.00717.49
8.1.60.0270.00617.60
8.1.50.0290.00617.56
8.1.40.0260.00717.65
8.1.30.0260.00717.72
8.1.20.0270.00617.68
8.1.10.0270.00617.66
8.1.00.0260.00617.56

preferences:
41.1 ms | 403 KiB | 5 Q