3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=array("Name"=>"Peter","Age"=>"41","Country"=>"USA"); var_export(array_keys($a)); var_export(array_values($a)); $key = $a['Name']; $value = $a['Country']; echo "$key $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.3.60.0150.00018.18
8.3.50.0040.01117.91
8.3.40.0110.00418.96
8.3.30.0040.01118.54
8.3.20.0080.00019.34
8.3.10.0080.00323.61
8.3.00.0080.00023.66
8.2.180.0080.00816.75
8.2.170.0070.01122.96
8.2.160.0110.00320.47
8.2.150.0050.00324.18
8.2.140.0100.00024.66
8.2.130.0070.00022.25
8.2.120.0000.00826.35
8.2.110.0030.00620.45
8.2.100.0070.00417.78
8.2.90.0040.00417.91
8.2.80.0050.00318.74
8.2.70.0040.00417.63
8.2.60.0040.00417.75
8.2.50.0000.00817.55
8.2.40.0000.00919.38
8.2.30.0040.00420.62
8.2.20.0050.00218.12
8.2.10.0040.00417.99
8.2.00.0000.00719.41
8.1.280.0140.00425.92
8.1.270.0040.00422.06
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00723.64
8.1.230.0070.00422.73
8.1.220.0040.00418.60
8.1.210.0080.00018.77
8.1.200.0040.00417.52
8.1.190.0050.00317.10
8.1.180.0000.00818.10
8.1.170.0040.00418.66
8.1.160.0000.00718.70
8.1.150.0030.00318.76
8.1.140.0030.00518.91
8.1.130.0060.00319.05
8.1.120.0040.00417.39
8.1.110.0030.00317.36
8.1.100.0040.00417.40
8.1.90.0070.00017.30
8.1.80.0040.00417.28
8.1.70.0040.00417.40
8.1.60.0060.00317.55
8.1.50.0000.00717.45
8.1.40.0030.00517.40
8.1.30.0080.00017.52
8.1.20.0070.00417.48
8.1.10.0000.00817.45
8.1.00.0000.00817.36
8.0.300.0060.00318.77
8.0.290.0000.00716.75
8.0.280.0030.00318.44
8.0.270.0030.00317.29
8.0.260.0060.00317.15
8.0.250.0030.00616.91
8.0.240.0000.00616.90
8.0.230.0070.00016.92
8.0.220.0030.00316.84
8.0.210.0000.00716.85
8.0.200.0000.00816.91
8.0.190.0070.00016.93
8.0.180.0000.00916.95
8.0.170.0040.00416.82
8.0.160.0000.00716.84
8.0.150.0000.00716.75
8.0.140.0040.00416.77
8.0.130.0060.00013.31
8.0.120.0080.00016.76
8.0.110.0040.00416.82
8.0.100.0050.00316.88
8.0.90.0000.00716.85
8.0.80.0060.01316.85
8.0.70.0000.00716.82
8.0.60.0040.00416.76
8.0.50.0040.00416.83
8.0.30.0120.00617.06
8.0.20.0130.00617.40
8.0.10.0030.00517.02
8.0.00.0090.00916.75
7.4.330.0000.00615.55
7.4.320.0000.00616.45
7.4.300.0030.00316.53
7.4.290.0000.00716.45
7.4.280.0000.00716.52
7.4.270.0070.00016.34
7.4.260.0070.00016.49
7.4.250.0000.00716.35
7.4.240.0030.00416.53
7.4.230.0000.00716.34
7.4.220.0000.00816.41
7.4.210.0070.00916.43
7.4.200.0000.00716.33
7.4.160.0070.01016.51
7.4.140.0070.01117.86
7.4.130.0120.00616.58
7.4.120.0100.00916.49
7.4.110.0150.00416.34
7.4.100.0090.01416.41
7.4.90.0180.00316.60
7.4.80.0170.00619.39
7.4.70.0000.02016.66
7.4.60.0030.01316.50
7.4.50.0090.00916.43
7.4.40.0110.01116.59
7.4.00.0030.01214.77
7.3.330.0070.00013.13
7.3.320.0050.00013.14
7.3.310.0030.00316.19
7.3.300.0070.00016.15
7.3.290.0000.00716.36
7.3.280.0050.01016.29
7.3.260.0090.00916.43
7.3.240.0080.01016.36
7.3.230.0030.01516.39
7.3.210.0070.01016.43
7.3.200.0120.00416.54
7.3.190.0060.00916.32
7.3.180.0030.01316.57
7.3.170.0100.00616.25
7.3.160.0130.00316.37
7.2.330.0000.01916.74
7.2.320.0090.00616.51
7.2.310.0150.00616.29
7.2.300.0090.00916.66
7.2.290.0090.00616.74
7.2.80.0800.00314.52
7.2.70.0800.01314.88
7.2.60.0830.00315.13
7.2.50.0760.01015.01
7.2.40.0880.00314.94
7.2.30.0590.01015.07
7.2.20.0700.00914.94
7.2.10.0920.01015.15
7.2.00.1060.00915.07
7.1.200.1300.00713.89
7.1.190.0760.00913.86
7.1.180.1150.01014.02
7.1.170.0660.00613.82
7.1.160.0770.01013.76
7.1.150.0690.00713.77
7.1.140.1050.01013.74
7.1.130.0760.01013.98
7.1.120.0650.01213.90
7.1.110.0690.01013.72
7.1.100.1260.01013.94
7.1.90.0770.00313.88
7.1.80.1330.00313.63
7.1.70.1130.01414.04
7.1.60.1260.01031.88
7.1.50.0980.00731.74
7.1.40.1030.00331.95
7.1.30.1530.01631.91
7.1.20.1520.01031.82
7.1.10.0870.00913.81
7.1.00.0880.00913.95

preferences:
56.95 ms | 400 KiB | 5 Q