3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fruits = array( array( 'name' => 'Banana', 'continent' => 'Africa', 'counts' => array( 'standard' => 15, 'advanced' => 20 ) ), array( 'name' => 'Apple', 'continent' => 'Europa', 'counts' => array( 'standard' => 25, 'advanced' => 25 ) ) ); //In Europa, I can find 25 standard Apple. $key = array_keys($fruits[1]['counts'])[0]; echo "In {$fruits[1]['continent']}, I can find {$fruits[1]['counts']['standard']} {$key} {$fruits[1]['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.4.130.0090.01117.91
8.4.120.0140.00620.52
8.4.110.0090.01022.40
8.4.100.0160.00517.63
8.4.90.0140.00718.64
8.4.80.0090.01119.45
8.4.70.0130.00817.80
8.4.60.0090.00618.71
8.4.50.0100.01018.70
8.4.40.0060.00317.46
8.4.30.0160.00317.68
8.4.20.0090.00318.88
8.4.10.0040.00419.51
8.3.260.0120.00716.56
8.3.250.0150.00318.98
8.3.240.0120.00817.12
8.3.230.0090.01016.42
8.3.220.0110.00917.06
8.3.210.0030.00516.68
8.3.200.0060.00316.58
8.3.190.0140.00717.13
8.3.180.0050.00316.56
8.3.170.0170.00020.71
8.3.160.0090.00917.09
8.3.150.0040.01418.89
8.3.140.0090.00916.54
8.3.130.0030.00616.47
8.3.120.0130.00320.45
8.3.110.0090.00016.37
8.3.100.0090.00018.47
8.3.90.0000.00826.77
8.3.80.0060.00316.63
8.3.70.0180.00316.58
8.3.60.0140.00718.30
8.3.50.0080.00618.31
8.3.40.0090.00618.67
8.3.30.0090.00618.50
8.3.20.0140.00418.82
8.3.10.0080.00023.65
8.3.00.0040.00421.79
8.2.290.0100.00720.26
8.2.280.0120.00718.57
8.2.270.0110.00818.96
8.2.260.0040.00418.59
8.2.250.0030.00616.65
8.2.240.0070.01118.29
8.2.230.0110.00720.94
8.2.220.0000.00924.06
8.2.210.0050.00326.77
8.2.200.0030.00618.54
8.2.190.0080.00816.58
8.2.180.0090.00925.92
8.2.170.0070.00718.97
8.2.160.0100.00319.30
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0040.00420.71
8.2.110.0110.00022.29
8.2.100.0040.00817.91
8.2.90.0040.00418.28
8.2.80.0040.00417.97
8.2.70.0090.00017.93
8.2.60.0040.00418.28
8.2.50.0050.00318.10
8.2.40.0070.00019.47
8.2.30.0000.00720.62
8.2.20.0030.00618.11
8.2.10.0040.00418.11
8.2.00.0040.00419.41
8.1.330.0090.00821.82
8.1.320.0120.00616.16
8.1.310.0040.01518.28
8.1.300.0090.00618.68
8.1.290.0060.00330.84
8.1.280.0040.01125.92
8.1.270.0090.00020.64
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00022.05
8.1.230.0000.01122.23
8.1.220.0000.00817.79
8.1.210.0040.00418.91
8.1.200.0000.00817.23
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0040.00418.40
8.1.160.0050.00218.74
8.1.150.0040.00418.81
8.1.140.0000.00720.64
8.1.130.0000.00720.19
8.1.120.0040.00417.40
8.1.110.0040.00417.34
8.1.100.0040.00417.37
8.1.90.0040.00417.29
8.1.80.0030.00417.35
8.1.70.0000.00917.27
8.1.60.0000.00817.46
8.1.50.0040.00417.43
8.1.40.0040.00817.42
8.1.30.0000.00817.47
8.1.20.0040.00417.63
8.1.10.0050.00317.53
8.1.00.0030.00617.53
8.0.300.0000.00719.89
8.0.290.0040.00416.63
8.0.280.0070.00018.36
8.0.270.0000.00716.73
8.0.260.0000.00620.11
8.0.250.0000.00616.89
8.0.240.0000.00616.82
8.0.230.0030.00516.84
8.0.220.0030.00616.81
8.0.210.0000.00716.79
8.0.200.0000.00716.97
8.0.190.0000.00716.96
8.0.180.0060.00316.79
8.0.170.0080.00016.90
8.0.160.0000.00716.89
8.0.150.0050.00316.83
8.0.140.0000.00716.85
8.0.130.0000.00613.24
8.0.120.0040.00416.82
8.0.110.0000.00816.91
8.0.100.0040.00416.98
8.0.90.0000.00716.76
8.0.80.0100.00516.81
8.0.70.0040.00416.81
8.0.60.0030.00617.00
8.0.50.0000.00716.82
8.0.30.0110.00717.05
8.0.20.0130.00917.40
8.0.10.0020.00516.82
8.0.00.0110.00716.64
7.4.330.0000.00515.55
7.4.320.0040.00416.40
7.4.300.0000.00616.46
7.4.290.0030.00316.32
7.4.280.0040.00416.52
7.4.270.0080.00016.43
7.4.260.0030.00316.37
7.4.250.0040.00416.43
7.4.240.0020.00516.59
7.4.230.0030.00316.50
7.4.220.0040.00416.63
7.4.210.0090.00916.47
7.4.200.0000.00716.40
7.4.160.0060.01016.50
7.4.140.0090.01117.86
7.4.130.0040.01316.46
7.4.120.0100.00916.45
7.4.110.0100.00716.29
7.4.100.0030.01316.45
7.4.90.0150.00316.23
7.4.80.0130.00319.39
7.4.70.0060.01216.38
7.4.60.0070.01416.43
7.4.50.0040.00816.16
7.4.40.0070.01716.39
7.4.00.0000.01514.60
7.3.330.0050.00013.08
7.3.320.0030.00312.95
7.3.310.0030.00316.26
7.3.300.0000.00716.18
7.3.290.0000.00716.17
7.3.280.0070.00716.32
7.3.260.0100.00716.41
7.3.240.0100.00916.59
7.3.230.0000.01716.63
7.3.210.0030.01316.44
7.3.200.0070.01016.34
7.3.190.0160.00016.21
7.3.180.0060.01116.49
7.3.170.0120.00916.34
7.3.160.0060.01116.16
7.3.120.0080.00415.01
7.3.110.0030.00914.84
7.3.100.0070.00714.78
7.3.90.0080.00814.85
7.3.80.0060.00915.16
7.3.70.0110.00314.88
7.3.60.0100.00314.70
7.3.50.0060.00614.60
7.3.40.0090.00614.76
7.3.30.0040.00814.90
7.3.20.0000.01516.80
7.3.10.0080.00816.77
7.3.00.0040.01116.70
7.2.330.0090.00916.41
7.2.320.0030.01416.68
7.2.310.0110.00716.39
7.2.300.0120.00316.41
7.2.290.0140.00316.27
7.2.240.0080.00815.01
7.2.230.0090.00615.02
7.2.220.0070.00715.18
7.2.210.0070.00715.20
7.2.200.0120.00315.03
7.2.190.0070.01114.62
7.2.180.0060.00915.16
7.2.170.0090.00915.14
7.2.160.0030.00715.05
7.2.150.0000.01516.98
7.2.140.0000.01616.72
7.2.130.0070.01016.68
7.2.120.0070.01116.71
7.2.110.0120.00316.90
7.2.100.0130.00316.74
7.2.90.2240.00515.69
7.2.80.2090.00515.72
7.2.70.2060.00715.87
7.2.60.1820.01115.72
7.2.50.2510.01115.88
7.2.40.0160.00715.78
7.2.30.0750.00815.89
7.2.20.2860.00715.72
7.2.10.0130.00615.84
7.2.00.0380.00815.78
7.1.330.0000.01115.57
7.1.320.0030.01315.62
7.1.310.0120.00315.85
7.1.300.0000.01615.94
7.1.290.0030.00815.72
7.1.280.0060.00315.40
7.1.270.0060.00915.68
7.1.260.0110.00315.42
7.1.250.0040.00815.71
7.1.210.5610.00313.77
7.1.200.4280.01013.63
7.1.190.4020.01313.63
7.1.180.5730.00913.70
7.1.170.1950.01113.57
7.1.160.0930.01213.86
7.1.150.1000.00613.59
7.1.140.0610.00713.95
7.1.130.0160.00813.55
7.1.120.0900.00713.64
7.1.110.0400.00813.85
7.1.100.2260.00914.04
7.1.90.0890.00913.66
7.1.80.7060.00513.61
7.1.70.1040.00713.71
7.1.60.5960.00931.65
7.1.50.9610.01031.50
7.1.40.2440.01031.58
7.1.30.3620.01231.55
7.1.20.3570.01931.39
7.1.10.1050.01013.34
7.1.00.0500.00613.79

preferences:
34.31 ms | 403 KiB | 5 Q