3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'mc_gross' => 10.17, 'protection_eligibility' => 'Eligible', 'address_status' => 'unconfirmed', 'payer_id' => 'STTAC7UV2CVJ4' ]; $result = []; foreach ($array as $key => $value) { $result[str_replace('_', '', ucwords($key, '_'))] = $value; } var_export($result);

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.120.0110.01020.31
8.4.110.0060.00322.49
8.4.100.0050.00417.96
8.4.90.0120.00818.59
8.4.80.0120.00617.96
8.4.70.0150.00618.00
8.4.60.0110.00720.32
8.4.50.0070.01217.64
8.4.40.0060.00317.55
8.4.30.0160.00320.41
8.4.20.0130.00317.88
8.4.10.0060.01323.64
8.3.250.0110.00818.89
8.3.240.0080.01116.62
8.3.230.0130.00616.59
8.3.220.0110.00817.13
8.3.210.0120.01016.50
8.3.200.0050.00416.41
8.3.190.0130.00717.00
8.3.180.0060.00216.80
8.3.170.0040.01418.82
8.3.160.0100.01016.50
8.3.150.0140.00417.14
8.3.140.0040.00416.49
8.3.130.0060.01218.37
8.3.120.0090.00020.58
8.3.110.0060.00620.94
8.3.100.0030.01316.57
8.3.90.0030.00618.30
8.3.80.0100.00317.97
8.3.70.0130.00318.46
8.3.60.0150.00416.48
8.3.50.0170.00316.52
8.3.40.0060.00919.84
8.3.30.0110.00418.71
8.3.20.0000.00824.18
8.3.10.0060.00324.66
8.3.00.0040.00426.16
8.2.290.0110.00720.61
8.2.280.0090.00920.24
8.2.270.0110.00717.00
8.2.260.0050.00320.46
8.2.250.0040.00418.31
8.2.240.0040.00417.49
8.2.230.0040.00422.58
8.2.220.0110.00424.06
8.2.210.0070.00726.77
8.2.200.0030.00918.54
8.2.190.0080.00816.58
8.2.180.0060.00916.38
8.2.170.0040.01518.91
8.2.160.0100.00322.96
8.2.150.0030.00525.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00419.89
8.2.110.0100.00019.25
8.2.100.0090.00317.91
8.2.90.0000.00817.71
8.2.80.0030.00518.63
8.2.70.0030.00617.63
8.2.60.0050.00317.63
8.2.50.0060.01218.10
8.2.40.0090.00618.10
8.2.30.0140.00318.10
8.2.20.0170.00018.10
8.2.10.0120.00818.10
8.2.00.0140.00318.10
8.1.330.0090.01122.03
8.1.320.0110.00715.98
8.1.310.0090.00616.86
8.1.300.0000.00818.46
8.1.290.0040.00718.88
8.1.280.0100.00725.92
8.1.270.0050.00324.66
8.1.260.0030.00526.35
8.1.250.0060.00328.09
8.1.240.0030.00622.82
8.1.230.0000.01122.75
8.1.220.0030.00618.69
8.1.210.0080.00018.77
8.1.200.0030.00617.23
8.1.190.0090.00017.35
8.1.180.0140.00418.10
8.1.170.0210.00018.10
8.1.160.0130.00218.10
8.1.150.0060.00918.10
8.1.140.0080.00818.10
8.1.130.0060.00918.10
8.1.120.0050.01118.10
8.1.110.0120.00418.10
8.1.100.0170.00018.10
8.1.90.0160.00018.10
8.1.80.0080.00818.10
8.1.70.0080.00818.10
8.1.60.0140.00418.10
8.1.50.0170.00018.10
8.1.40.0150.00418.10
8.1.30.0140.00318.10
8.1.20.0140.00318.10
8.1.10.0090.00918.10
8.1.00.0070.01018.10
8.0.300.0000.00718.77
8.0.290.0080.00016.63
8.0.280.0130.00318.10
8.0.270.0120.00618.10
8.0.260.0120.00418.10
8.0.250.0140.00418.10
8.0.240.0180.00018.10
8.0.230.0140.00318.10
8.0.220.0140.00518.10
8.0.210.0170.00018.10
8.0.200.0090.00718.10
8.0.190.0160.00018.10
8.0.180.0160.00018.10
8.0.170.0130.00318.10
8.0.160.0050.01018.10
8.0.150.0090.00918.10
8.0.140.0080.00818.10
8.0.130.0110.00518.10
8.0.120.0090.00618.10
8.0.110.0150.00018.10
8.0.100.0100.00518.10
8.0.90.0080.00818.10
8.0.80.0110.00518.10
8.0.70.0100.00518.10
8.0.60.0110.00718.10
8.0.50.0170.00018.10
8.0.30.0150.00018.10
8.0.20.0110.00418.10
8.0.10.0130.00218.10

preferences:
29.49 ms | 403 KiB | 5 Q