3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currencies = [ '840' => [ name => 'USD', demonimator => 100, ], '392' => [ name => 'JPY', demonimator => 1, ], ]; var_dump( array_column($currencies, name) );

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.0190.00316.49
8.3.50.0100.00921.13
8.3.40.0140.00718.84
8.3.30.0150.00018.81
8.3.20.0080.00020.16
8.3.10.0000.00823.44
8.3.00.0080.00021.73
8.2.180.0190.00316.75
8.2.170.0090.00622.96
8.2.160.0030.01320.45
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0040.00421.05
8.2.120.0040.00426.35
8.2.110.0070.00319.27
8.2.100.0060.00617.84
8.2.90.0000.00819.00
8.2.80.0000.00817.97
8.2.70.0030.00517.48
8.2.60.0070.00017.93
8.2.50.0060.00318.10
8.2.40.0040.00422.32
8.2.30.0040.00419.42
8.2.20.0030.00717.64
8.2.10.0050.00218.05
8.2.00.0000.00818.12
8.1.280.0090.00925.92
8.1.270.0110.00722.05
8.1.260.0050.00328.09
8.1.250.0040.00428.09
8.1.240.0100.00723.98
8.1.230.0070.00419.55
8.1.220.0040.00417.78
8.1.210.0030.00618.77
8.1.200.0040.00417.22
8.1.190.0080.00017.22
8.1.180.0040.00418.10
8.1.170.0090.00018.44
8.1.160.0070.00020.66
8.1.150.0080.00018.86
8.1.140.0000.00819.39
8.1.130.0040.00417.30
8.1.120.0000.00817.43
8.1.110.0000.00717.40
8.1.100.0070.00017.28
8.1.90.0000.00717.40
8.1.80.0050.00217.30
8.1.70.0030.00317.34
8.1.60.0040.00717.52
8.1.50.0000.00917.44
8.1.40.0050.00317.39
8.1.30.0030.00517.57
8.1.20.0000.00817.57
8.1.10.0000.00717.40
8.1.00.0070.00017.30
8.0.300.0060.00318.77
8.0.290.0000.00816.73
8.0.280.0030.00318.50
8.0.270.0030.00517.32
8.0.260.0000.00716.86
8.0.250.0000.00617.00
8.0.240.0030.00316.90
8.0.230.0000.00717.02
8.0.220.0080.00017.00
8.0.210.0000.00716.92
8.0.200.0000.00617.01
8.0.190.0040.00416.96
8.0.180.0000.00716.83
8.0.170.0040.00416.88
8.0.160.0030.00616.86
8.0.150.0060.00316.81
8.0.140.0070.00016.82
8.0.130.0030.00313.39
8.0.120.0000.00916.84
8.0.110.0000.00816.88
8.0.100.0080.00016.80
8.0.90.0040.00416.88
8.0.80.0000.01516.94
8.0.70.0040.00416.73
8.0.60.0000.00816.92
8.0.50.0040.00416.83
8.0.30.0090.00917.17
8.0.20.0120.00817.40
8.0.10.0040.00417.01
8.0.00.0110.00816.73
7.4.330.0030.00316.76
7.4.320.0060.00016.41
7.4.300.0040.00416.60
7.4.290.0100.00016.50
7.4.280.0000.00816.52
7.4.270.0000.00716.61
7.4.260.0070.00316.55
7.4.250.0040.00416.47
7.4.240.0040.00416.52
7.4.230.0070.00016.55
7.4.220.0070.01116.67
7.4.210.0080.00916.50
7.4.200.0080.00016.50
7.4.160.0090.00616.48
7.4.150.0030.01317.40
7.4.140.0130.00917.86
7.4.130.0080.01216.58
7.4.120.0150.00316.56
7.4.110.0030.01316.51
7.4.100.0110.00616.43
7.4.90.0050.01116.72
7.4.80.0030.01319.39
7.4.70.0100.01016.38
7.4.60.0080.00816.57
7.4.50.0030.01216.24
7.4.40.0110.00816.59
7.4.30.0110.01416.49
7.4.00.0120.00315.05
7.3.330.0030.00313.06
7.3.320.0050.00013.10
7.3.310.0070.00016.32
7.3.300.0070.00016.29
7.3.290.0030.00316.18
7.3.280.0110.00916.29
7.3.270.0060.01217.40
7.3.260.0130.01016.56
7.3.250.0130.00716.24
7.3.240.0110.00616.39
7.3.230.0100.00716.48
7.3.210.0060.01116.55
7.3.200.0140.00719.39
7.3.190.0060.01016.23
7.3.180.0060.01116.40
7.3.170.0070.01116.27
7.3.160.0090.00616.29
7.3.120.0060.00814.74
7.3.110.0070.00714.65
7.3.100.0090.00614.96
7.3.90.0040.00814.84
7.3.80.0070.00414.82
7.3.70.0150.00014.74
7.3.60.0100.00614.43
7.3.50.0060.00914.77
7.3.40.0180.00014.55
7.3.30.0000.01314.93
7.3.20.0060.00616.68
7.3.10.0070.00416.46
7.3.00.0090.00816.42
7.2.330.0120.00616.31
7.2.320.0120.00616.62
7.2.310.0000.01716.27
7.2.300.0060.01016.30
7.2.290.0060.01016.72
7.2.240.0110.00415.17
7.2.230.0070.00714.94
7.2.220.0100.00715.05
7.2.210.0030.00914.78
7.2.200.0040.01415.03
7.2.190.0110.00414.86
7.2.180.0090.00614.60
7.2.170.0030.01015.05
7.2.160.0030.00715.00
7.2.150.0000.01416.90
7.2.140.0030.01216.70
7.2.130.0070.00716.63
7.2.120.0110.00616.82
7.2.110.0100.00716.49
7.2.100.0080.00716.58
7.2.90.0080.00716.82
7.2.80.0050.00816.90
7.2.70.0060.00816.73
7.2.60.0080.00716.66
7.2.50.0030.01016.84
7.2.40.0050.00816.81
7.2.30.0050.00516.68
7.2.20.0050.00616.84
7.2.10.0050.00916.80
7.2.00.0050.00717.69
7.1.330.0070.00415.82
7.1.320.0000.01115.84
7.1.310.0070.00715.76
7.1.300.0060.00615.81
7.1.290.0030.00915.51
7.1.280.0000.01615.75
7.1.270.0080.00315.69
7.1.260.0040.00815.78
7.1.250.0050.01115.65
7.1.200.0030.01215.70
7.1.100.0030.01018.00
7.1.70.0030.01217.07
7.1.60.0100.01419.40
7.1.50.0110.01116.88
7.1.00.0030.07722.33
7.0.200.0830.00614.79
7.0.60.0270.07321.73
7.0.50.0030.04017.86
7.0.40.0070.08720.09
7.0.30.0300.06320.20
7.0.20.0300.07320.17
7.0.10.0070.09019.99
7.0.00.0170.07720.32
5.6.280.0000.03320.92
5.6.210.0070.08720.50
5.6.200.0030.04018.17
5.6.190.0130.07720.27
5.6.180.0300.07720.33
5.6.170.0370.06720.40
5.6.160.0070.05720.61
5.6.150.0030.04018.08
5.6.140.0070.05018.18
5.6.130.0170.07718.21
5.6.120.0070.04320.97
5.6.110.0030.04321.13
5.6.100.0100.08320.98
5.6.90.0030.04321.13
5.6.80.0100.06720.28
5.5.350.0400.06320.42
5.5.340.0070.08317.95
5.5.330.0070.06320.41
5.5.320.0400.05020.41
5.5.310.0470.06320.12
5.5.300.0070.08017.89
5.5.290.0070.08018.00
5.5.280.0030.04320.87
5.5.270.0070.08320.92
5.5.260.0030.05020.79
5.5.250.0030.08320.61
5.5.240.0170.04720.35

preferences:
51.26 ms | 401 KiB | 5 Q