3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ 1.5 => 1.5, 1.25 => 1.25, 1.75 => 1.75 ]; var_dump( $a );

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.130.0120.00318.31
8.3.120.0000.00918.68
8.3.110.0000.00820.94
8.3.100.0100.00024.06
8.3.90.0000.00826.77
8.3.80.0030.00618.31
8.3.70.0040.01116.58
8.3.60.0130.00618.14
8.3.50.0140.00720.29
8.3.40.0130.00321.98
8.3.30.0130.00318.70
8.3.20.0040.00424.18
8.3.10.0000.01124.66
8.3.00.0080.00026.16
8.2.250.0040.01518.49
8.2.240.0080.00017.32
8.2.230.0060.00322.58
8.2.220.0000.00837.54
8.2.210.0080.00026.77
8.2.200.0030.00618.26
8.2.190.0180.00416.63
8.2.180.0210.00325.92
8.2.170.0170.00319.08
8.2.160.0000.01422.96
8.2.150.0030.00625.66
8.2.140.0030.00524.66
8.2.130.0000.00726.16
8.2.120.0000.00826.16
8.2.110.0070.00319.11
8.2.100.0110.00417.78
8.2.90.0030.00617.63
8.2.80.0000.00918.82
8.2.70.0030.00617.50
8.2.60.0080.00017.63
8.2.50.0000.00818.04
8.2.40.0040.00420.07
8.2.30.0050.00318.06
8.2.20.0000.00720.49
8.2.10.0040.00417.93
8.2.00.0050.00319.28
8.1.300.0000.00718.29
8.1.290.0050.00530.84
8.1.280.0100.00325.92
8.1.270.0000.00823.99
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00322.74
8.1.230.0030.00722.15
8.1.220.0030.00618.64
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0050.00317.11
8.1.180.0050.00318.10
8.1.170.0000.00717.65
8.1.160.0040.00418.88
8.1.150.0000.00718.63
8.1.140.0070.00017.45
8.1.130.0030.00318.68
8.1.120.0060.00317.33
8.1.110.0040.00417.37
8.1.100.0070.00017.32
8.1.90.0000.00717.31
8.1.80.0040.00417.27
8.1.70.0130.00417.36
8.1.60.0130.00617.46
8.1.50.0110.00617.41
8.1.40.0140.00317.41
8.1.30.0140.00317.50
8.1.20.0120.00417.55
8.1.10.0120.00517.36
8.1.00.0140.00017.41
8.0.300.0060.00618.77
8.0.290.0000.00716.75
8.0.280.0000.00918.27
8.0.270.0040.00416.68
8.0.260.0030.00518.24
8.0.250.0070.00016.87
8.0.240.0030.00316.88
8.0.230.0000.00716.76
8.0.220.0000.00716.68
8.0.210.0110.00316.74
8.0.200.0150.00016.73
8.0.190.0100.00416.81
8.0.180.0090.00216.84
8.0.170.0050.00516.74
8.0.160.0070.00316.72
8.0.150.0050.00516.66
8.0.140.0090.00016.69
8.0.130.0160.00016.74
8.0.120.0120.00316.68
8.0.110.0050.01016.78
8.0.100.0120.00316.76
8.0.90.0110.00416.75
8.0.80.0110.00316.77
8.0.70.0100.00516.71
8.0.60.0090.00616.58
8.0.50.0090.00516.70
8.0.30.0110.00416.80
8.0.20.0070.01016.88
8.0.10.0100.00316.89
7.4.330.0050.00315.55
7.4.320.0000.00716.35
7.4.300.0070.00716.32
7.4.290.0120.00016.51
7.4.280.0100.00316.37
7.4.270.0090.00516.39
7.4.260.0100.00716.48
7.4.250.0050.00916.45
7.4.240.0110.00616.48
7.4.230.0130.00316.38
7.4.220.0120.00416.41
7.4.210.0140.00016.37
7.4.200.0040.00816.43
7.4.190.0000.01216.34
7.4.180.0070.00616.42
7.4.160.0080.00416.35
7.4.150.0060.00416.29
7.4.140.0110.00016.36
7.4.130.0110.00316.34
7.4.120.0000.01116.36
7.4.110.0060.00616.32
7.4.100.0090.00216.39
7.4.90.0060.00316.24
7.4.80.0030.00616.03
7.4.70.0060.00616.25
7.4.60.0060.00316.23
7.4.50.0000.00815.95
7.4.40.0040.00415.96
7.4.30.0060.00215.86
7.4.20.0030.00516.37
7.4.10.0100.00015.89
7.4.00.0050.00516.28

preferences:
25.65 ms | 403 KiB | 5 Q