3v4l.org

run code in 300+ PHP versions simultaneously
<?php $questanswer = 'happy all'; $wlist = array( array (4), array ('myself', 'labor', 'fresh', 'dollars', 'rose', 'quantity', 'mass', 'practices', 'therapy') ); $searchindex = 1; //convert object to array $convert = (array)$wlist; //now add the answer to it $convert[$searchindex][] = $questanswer; print_r($convert);

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.70.0170.00318.30
8.3.60.0140.00418.41
8.3.50.0070.01021.97
8.3.40.0170.00318.75
8.3.30.0150.00018.68
8.3.20.0040.00419.35
8.3.10.0040.00423.70
8.3.00.0040.00420.89
8.2.180.0100.01016.38
8.2.170.0120.00322.96
8.2.160.0070.00719.16
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00420.52
8.2.120.0060.00326.35
8.2.110.0030.00620.52
8.2.100.0070.00417.93
8.2.90.0000.00819.11
8.2.80.0040.00417.97
8.2.70.0050.00317.50
8.2.60.0000.00817.93
8.2.50.0040.00418.10
8.2.40.0000.00820.61
8.2.30.0040.00419.15
8.2.20.0000.00817.67
8.2.10.0040.00418.04
8.2.00.0040.00418.10
8.1.280.0110.00625.92
8.1.270.0000.00723.96
8.1.260.0060.00328.09
8.1.250.0090.00028.09
8.1.240.0060.00322.00
8.1.230.0040.00717.83
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0050.00317.23
8.1.180.0030.00618.10
8.1.170.0030.00618.66
8.1.160.0030.00619.05
8.1.150.0000.00818.76
8.1.140.0080.00019.49
8.1.130.0030.00317.57
8.1.120.0050.00217.47
8.1.110.0040.00417.39
8.1.100.0070.00017.40
8.1.90.0000.00817.41
8.1.80.0030.00317.45
8.1.70.0040.00417.43
8.1.60.0000.00817.47
8.1.50.0090.00017.55
8.1.40.0080.00017.50
8.1.30.0030.00617.63
8.1.20.0000.00817.64
8.1.10.0030.00517.33
8.1.00.0040.00417.22
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00818.44
8.0.270.0030.00317.17
8.0.260.0030.00517.19
8.0.250.0000.00616.93
8.0.240.0000.00716.90
8.0.230.0000.00816.79
8.0.220.0000.00716.73
8.0.210.0070.00016.82
8.0.200.0030.00316.89
8.0.190.0040.00416.78
8.0.180.0040.00416.91
8.0.170.0040.00416.84
8.0.160.0040.00416.80
8.0.150.0020.00516.73
8.0.140.0030.00916.85
8.0.130.0030.00313.29
8.0.120.0000.00816.70
8.0.110.0040.00416.84
8.0.100.0070.00016.87
8.0.90.0040.00416.82
8.0.80.0100.00716.81
8.0.70.0020.00516.77
8.0.60.0030.00516.69
8.0.50.0000.00716.71
8.0.30.0090.01017.09
8.0.20.0210.01217.40
8.0.10.0040.00416.91
8.0.00.0160.00516.85
7.4.330.0000.00515.08
7.4.320.0030.00316.49
7.4.300.0060.00016.51
7.4.290.0000.00816.60
7.4.280.0000.00816.51
7.4.270.0030.00316.58
7.4.260.0030.00316.48
7.4.250.0080.00016.57
7.4.240.0040.00416.43
7.4.230.0070.00016.39
7.4.220.0120.00316.57
7.4.210.0040.01116.57
7.4.200.0040.00416.32
7.4.160.0080.00816.68
7.4.150.0160.00617.40
7.4.140.0150.00517.86
7.4.130.0100.00716.43
7.4.120.0040.01316.59
7.4.110.0140.00316.56
7.4.100.0060.01016.56
7.4.90.0100.00716.54
7.4.80.0040.01719.39
7.4.70.0030.01216.66
7.4.60.0030.01316.53
7.4.50.0070.00716.33
7.4.40.0100.00716.40
7.4.30.0130.00316.56
7.4.00.0090.00514.89
7.3.330.0000.00513.17
7.3.320.0000.00613.16
7.3.310.0030.00316.37
7.3.300.0030.00316.29
7.3.290.0060.00816.25
7.3.280.0070.01016.28
7.3.270.0000.01717.40
7.3.260.0060.01216.22
7.3.250.0100.00716.38
7.3.240.0090.00816.31
7.3.230.0090.00916.47
7.3.210.0040.01316.46
7.3.200.0040.01216.62
7.3.190.0060.00916.23
7.3.180.0120.00316.39
7.3.170.0110.00416.54
7.3.160.0070.01016.38
7.3.120.0030.01515.03
7.3.110.0100.00714.58
7.3.100.0040.01114.73
7.3.90.0060.00314.99
7.3.80.0060.00914.75
7.3.70.0070.00314.79
7.3.60.0060.00314.77
7.3.50.0140.00014.90
7.3.40.0060.00314.68
7.3.30.0070.00414.69
7.3.20.0000.01516.32
7.3.10.0120.00416.63
7.3.00.0080.00416.55
7.2.330.0080.01216.23
7.2.320.0060.01016.77
7.2.310.0090.00916.30
7.2.300.0000.01716.50
7.2.290.0100.00616.59
7.2.250.0070.01114.98
7.2.240.0170.00314.81
7.2.230.0070.01014.85
7.2.220.0040.00815.15
7.2.210.0040.00414.59
7.2.200.0070.00314.68
7.2.190.0080.00815.00
7.2.180.0000.01014.73
7.2.170.0030.00714.92
7.2.60.0060.00616.91
7.2.00.0000.01219.34
7.1.330.0000.01415.84
7.1.320.0040.00715.95
7.1.310.0000.01115.71
7.1.300.0080.00415.73
7.1.290.0030.01315.61
7.1.280.0070.00415.82
7.1.270.0090.00615.61
7.1.260.0000.01015.72
7.1.200.0090.00615.53
7.1.100.0060.00918.19
7.1.70.0040.00417.18
7.1.60.0040.01919.47
7.1.00.0000.08022.27
7.0.200.0140.00714.92
7.0.70.1730.06019.82
7.0.60.1670.07020.08
7.0.50.1270.06020.23
7.0.40.1430.05320.36
7.0.30.1570.07320.36
7.0.20.1530.06320.28
7.0.10.1400.05020.27
7.0.00.1370.06020.23
5.6.280.0070.07021.12
5.6.220.1300.07720.67
5.6.210.1330.05320.46
5.6.200.1000.05321.09
5.6.190.0900.06321.09
5.6.180.0900.07021.19
5.6.170.1100.07321.14
5.6.160.1130.06721.06
5.6.150.1130.06721.09
5.6.140.1000.05321.13
5.6.130.1030.06721.16
5.6.120.0130.05721.11
5.6.110.0400.06721.06
5.6.100.1230.05321.02
5.6.90.0930.06720.99
5.6.80.0900.06320.44
5.6.70.1230.05320.49
5.6.60.1030.06020.32
5.6.50.0930.06320.46
5.6.40.0970.05720.48
5.6.30.1070.06320.47
5.6.20.1070.06720.46
5.6.10.0870.06320.43
5.6.00.0270.06320.44
5.5.360.1400.07020.43
5.5.350.1370.07720.45
5.5.340.0900.06320.84
5.5.330.1030.05720.93
5.5.320.1170.06720.90
5.5.310.1230.08320.82
5.5.300.1330.05320.68
5.5.290.1300.05320.92
5.5.280.0270.04320.88
5.5.270.1030.06020.91
5.5.260.1200.05320.76
5.5.250.1230.07320.75
5.5.240.1000.05320.34
5.5.230.1100.06020.20
5.5.220.1070.06020.28
5.5.210.0930.05320.34
5.5.200.1130.05320.14
5.5.190.1230.07320.23
5.5.180.1270.07020.09
5.5.160.0130.06020.16
5.5.150.0100.06020.11
5.5.140.0830.05720.18
5.5.130.0970.05320.00
5.5.120.0830.06020.26
5.5.110.1030.04720.27
5.5.100.1000.05320.15
5.5.90.1000.07020.12
5.5.80.1230.06320.01
5.5.70.0800.06720.16
5.5.60.1100.05020.11
5.5.50.1130.05320.14
5.5.40.1030.06320.11
5.5.30.0930.05720.16
5.5.20.0870.06020.16
5.5.10.0930.06320.14
5.5.00.1070.05320.17

preferences:
54.47 ms | 401 KiB | 5 Q