3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['1','2','3','cat',4,'prinsha']; print_r ($array[0]); 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.0070.01416.63
8.3.50.0170.00316.47
8.3.40.0040.01119.02
8.3.30.0140.00018.72
8.3.20.0090.00020.21
8.3.10.0050.00321.75
8.3.00.0040.00421.79
8.2.180.0100.00716.32
8.2.170.0110.00422.96
8.2.160.0090.00919.08
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0030.00521.04
8.2.120.0030.00626.35
8.2.110.0060.00320.35
8.2.100.0100.00317.78
8.2.90.0030.00519.08
8.2.80.0060.00317.97
8.2.70.0090.00017.50
8.2.60.0040.00418.05
8.2.50.0040.00418.10
8.2.40.0000.00820.37
8.2.30.0040.00421.04
8.2.20.0040.00417.96
8.2.10.0040.00417.88
8.2.00.0040.00417.99
8.1.280.0030.01425.92
8.1.270.0040.00422.14
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00423.92
8.1.230.0070.00417.89
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0030.00517.22
8.1.180.0000.00718.10
8.1.170.0000.00718.62
8.1.160.0000.00719.00
8.1.150.0000.00720.67
8.1.140.0040.00419.45
8.1.130.0040.00418.69
8.1.120.0030.00717.41
8.1.110.0040.00417.23
8.1.100.0050.00517.36
8.1.90.0040.00417.24
8.1.80.0000.00717.27
8.1.70.0070.00017.30
8.1.60.0000.00817.44
8.1.50.0040.00417.46
8.1.40.0050.00317.41
8.1.30.0030.00617.40
8.1.20.0080.00617.54
8.1.10.0040.00417.57
8.1.00.0000.00817.50
8.0.300.0000.00718.77
8.0.290.0000.00716.63
8.0.280.0030.00318.41
8.0.270.0000.00717.23
8.0.260.0040.00416.66
8.0.250.0070.00016.93
8.0.240.0030.00616.78
8.0.230.0000.00716.74
8.0.220.0040.00416.86
8.0.210.0030.00316.73
8.0.200.0030.00316.87
8.0.190.0000.00716.79
8.0.180.0000.00816.73
8.0.170.0070.00016.90
8.0.160.0000.00816.89
8.0.150.0000.00816.74
8.0.140.0000.00716.79
8.0.130.0050.00013.25
8.0.120.0050.00316.74
8.0.110.0080.00016.85
8.0.100.0000.00716.84
8.0.90.0040.00416.79
8.0.80.0060.00916.88
8.0.70.0050.00216.69
8.0.60.0040.00416.89
8.0.50.0050.00216.84
8.0.30.0120.00816.92
8.0.20.0140.00617.40
8.0.10.0040.00416.73
8.0.00.0070.01116.77
7.4.330.0050.00015.55
7.4.320.0060.00016.57
7.4.300.0030.00316.57
7.4.290.0030.00616.45
7.4.280.0090.00016.42
7.4.270.0000.00616.44
7.4.260.0000.00716.34
7.4.250.0070.00016.50
7.4.240.0000.00716.33
7.4.230.0040.00416.34
7.4.220.0150.00316.27
7.4.210.0120.00916.53
7.4.200.0000.00716.43
7.4.160.0070.01016.34
7.4.150.0110.00617.40
7.4.140.0080.01117.86
7.4.130.0180.00316.57
7.4.120.0070.01016.35
7.4.110.0140.00416.41
7.4.100.0090.00816.49
7.4.90.0100.00716.40
7.4.80.0120.00919.39
7.4.70.0060.01016.25
7.4.60.0090.00616.19
7.4.50.0110.00716.43
7.4.40.0120.00416.41
7.4.30.0140.00416.47
7.4.00.0090.00614.74
7.3.330.0030.00313.09
7.3.320.0050.00013.13
7.3.310.0040.00416.30
7.3.300.0030.00316.24
7.3.290.0030.01016.23
7.3.280.0090.00616.23
7.3.270.0070.01117.40
7.3.260.0100.00816.30
7.3.250.0120.00816.20
7.3.240.0120.00716.37
7.3.230.0170.00016.36
7.3.210.0170.00016.52
7.3.200.0070.01016.39
7.3.190.0030.01316.32
7.3.180.0030.01316.36
7.3.170.0060.00916.54
7.3.160.0100.00716.31
7.2.330.0070.01116.61
7.2.320.0080.01216.52
7.2.310.0090.00916.45
7.2.300.0060.00916.61
7.2.290.0040.01416.50
7.2.60.0100.00316.59
7.2.00.0030.00919.31
7.1.200.0060.00615.53
7.1.100.0030.00717.92
7.1.70.0060.00616.72
7.1.60.0210.00734.91
7.1.50.0220.00634.84
7.1.40.0240.01034.35
7.1.30.0160.01634.38
7.1.20.0190.01334.54
7.1.10.0060.00816.59
7.1.00.0030.01016.56
7.0.200.0030.00916.67
7.0.190.0090.00916.71
7.0.180.0050.01116.45
7.0.170.0040.01216.18
7.0.160.0060.00816.31
7.0.150.0090.00916.14
7.0.140.0060.00616.22
7.0.130.0090.00616.42
7.0.120.0000.01316.35
7.0.110.0120.00016.36
7.0.100.0060.00616.27
7.0.90.0030.00916.36
7.0.80.0080.00616.27
7.0.70.0060.00616.36
7.0.60.0000.01316.06
7.0.50.0030.01016.35
7.0.40.0060.00616.29
7.0.30.0030.01016.42
7.0.20.0040.00816.63
7.0.10.0060.00616.61
7.0.00.0000.01216.51

preferences:
41.39 ms | 400 KiB | 5 Q