3v4l.org

run code in 300+ PHP versions simultaneously
<?php $defaultOptions = array( 'listClass' => 'default', 'test' => 'test' ); $options = array( 'listClass' => 'new', 'id' => '1' ); $options = $options + $defaultOptions; print_r($options);

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.0100.00716.63
8.3.50.0130.00722.91
8.3.40.0170.00318.58
8.3.30.0110.00418.79
8.3.20.0070.00020.17
8.3.10.0000.00823.43
8.3.00.0040.00419.00
8.2.180.0100.01018.29
8.2.170.0120.00322.96
8.2.160.0140.00020.52
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00319.83
8.2.110.0000.01021.96
8.2.100.0100.00717.91
8.2.90.0030.00717.63
8.2.80.0070.00417.97
8.2.70.0060.00317.93
8.2.60.0080.00317.80
8.2.50.0040.00418.10
8.2.40.0040.00420.65
8.2.30.0050.00318.04
8.2.20.0080.00017.61
8.2.10.0030.00618.00
8.2.00.0070.00017.79
8.1.280.0120.00925.92
8.1.270.0000.00823.80
8.1.260.0000.00826.35
8.1.250.0030.00528.09
8.1.240.0060.00323.74
8.1.230.0000.01019.09
8.1.220.0000.00817.74
8.1.210.0000.00918.77
8.1.200.0120.00317.22
8.1.190.0080.00017.23
8.1.180.0030.00518.10
8.1.170.0080.00018.37
8.1.160.0040.00422.04
8.1.150.0000.00718.81
8.1.140.0070.00017.43
8.1.130.0000.00817.79
8.1.120.0050.00317.44
8.1.110.0000.00717.29
8.1.100.0000.00717.38
8.1.90.0000.00717.27
8.1.80.0040.00417.27
8.1.70.0030.00317.32
8.1.60.0030.00517.36
8.1.50.0050.00317.47
8.1.40.0050.00217.42
8.1.30.0000.00817.59
8.1.20.0000.00717.47
8.1.10.0000.00917.30
8.1.00.0000.00717.33
8.0.300.0040.00419.53
8.0.290.0070.00316.75
8.0.280.0030.00318.35
8.0.270.0040.00417.18
8.0.260.0030.00317.21
8.0.250.0030.00316.80
8.0.240.0070.00016.91
8.0.230.0050.00216.84
8.0.220.0030.00316.75
8.0.210.0000.00716.86
8.0.200.0040.00416.98
8.0.190.0050.00316.97
8.0.180.0070.00016.95
8.0.170.0000.00916.88
8.0.160.0040.00416.79
8.0.150.0070.00016.80
8.0.140.0000.00816.80
8.0.130.0050.00013.30
8.0.120.0040.00416.84
8.0.110.0070.00016.81
8.0.100.0070.00016.74
8.0.90.0000.00716.76
8.0.80.0060.00916.83
8.0.70.0050.00216.88
8.0.60.0090.00016.87
8.0.50.0000.00716.76
8.0.30.0140.00816.98
8.0.20.0160.01017.40
8.0.10.0040.00416.99
8.0.00.0070.01116.70
7.4.330.0060.00015.02
7.4.320.0000.00616.41
7.4.300.0030.00316.54
7.4.290.0030.00316.41
7.4.280.0040.00416.33
7.4.270.0070.00016.46
7.4.260.0030.00316.55
7.4.250.0040.00416.48
7.4.240.0050.00216.48
7.4.230.0000.00616.52
7.4.220.0070.01016.54
7.4.210.0070.00716.62
7.4.200.0030.00316.52
7.4.160.0100.01016.29
7.4.150.0110.00617.40
7.4.140.0090.01017.86
7.4.130.0070.00916.32
7.4.120.0040.01416.35
7.4.110.0110.00616.39
7.4.100.0130.00916.44
7.4.90.0040.01516.52
7.4.80.0130.00419.39
7.4.70.0090.00916.51
7.4.60.0080.00816.26
7.4.50.0080.00016.57
7.4.40.0130.00616.33
7.4.30.0000.01616.31
7.4.00.0090.00614.49
7.3.330.0000.00613.07
7.3.320.0000.00513.17
7.3.310.0030.00416.28
7.3.300.0000.00716.12
7.3.290.0130.00716.20
7.3.280.0070.00916.20
7.3.270.0110.01117.40
7.3.260.0100.00716.41
7.3.250.0130.00416.39
7.3.240.0030.01316.39
7.3.230.0090.00816.39
7.3.210.0140.00416.15
7.3.200.0130.01019.39
7.3.190.0100.01316.39
7.3.180.0030.01416.42
7.3.170.0260.02316.53
7.3.160.0090.00916.20
7.2.330.0060.01316.40
7.2.320.0030.01416.59
7.2.310.0090.01616.23
7.2.300.0100.00616.60
7.2.290.0110.00716.55
7.1.70.0080.00617.14
7.1.60.0090.00319.46
7.1.50.0270.01034.54
7.1.00.0030.07722.57
7.0.200.0030.00516.67
7.0.140.0070.07021.99
7.0.60.0170.07319.77
7.0.50.0070.04017.80
7.0.40.0030.04320.21
7.0.30.0370.04720.01
7.0.20.0270.08020.33
7.0.10.0100.04020.09
7.0.00.0130.08320.11
5.6.280.0030.07320.89
5.6.210.0030.04020.75
5.6.200.0170.07318.13
5.6.190.0130.03720.67
5.6.180.0270.08320.57
5.6.170.0630.05720.49
5.6.160.0030.08720.49
5.6.150.0030.04018.18
5.6.140.0070.04018.16
5.6.130.0100.04018.21
5.6.120.0000.05021.13
5.6.110.0070.04021.10
5.6.100.0030.05021.02
5.6.90.0070.03721.00
5.6.80.0130.07320.52
5.6.70.4170.04720.52
5.5.350.0130.05020.41
5.5.340.0070.08018.02
5.5.330.0030.09020.19
5.5.320.0000.09020.27
5.5.310.0400.05720.13
5.5.300.0070.08317.88
5.5.290.0070.08017.98
5.5.280.0070.08720.64
5.5.270.0070.08320.78
5.5.260.0030.08720.79
5.5.250.0070.09020.70
5.5.240.0270.06320.02
5.4.450.0400.04719.54
5.4.440.0200.05319.13
5.4.430.1030.02719.41
5.4.420.0170.03719.41
5.4.410.0100.04719.10
5.4.400.0170.02719.09
5.4.390.0230.03018.78
5.4.380.0370.05318.67
5.4.370.0400.05318.68
5.4.360.0430.06018.72
5.4.350.0400.05018.67
5.4.340.0330.04718.66
5.4.320.0080.03612.45
5.4.310.0020.04812.45
5.4.300.0050.03712.45
5.4.290.0070.03912.45
5.4.280.0070.03512.35
5.4.270.0100.03912.34
5.4.260.0050.04812.34
5.4.250.0080.04112.35
5.4.240.0090.03712.34
5.4.230.0030.04412.34
5.4.220.0080.03612.34
5.4.210.0060.03612.34
5.4.200.0080.04212.34
5.4.190.0040.05112.33
5.4.180.0050.04312.34
5.4.170.0050.03812.34
5.4.160.0090.04612.34
5.4.150.0130.04712.34
5.4.140.0100.04212.02
5.4.130.0080.03412.01
5.4.120.0050.04011.97
5.4.110.0030.03911.96
5.4.100.0080.04311.96
5.4.90.0060.03911.96
5.4.80.0040.03911.96
5.4.70.0050.03911.96
5.4.60.0060.04411.96
5.4.50.0080.03611.96
5.4.40.0060.03611.95
5.4.30.0080.04011.95
5.4.20.0060.04111.95
5.4.10.0050.04611.95
5.4.00.0090.03411.43
5.3.290.0090.04812.80
5.3.280.0100.04112.71
5.3.270.0070.03812.73
5.3.260.0050.03912.71
5.3.250.0100.03512.72
5.3.240.0060.03712.72
5.3.230.0090.04012.71
5.3.220.0100.04112.68
5.3.210.0120.04312.68
5.3.200.0100.04412.68
5.3.190.0100.04212.68
5.3.180.0050.03912.67
5.3.170.0080.03412.67
5.3.160.0050.03812.68
5.3.150.0070.03712.68
5.3.140.0080.03512.66
5.3.130.0070.03812.66
5.3.120.0070.03912.66
5.3.110.0100.04312.66
5.3.100.0060.04112.12
5.3.90.0050.03812.08
5.3.80.0090.03312.08
5.3.70.0060.03612.08
5.3.60.0070.03512.06
5.3.50.0050.03712.00
5.3.40.0090.03612.00
5.3.30.0060.03611.94
5.3.20.0080.03311.72
5.3.10.0070.03411.69
5.3.00.0080.03411.68
5.2.170.0050.0309.18
5.2.160.0060.0369.18
5.2.150.0050.0319.18
5.2.140.0070.0289.18
5.2.130.0040.0329.14
5.2.120.0070.0309.14
5.2.110.0120.0299.14
5.2.100.0060.0289.14
5.2.90.0080.0289.14
5.2.80.0040.0319.14
5.2.70.0040.0379.14
5.2.60.0080.0279.09
5.2.50.0120.0249.05
5.2.40.0090.0329.04
5.2.30.0080.0359.01
5.2.20.0100.0359.00
5.2.10.0070.0358.92
5.2.00.0050.0318.77
5.1.60.0060.0228.06
5.1.50.0080.0278.06
5.1.40.0050.0238.04
5.1.30.0070.0238.39
5.1.20.0070.0248.41
5.1.10.0050.0258.14
5.1.00.0040.0268.13
5.0.50.0060.0206.61
5.0.40.0020.0226.47
5.0.30.0060.0296.29
5.0.20.0040.0216.26
5.0.10.0030.0216.23
5.0.00.0040.0366.23
4.4.90.0060.0214.78
4.4.80.0060.0184.75
4.4.70.0030.0184.75
4.4.60.0070.0134.75
4.4.50.0060.0164.77
4.4.40.0040.0254.71
4.4.30.0030.0194.76
4.4.20.0030.0214.85
4.4.10.0060.0164.85
4.4.00.0010.0314.75
4.3.110.0030.0164.67
4.3.100.0060.0144.66
4.3.90.0020.0184.63
4.3.80.0030.0254.58
4.3.70.0030.0224.63
4.3.60.0040.0134.63
4.3.50.0030.0224.63
4.3.40.0010.0264.54
4.3.30.0020.0183.29
4.3.20.0020.0163.26
4.3.10.0040.0143.22
4.3.00.0030.01314.87

preferences:
44.37 ms | 401 KiB | 5 Q