3v4l.org

run code in 300+ PHP versions simultaneously
<?php // $array = ['Prinsha', 'Jypsy']; // echo $array[0]; // index is 0 // foreach($model as $key => $data) { // } // $array[1] = 'data'; // $array = ['model' => $model]; // $array = array(); // date('Y-m-d', strtotime("+3 days", $time)); $array = [1, 2, 3, 4]; echo $array[0] . "\n"; $associative = ['a' => 'one', 'apple' => '3v4l', '1337' => 'PHP sucks']; echo $associative['a'] . "\n"; echo $associative['apple'] . "\n"; echo $associative[1337] . "\n"; $numbers = [1,2,3,4]; $numbers[] = 5; echo $number[0] . "\n"; //1 echo $number[4] . "\n"; // $favColors = array(); $favColors[] = 'BlanchedAlmond'; $favColors[] = 'CadetBlue'; $favColors[] = 'BurlyWood'; $favColors[] = 'DarkOliveGreen'; $favColors[] = 'HotPink'; $favColors[] = 'Papayawhip'; echo $favColors[0];

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.0090.00616.50
8.3.50.0110.00416.58
8.3.40.0110.01118.96
8.3.30.0140.00018.63
8.3.20.0000.00720.39
8.3.10.0100.00021.76
8.3.00.0050.00322.09
8.2.180.0100.01016.63
8.2.170.0040.01122.96
8.2.160.0030.01019.21
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0050.00221.00
8.2.120.0030.00626.35
8.2.110.0100.00019.33
8.2.100.0080.00417.84
8.2.90.0040.00419.35
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0040.00417.93
8.2.50.0080.00018.10
8.2.40.0000.00720.61
8.2.30.0000.00719.40
8.2.20.0030.00718.13
8.2.10.0000.00817.89
8.2.00.0000.00817.89
8.1.280.0070.01025.92
8.1.270.0000.00822.19
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00422.62
8.1.230.0000.01119.16
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00617.23
8.1.190.0080.00017.23
8.1.180.0000.00918.10
8.1.170.0040.00418.54
8.1.160.0070.00019.08
8.1.150.0040.00418.91
8.1.140.0000.00819.61
8.1.130.0040.00418.89
8.1.120.0030.00317.49
8.1.110.0060.00317.34
8.1.100.0080.00017.48
8.1.90.0040.00417.38
8.1.80.0000.00717.47
8.1.70.0000.00717.52
8.1.60.0040.00417.63
8.1.50.0000.00817.59
8.1.40.0060.00317.40
8.1.30.0000.00717.67
8.1.20.0030.00517.65
8.1.10.0000.00817.59
8.1.00.0000.00717.59
8.0.300.0080.00019.78
8.0.290.0040.00416.75
8.0.280.0000.00718.41
8.0.270.0030.00317.20
8.0.260.0000.00716.82
8.0.250.0040.00416.95
8.0.240.0100.00017.04
8.0.230.0070.00017.00
8.0.220.0000.00716.89
8.0.210.0070.00016.98
8.0.200.0000.00717.02
8.0.190.0060.00317.07
8.0.180.0000.00717.08
8.0.170.0000.00716.91
8.0.160.0020.00517.00
8.0.150.0040.00416.77
8.0.140.0000.00716.95
8.0.130.0070.00013.41
8.0.120.0030.00716.95
8.0.110.0070.00017.01
8.0.100.0040.00416.77
8.0.90.0000.00716.94
8.0.80.0090.00616.95
8.0.70.0050.00216.96
8.0.60.0040.00416.83
8.0.50.0030.00516.87
8.0.30.0100.00917.10
8.0.20.0060.01217.40
8.0.10.0050.00216.92
8.0.00.0110.00816.96
7.4.330.0050.00015.55
7.4.320.0000.00716.47
7.4.300.0040.00416.41
7.4.290.0030.00316.36
7.4.280.0080.00016.53
7.4.270.0040.00416.61
7.4.260.0040.00416.49
7.4.250.0030.00616.47
7.4.240.0040.00416.48
7.4.230.0050.00216.54
7.4.220.0090.00916.67
7.4.210.0110.00316.52
7.4.200.0070.00016.37
7.4.160.0120.00816.44
7.4.150.0070.01017.40
7.4.140.0090.00917.86
7.4.130.0030.01416.52
7.4.120.0110.01016.57
7.4.110.0140.00316.46
7.4.100.0080.01116.43
7.4.90.0120.00616.55
7.4.80.0090.00919.39
7.4.70.0140.00916.45
7.4.60.0070.01016.49
7.4.50.0060.01016.65
7.4.40.0040.01216.59
7.4.30.0070.01016.44
7.4.00.0000.01414.83
7.3.330.0000.00713.18
7.3.320.0050.00013.20
7.3.310.0030.00616.48
7.3.300.0000.00716.18
7.3.290.0060.01016.25
7.3.280.0070.00916.26
7.3.270.0090.00817.40
7.3.260.0080.00916.29
7.3.250.0100.00816.39
7.3.240.0080.01516.34
7.3.230.0070.01116.44
7.3.210.0080.00816.36
7.3.200.0110.00516.51
7.3.190.0160.00416.38
7.3.180.0030.01716.31
7.3.170.0110.00916.45
7.3.160.0100.01016.38
7.2.330.0090.01116.45
7.2.320.0100.00716.44
7.2.310.0140.01116.59
7.2.300.0030.01316.63
7.2.290.0060.01116.73
7.2.60.0040.01216.84
7.2.00.0070.00719.41
7.1.200.0030.00915.47
7.1.100.0030.01218.18
7.1.70.0000.01717.09
7.1.60.0140.02134.99
7.1.50.0140.02134.76
7.1.40.0170.01034.59
7.1.30.0170.01034.33
7.1.20.0150.01234.59
7.1.10.0060.00616.64
7.1.00.0000.01316.53
7.0.200.0100.00716.76
7.0.190.0030.01316.42
7.0.180.0070.00716.14
7.0.170.0030.00916.12
7.0.160.0000.01516.28
7.0.150.0060.00616.27
7.0.140.0040.00816.18
7.0.130.0030.01016.52
7.0.120.0000.01216.23
7.0.110.0060.00616.22
7.0.100.0030.00916.18
7.0.90.0040.00816.39
7.0.80.0060.00616.46
7.0.70.0070.00716.48
7.0.60.0090.00615.86
7.0.50.0090.00916.40
7.0.40.0030.01016.42
7.0.30.0100.00316.51
7.0.20.0030.01216.57
7.0.10.0030.01216.29
7.0.00.0030.01516.54

preferences:
47.54 ms | 401 KiB | 5 Q