3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'mc_gross' => 10.17, 'protection_eligibility' => 'Eligible', 'address_status' => 'unconfirmed', 'payer_id' => 'STTAC7UV2CVJ4' ]; var_export( array_reduce( array_keys($array), fn($result, $k) => $result + [str_replace('_', '', ucwords($k, '_')) => $array[$k]], [] ) );

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.0120.00720.34
8.4.110.0070.00318.74
8.4.100.0130.00717.61
8.4.90.0080.01018.57
8.4.80.0110.00317.91
8.4.70.0090.01117.76
8.4.60.0090.01118.75
8.4.50.0120.00417.82
8.4.40.0030.01523.98
8.4.30.0090.00020.75
8.4.20.0090.01120.64
8.4.10.0070.01323.79
8.3.250.0090.01018.87
8.3.240.0050.00316.67
8.3.230.0100.00816.52
8.3.220.0140.00317.11
8.3.210.0090.01016.76
8.3.200.0060.00316.36
8.3.190.0100.00817.32
8.3.180.0110.00816.59
8.3.170.0060.00919.17
8.3.160.0060.00316.42
8.3.150.0070.01120.68
8.3.140.0070.01118.51
8.3.130.0040.00417.35
8.3.120.0030.01320.76
8.3.110.0130.00718.29
8.3.100.0100.00018.29
8.3.90.0160.00326.77
8.3.80.0050.00518.16
8.3.70.0070.00716.75
8.3.60.0140.00018.43
8.3.50.0140.00416.80
8.3.40.0130.00021.86
8.3.30.0040.01118.87
8.3.20.0060.00324.18
8.3.10.0080.00024.66
8.3.00.0000.00726.16
8.2.290.0080.00520.49
8.2.280.0030.00518.74
8.2.270.0090.00917.04
8.2.260.0070.01120.61
8.2.250.0040.00416.66
8.2.240.0040.01117.09
8.2.230.0060.00320.94
8.2.220.0090.00024.06
8.2.210.0040.00426.77
8.2.200.0090.00018.16
8.2.190.0180.00416.75
8.2.180.0160.00616.50
8.2.170.0140.00718.91
8.2.160.0120.00922.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00326.16
8.2.110.0040.00419.39
8.2.100.0070.00417.76
8.2.90.0060.00317.88
8.2.80.0060.00318.78
8.2.70.0040.00417.75
8.2.60.0000.00817.63
8.2.50.0050.00318.05
8.2.40.0000.00819.35
8.2.30.0080.00817.63
8.2.20.0060.01017.62
8.2.10.0130.00317.62
8.2.00.0120.00317.62
8.1.330.0110.00722.10
8.1.320.0100.01016.34
8.1.310.0070.00716.58
8.1.300.0060.00316.33
8.1.290.0070.00330.84
8.1.280.0060.01925.92
8.1.270.0030.00722.05
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0080.00319.54
8.1.230.0040.00817.76
8.1.220.0100.00017.76
8.1.210.0000.00818.77
8.1.200.0050.00517.47
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0000.00817.62
8.1.160.0080.00817.62
8.1.150.0130.00417.62
8.1.140.0120.00417.62
8.1.130.0150.00017.62
8.1.120.0130.00317.62
8.1.110.0110.00717.62
8.1.100.0120.00417.62
8.1.90.0170.00017.62
8.1.80.0150.00317.62
8.1.70.0150.00317.62
8.1.60.0060.01117.62
8.1.50.0140.00317.62
8.1.40.0110.00817.62
8.1.30.0100.00717.62
8.1.20.0110.00717.63
8.1.10.0180.00017.62
8.1.00.0150.00417.62
8.0.300.0080.00018.77
8.0.290.0030.00616.75
8.0.280.0150.00017.62
8.0.270.0160.00017.62
8.0.260.0060.01017.62
8.0.250.0080.00817.62
8.0.240.0080.00817.62
8.0.230.0170.00017.62
8.0.220.0170.00017.62
8.0.210.0170.00017.62
8.0.200.0120.00417.62
8.0.190.0160.00017.62
8.0.180.0100.00717.62
8.0.170.0100.00517.62
8.0.160.0130.00317.62
8.0.150.0180.00017.62
8.0.140.0100.00617.62
8.0.130.0110.00617.62
8.0.120.0160.00017.62
8.0.110.0090.00917.62
8.0.100.0140.00317.62
8.0.90.0110.00517.62
8.0.80.0160.00017.62
8.0.70.0170.00017.62
8.0.60.0060.01117.62
8.0.50.0150.00317.62
8.0.30.0160.00017.62
8.0.20.0120.00417.62
8.0.10.0130.00317.62
7.3.330.0240.00317.15

preferences:
27.31 ms | 403 KiB | 5 Q