3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['1','2','3','cat',4,'prinsha']; print_r ($array[0])."\n"; print_r($array[]='jangam');

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.0140.01016.38
8.3.50.0040.01416.49
8.3.40.0140.00718.85
8.3.30.0040.01118.59
8.3.20.0050.00320.07
8.3.10.0080.00021.73
8.3.00.0040.00422.11
8.2.180.0160.00616.74
8.2.170.0000.01522.96
8.2.160.0100.00319.13
8.2.150.0050.00324.18
8.2.140.0000.00724.66
8.2.130.0040.00419.22
8.2.120.0080.00026.35
8.2.110.0060.00322.11
8.2.100.0120.00017.78
8.2.90.0000.00819.23
8.2.80.0030.00517.97
8.2.70.0030.00517.50
8.2.60.0000.00817.93
8.2.50.0040.00418.10
8.2.40.0000.00720.36
8.2.30.0050.00320.92
8.2.20.0040.00417.93
8.2.10.0040.00417.99
8.2.00.0000.00717.90
8.1.280.0090.00625.92
8.1.270.0040.00422.02
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0000.00922.73
8.1.230.0040.00717.64
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0070.00417.35
8.1.190.0000.00917.23
8.1.180.0050.00318.10
8.1.170.0000.00820.49
8.1.160.0050.00318.91
8.1.150.0040.00420.66
8.1.140.0070.00019.47
8.1.130.0030.00318.88
8.1.120.0040.00717.37
8.1.110.0070.00017.33
8.1.100.0000.00817.42
8.1.90.0040.00417.35
8.1.80.0040.00417.39
8.1.70.0070.00017.45
8.1.60.0030.00517.46
8.1.50.0040.00417.57
8.1.40.0000.00717.42
8.1.30.0040.00417.53
8.1.20.0060.00617.62
8.1.10.0040.00417.61
8.1.00.0050.00317.56
8.0.300.0050.00218.77
8.0.290.0060.00316.75
8.0.280.0070.00018.35
8.0.270.0040.00417.26
8.0.260.0030.00316.76
8.0.250.0030.00316.97
8.0.240.0040.00416.97
8.0.230.0030.00316.93
8.0.220.0040.00416.87
8.0.210.0000.00716.80
8.0.200.0000.00716.93
8.0.190.0090.00016.84
8.0.180.0030.00716.92
8.0.170.0030.00316.94
8.0.160.0030.00316.92
8.0.150.0040.00416.79
8.0.140.0040.00416.86
8.0.130.0060.00013.35
8.0.120.0050.00316.91
8.0.110.0030.00516.88
8.0.100.0030.00516.73
8.0.90.0040.00416.95
8.0.80.0120.01216.82
8.0.70.0040.00416.94
8.0.60.0000.00716.66
8.0.50.0000.00716.64
8.0.30.0080.01216.87
8.0.20.0120.00717.40
8.0.10.0030.00516.88
8.0.00.0050.01116.58
7.4.330.0050.00015.55
7.4.320.0030.00316.57
7.4.300.0060.00016.34
7.4.290.0050.00316.55
7.4.280.0030.00516.42
7.4.270.0030.00316.54
7.4.260.0070.00016.53
7.4.250.0020.00516.43
7.4.240.0000.00716.54
7.4.230.0040.00416.64
7.4.220.0060.01216.55
7.4.210.0070.00716.47
7.4.200.0000.00716.24
7.4.160.0090.00716.46
7.4.150.0150.00317.40
7.4.140.0090.01117.86
7.4.130.0130.00716.53
7.4.120.0120.01216.35
7.4.110.0030.01316.63
7.4.100.0000.01716.46
7.4.90.0080.00816.52
7.4.80.0140.00619.39
7.4.70.0090.00616.56
7.4.60.0080.00816.48
7.4.50.0030.01216.21
7.4.40.0090.00616.44
7.4.30.0110.00716.36
7.4.00.0070.01015.02
7.3.330.0000.00512.98
7.3.320.0050.00013.16
7.3.310.0000.00716.26
7.3.300.0000.00616.25
7.3.290.0100.00616.20
7.3.280.0070.00816.20
7.3.270.0180.00017.40
7.3.260.0120.00516.32
7.3.250.0100.00716.34
7.3.240.0060.01316.38
7.3.230.0070.01016.29
7.3.210.0150.00616.25
7.3.200.0100.00716.55
7.3.190.0130.00316.43
7.3.180.0100.00616.23
7.3.170.0060.01016.39
7.3.160.0050.01416.23
7.3.120.0080.00814.60
7.3.110.0070.01114.57
7.3.100.0040.01114.89
7.3.90.0060.01614.74
7.3.80.0040.00714.64
7.3.70.0040.00714.63
7.3.60.0030.00614.87
7.3.50.0120.00314.64
7.3.40.0000.01214.68
7.3.30.0070.00714.53
7.3.20.0030.00916.39
7.3.10.0120.00016.57
7.3.00.0030.01016.28
7.2.330.0080.01316.59
7.2.320.0120.00616.54
7.2.310.0090.01216.43
7.2.300.0030.01316.57
7.2.290.0160.00816.25
7.2.240.0030.01315.10
7.2.230.0140.00414.90
7.2.220.0090.00614.67
7.2.210.0090.00614.73
7.2.200.0040.00715.01
7.2.190.0090.00614.98
7.2.180.0000.00915.09
7.2.170.0130.00315.09
7.2.160.0030.00914.94
7.2.150.0120.00016.73
7.2.140.0040.01116.69
7.2.130.0000.01416.45
7.2.120.0100.00716.89
7.2.110.0030.00916.66
7.2.100.0070.01016.93
7.2.90.0000.01816.97
7.2.80.0080.00416.91
7.2.70.0030.00616.91
7.2.60.0080.00316.72
7.2.50.0040.01116.84
7.2.40.0040.01116.96
7.2.30.0040.01116.97
7.2.20.0060.00316.95
7.2.10.0050.00516.95
7.2.00.0070.00717.92
7.1.330.0060.01215.66
7.1.320.0060.00915.55
7.1.310.0040.01115.68
7.1.300.0060.00915.66
7.1.290.0040.01115.83
7.1.280.0060.00315.44
7.1.270.0000.01115.77
7.1.260.0040.00415.82
7.1.250.0000.01415.96
7.1.200.0130.00615.73
7.1.100.0070.00417.91
7.1.70.0120.00316.76
7.1.60.0160.01334.84
7.1.50.0130.01634.66
7.1.40.0250.00434.36
7.1.30.0260.01034.50
7.1.20.0190.01634.40
7.1.10.0090.00316.45
7.1.00.0070.01016.68
7.0.200.0030.00916.85
7.0.190.0000.01216.73
7.0.180.0070.00716.16
7.0.170.0060.00616.15
7.0.160.0030.01316.30
7.0.150.0080.00816.30
7.0.140.0120.00616.34
7.0.130.0070.00716.46
7.0.120.0080.00616.40
7.0.110.0080.00416.22
7.0.100.0410.00916.44
7.0.90.0070.00516.48
7.0.80.0070.00716.51
7.0.70.0070.00716.20
7.0.60.0080.00416.15
7.0.50.0040.01216.48
7.0.40.0030.01016.43
7.0.30.0070.00716.57
7.0.20.0090.00316.59
7.0.10.0000.01416.59
7.0.00.0430.00716.43

preferences:
80.25 ms | 401 KiB | 5 Q