3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = [ 'PascalCase' => 'camelCase', 'PascalCase2' => 'camelCase2', ]; // Lets convert the PascalCase keys to camelCase $arr = array_combine( array_map(function($k) { return lcfirst($k); }, array_keys($x)), array_values($x) ); var_dump($arr);

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.4.130.0150.00518.00
8.4.120.0120.00820.48
8.4.110.0120.00818.84
8.4.100.0110.01117.47
8.4.90.0120.00917.57
8.4.80.0060.00317.88
8.4.70.0060.00317.26
8.4.60.0100.01218.43
8.4.50.0090.01019.34
8.4.40.0100.01017.75
8.4.30.0060.00318.47
8.4.20.0060.00317.87
8.4.10.0030.00617.61
8.3.260.0140.00516.51
8.3.250.0060.00218.73
8.3.240.0070.01117.23
8.3.230.0100.00616.41
8.3.220.0120.00616.70
8.3.210.0070.01518.40
8.3.200.0050.00416.38
8.3.190.0040.00416.64
8.3.180.0160.00416.48
8.3.170.0090.00918.77
8.3.160.0110.00716.64
8.3.150.0140.00420.95
8.3.140.0030.00716.51
8.3.130.0040.00418.44
8.3.120.0000.00920.86
8.3.110.0060.00320.94
8.3.100.0120.00624.06
8.3.90.0030.00726.77
8.3.80.0070.00316.54
8.3.70.0110.01118.30
8.3.60.0160.00716.75
8.3.50.0100.00718.29
8.3.40.0000.01418.71
8.3.30.0150.00018.58
8.3.20.0000.00724.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.290.0130.00620.45
8.2.280.0100.00520.18
8.2.270.0180.00018.78
8.2.260.0130.00720.09
8.2.250.0090.00616.79
8.2.240.0060.00317.35
8.2.230.0130.00622.58
8.2.220.0080.00037.54
8.2.210.0080.00626.77
8.2.200.0100.00316.38
8.2.190.0150.00616.58
8.2.180.0090.00925.92
8.2.170.0070.00718.82
8.2.160.0140.00022.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0070.00020.80
8.2.110.0070.00319.23
8.2.100.0060.00617.78
8.2.90.0080.00017.78
8.2.80.0060.00317.97
8.2.70.0090.00017.50
8.2.60.0000.00718.04
8.2.50.0030.00618.07
8.2.40.0040.00418.35
8.2.30.0040.00418.17
8.2.20.0020.00520.51
8.2.10.0000.00817.74
8.2.00.0080.00019.20
8.1.330.0090.01122.13
8.1.320.0150.00615.96
8.1.310.0040.00416.57
8.1.300.0170.00318.13
8.1.290.0030.00618.88
8.1.280.0200.00025.92
8.1.270.0000.00923.90
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0100.00021.29
8.1.230.0000.01120.92
8.1.220.0000.00817.76
8.1.210.0050.00518.77
8.1.200.0070.00317.35
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0050.00218.83
8.1.160.0080.00018.88
8.1.150.0000.00718.64
8.1.140.0000.00717.37
8.1.130.0000.00717.38
8.1.120.0030.00317.30
8.1.110.0000.00717.50
8.1.100.0000.00717.47
8.1.90.0040.00417.45
8.1.80.0040.00417.37
8.1.70.0010.00617.34
8.1.60.0010.00817.48
8.1.50.0040.00517.41
8.1.40.0020.00617.49
8.1.30.0030.00517.59
8.1.20.0130.00317.57
8.1.10.0140.00217.36
8.1.00.0110.00717.29
8.0.300.0000.00719.80
8.0.290.0050.00316.75
8.0.280.0070.00020.18
8.0.270.0070.00016.62
8.0.260.0030.00316.78
8.0.250.0000.00716.82
8.0.240.0070.00016.86
8.0.230.0020.00716.85
8.0.220.0000.00716.75
8.0.210.0020.00616.79
8.0.200.0050.00216.88
8.0.190.0010.00616.98
8.0.180.0030.00516.88
8.0.170.0030.00516.88
8.0.160.0040.00416.82
8.0.150.0080.00616.86
8.0.140.0140.00016.74
8.0.130.0090.00516.84
8.0.120.0030.01016.79
8.0.110.0080.00516.74
8.0.100.0100.00316.74
8.0.90.0110.00516.79
8.0.80.0120.00316.89
8.0.70.0070.00716.83
8.0.60.0050.00816.78
8.0.50.0100.00416.78
8.0.30.0050.00916.83
8.0.20.0080.00516.89
8.0.10.0090.00516.84
7.4.330.0060.00015.55
7.4.320.0000.00616.61
7.4.300.0020.00516.51
7.4.290.0040.00316.48
7.4.280.0060.00416.53
7.4.270.0080.00616.45
7.4.260.0110.00416.45
7.4.250.0120.00416.45
7.4.240.0080.00716.54
7.4.230.0160.00416.53
7.4.220.0090.00416.43
7.4.210.0110.00216.37
7.4.200.0090.00416.45
7.4.190.0100.00216.59
7.4.180.0080.00516.48
7.4.160.0100.00316.48
7.4.150.0110.00216.49
7.4.140.0110.00216.47
7.4.130.0070.00516.25
7.4.120.0110.00216.45
7.4.110.0100.00316.28
7.4.100.0090.00316.47
7.4.90.0090.00316.31
7.4.80.0080.00516.39
7.4.70.0080.00516.31
7.4.60.0130.00016.20
7.4.50.0090.00316.25
7.4.40.0070.00616.28
7.4.30.0060.00716.24
7.4.20.0070.00616.38
7.4.10.0100.00216.37
7.4.00.0090.00416.36

preferences:
27.67 ms | 403 KiB | 5 Q