3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['1','2','3','cat',4,'prinsha']; print_r ($array[0]); $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.00716.48
8.3.50.0100.01016.10
8.3.40.0040.01118.67
8.3.30.0110.00418.48
8.3.20.0050.00222.14
8.3.10.0050.00321.69
8.3.00.0070.00021.93
8.2.180.0070.01416.63
8.2.170.0110.00322.96
8.2.160.0070.01019.06
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0030.00619.30
8.2.120.0070.00026.35
8.2.110.0090.00020.35
8.2.100.0060.00617.71
8.2.90.0040.00419.05
8.2.80.0080.00017.97
8.2.70.0030.00617.50
8.2.60.0030.00618.03
8.2.50.0000.00918.10
8.2.40.0000.00720.59
8.2.30.0030.00621.04
8.2.20.0040.00418.05
8.2.10.0040.00417.99
8.2.00.0040.00418.05
8.1.280.0110.00725.92
8.1.270.0040.00422.24
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00423.87
8.1.230.0060.00617.89
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0090.00017.22
8.1.190.0050.00317.22
8.1.180.0050.00318.10
8.1.170.0050.00318.65
8.1.160.0040.00419.01
8.1.150.0040.00420.61
8.1.140.0000.00719.47
8.1.130.0000.00718.82
8.1.120.0090.00017.38
8.1.110.0040.00417.32
8.1.100.0020.00517.38
8.1.90.0040.00317.29
8.1.80.0000.00717.45
8.1.70.0070.00017.39
8.1.60.0040.00417.48
8.1.50.0040.00417.38
8.1.40.0030.00517.48
8.1.30.0060.00317.46
8.1.20.0030.00917.56
8.1.10.0000.00817.52
8.1.00.0040.00417.52
8.0.300.0060.00318.77
8.0.290.0050.00216.58
8.0.280.0050.00318.42
8.0.270.0070.00017.04
8.0.260.0000.00716.67
8.0.250.0030.00316.89
8.0.240.0030.00516.88
8.0.230.0000.00716.88
8.0.220.0060.00016.78
8.0.210.0030.00316.76
8.0.200.0060.00016.93
8.0.190.0080.00016.80
8.0.180.0060.00316.74
8.0.170.0050.00216.84
8.0.160.0030.00516.81
8.0.150.0000.00716.77
8.0.140.0050.00316.77
8.0.130.0030.00313.31
8.0.120.0000.00716.84
8.0.110.0070.00016.72
8.0.100.0030.00516.74
8.0.90.0000.00716.94
8.0.80.0120.00616.89
8.0.70.0040.00416.66
8.0.60.0020.00516.61
8.0.50.0070.00016.80
8.0.30.0080.01017.01
8.0.20.0160.01317.40
8.0.10.0040.00416.91
8.0.00.0180.00316.54
7.4.330.0000.00515.55
7.4.320.0000.00616.44
7.4.300.0030.00316.45
7.4.290.0060.00316.53
7.4.280.0000.00816.33
7.4.270.0030.00316.34
7.4.260.0030.00316.39
7.4.250.0000.00816.45
7.4.240.0030.00316.46
7.4.230.0030.00316.29
7.4.220.0080.00816.61
7.4.210.0040.01016.64
7.4.200.0030.00316.52
7.4.160.0070.01116.45
7.4.150.0140.01017.40
7.4.140.0090.01017.86
7.4.130.0070.01816.59
7.4.120.0070.01116.53
7.4.110.0050.01316.45
7.4.100.0140.00716.46
7.4.90.0060.01016.41
7.4.80.0120.00619.39
7.4.70.0060.00916.52
7.4.60.0120.00316.41
7.4.50.0100.00716.17
7.4.40.0070.01016.38
7.4.30.0130.00316.37
7.4.00.0030.01314.75
7.3.330.0000.00613.20
7.3.320.0050.00013.28
7.3.310.0080.00016.32
7.3.300.0030.00316.21
7.3.290.0100.00316.20
7.3.280.0110.00616.20
7.3.270.0110.01117.40
7.3.260.0090.00816.35
7.3.250.0070.01116.32
7.3.240.0120.00616.44
7.3.230.0090.01316.37
7.3.210.0100.00716.33
7.3.200.0070.01016.36
7.3.190.0150.00616.42
7.3.180.0070.01016.45
7.3.170.0030.01316.14
7.3.160.0130.00316.27
7.2.330.0070.01016.42
7.2.320.0100.01416.57
7.2.310.0120.00916.38
7.2.300.0100.00716.52
7.2.290.0050.01416.45
7.2.60.0070.01016.72
7.2.00.0060.01219.37
7.1.200.0100.00315.77
7.1.100.0000.01117.96
7.1.70.0060.00617.11
7.1.60.0190.00935.01
7.1.50.0180.00934.62
7.1.40.0170.01334.43
7.1.30.0170.01334.42
7.1.20.0210.01434.63
7.1.10.0080.00616.43
7.1.00.0060.00616.54
7.0.200.0060.00616.63
7.0.190.0060.00616.56
7.0.180.0000.01416.29
7.0.170.0030.01016.18
7.0.160.0070.00716.00
7.0.150.0080.00816.25
7.0.140.0090.00316.31
7.0.130.0060.00616.67
7.0.120.0090.00316.36
7.0.110.0030.01016.49
7.0.100.0060.00616.47
7.0.90.0030.01216.16
7.0.80.0000.01416.39
7.0.70.0070.00716.25
7.0.60.0060.00616.09
7.0.50.0040.00916.62
7.0.40.0030.01316.40
7.0.30.0030.00916.44
7.0.20.0030.01216.23
7.0.10.0030.01016.68
7.0.00.0100.00316.46

preferences:
34.42 ms | 400 KiB | 5 Q