3v4l.org

run code in 300+ PHP versions simultaneously
<?php $literature = []; $literature['authors'] = [ ['name' => 'hhh', 'adress' => 'hemingway@oldtimers.com','yearOfBirth' => '1869'], ['name' => 'yyy', 'adress' => 'saintexupéry@oldtimers.com','yearOfBirth' => '1900'], ['name' => 'zzz', 'adress' => 'conandoyle@oldtimers.com','yearOfBirth' => '1859'] ]; $literature['books'] = [ ['title' => 'ggg', 'author' => $literature ['authors'][0]['name'], 'year' => 1943], ['title' => 'uuu', 'author' => $literature ['authors'][0]['name'], 'year' => 1887], ['title' => 'ttt!', 'author' => $literature ['authors'][0]['name'], 'year' => 1929], ['title' => 'vvv', 'author' => $literature ['authors'][0]['name'], 'year' => 1936], ['title' => 'ooo', 'author' => $literature ['authors'][0]['name'], 'year' => 1938] ]; print_r($literature);

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.4.130.0040.00617.97
8.4.120.0080.00320.58
8.4.110.0050.00418.71
8.4.100.0100.01019.09
8.4.90.0140.00518.54
8.4.80.0050.00617.70
8.4.70.0050.01118.02
8.4.60.0120.00818.89
8.4.50.0080.01020.23
8.4.40.0050.00320.59
8.4.30.0080.00024.50
8.4.20.0030.00518.98
8.4.10.0040.01117.50
8.3.260.0130.00616.86
8.3.250.0080.01118.71
8.3.240.0090.00916.71
8.3.230.0090.01016.56
8.3.220.0140.00417.05
8.3.210.0090.00916.73
8.3.200.0030.00516.60
8.3.190.0080.00717.08
8.3.180.0110.00816.73
8.3.170.0060.01217.28
8.3.160.0040.01118.38
8.3.150.0090.00920.57
8.3.140.0110.00417.04
8.3.130.0170.00318.28
8.3.120.0060.00319.04
8.3.110.0120.00820.94
8.3.100.0080.00316.34
8.3.90.0000.00818.40
8.3.80.0090.00018.30
8.3.70.0100.01018.30
8.3.60.0100.00718.27
8.3.50.0090.00716.46
8.3.40.0130.01018.88
8.3.30.0110.00418.71
8.3.20.0040.00421.85
8.3.10.0080.00320.11
8.3.00.0050.00323.67
8.2.290.0150.00320.61
8.2.280.0100.01018.92
8.2.270.0060.00917.41
8.2.260.0140.00416.49
8.2.250.0100.01016.47
8.2.240.0090.00017.49
8.2.230.0040.00422.58
8.2.220.0060.00324.06
8.2.210.0040.00426.77
8.2.200.0050.00518.18
8.2.190.0040.01118.54
8.2.180.0120.00316.38
8.2.170.0140.00022.96
8.2.160.0110.00621.08
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0050.00326.16
8.2.110.0070.00321.12
8.2.100.0040.00717.72
8.2.90.0040.00417.75
8.2.80.0040.00418.78
8.2.70.0000.00817.50
8.2.60.0050.00317.75
8.2.50.0000.00917.63
8.2.40.0040.00418.22
8.2.30.0080.00019.79
8.2.20.0000.01018.02
8.2.10.0000.00821.15
8.2.00.0060.00319.31
8.1.330.0090.00921.79
8.1.320.0120.00715.88
8.1.310.0000.00816.73
8.1.300.0120.00320.35
8.1.290.0040.00418.88
8.1.280.0090.00625.92
8.1.270.0030.00623.99
8.1.260.0000.00726.35
8.1.250.0060.00328.09
8.1.240.0060.00319.44
8.1.230.0000.01120.85
8.1.220.0060.00318.64
8.1.210.0080.00018.77
8.1.200.0040.00417.54
8.1.190.0000.00817.22
8.1.180.0050.00318.10
8.1.170.0060.00318.60
8.1.160.0000.00918.93
8.1.150.0000.00718.94
8.1.140.0000.00720.58
8.1.130.0040.00420.20
8.1.120.0000.00717.44
8.1.110.0000.00717.44
8.1.100.0000.00717.50
8.1.90.0030.00717.36
8.1.80.0050.00317.45
8.1.70.0000.00717.36
8.1.60.0040.00817.63
8.1.50.0030.00517.41
8.1.40.0060.00317.57
8.1.30.0030.00617.71
8.1.20.0060.00317.50
8.1.10.0000.00817.48
8.1.00.0000.00817.50
8.0.300.0000.00718.77
8.0.290.0030.00616.63
8.0.280.0000.00718.39
8.0.270.0050.00316.87
8.0.260.0050.00321.81
8.0.250.0070.00016.98
8.0.240.0040.00416.95
8.0.230.0030.00316.97
8.0.220.0020.00516.92
8.0.210.0030.00316.81
8.0.200.0060.00016.98
8.0.190.0030.00317.04
8.0.180.0050.00316.86
8.0.170.0030.00616.80
8.0.160.0030.00516.94
8.0.150.0060.00316.83
8.0.140.0040.00416.92
8.0.130.0000.00513.29
8.0.120.0000.00916.77
8.0.110.0040.00416.90
8.0.100.0040.00416.97
8.0.90.0000.00816.90
8.0.80.0170.00016.89
8.0.70.0000.00716.89
8.0.60.0040.00416.97
8.0.50.0050.00216.77
8.0.30.0070.01017.23
8.0.20.0160.00717.09
8.0.10.0000.00717.02
8.0.00.0080.01116.76
7.4.330.0070.00015.55
7.4.320.0080.00016.53
7.4.300.0060.00016.41
7.4.290.0040.00416.55
7.4.280.0050.00316.56
7.4.270.0030.00616.59
7.4.260.0060.00016.45
7.4.250.0040.00416.52
7.4.240.0020.00516.51
7.4.230.0030.00316.72
7.4.220.0070.00016.53
7.4.210.0040.01116.61
7.4.200.0000.00716.71
7.4.140.0130.00817.86
7.4.130.0110.00616.57
7.4.120.0120.00616.47
7.4.110.0250.00016.59
7.4.100.0000.02316.59
7.4.90.0000.01716.59
7.4.80.0140.01119.39
7.4.70.0140.00316.52
7.4.60.0000.01716.61
7.4.50.0040.01116.45
7.4.40.0120.00916.42
7.4.00.0070.01114.93
7.3.330.0020.00213.01
7.3.320.0000.00513.02
7.3.310.0000.00716.33
7.3.300.0030.00316.11
7.3.290.0040.00416.23
7.3.280.0230.00816.22
7.3.260.0120.00716.38
7.3.240.0080.01116.34
7.3.230.0060.01016.64
7.3.210.0060.01116.72
7.3.200.0060.01116.53
7.3.190.0100.01016.18
7.3.180.0100.00716.35
7.3.170.0090.00916.26
7.3.160.0090.00616.33
7.3.120.0090.01014.62
7.3.110.0120.00514.76
7.3.100.0050.01115.00
7.3.90.0060.00614.74
7.3.80.0090.00314.95
7.3.70.0050.00614.70
7.3.60.0030.00914.76
7.3.50.0070.00514.79
7.3.40.0090.00614.66
7.3.30.0030.00914.79
7.3.20.0060.00915.95
7.3.10.0080.00715.99
7.3.00.0060.01015.77
7.2.330.0100.01416.75
7.2.320.0120.00416.50
7.2.310.0150.00716.37
7.2.300.0100.01316.47
7.2.290.0130.00716.65
7.2.250.0080.01215.14
7.2.240.0050.01415.09
7.2.230.0070.00915.04
7.2.220.0000.01115.02
7.2.210.0050.00815.13
7.2.200.0040.01214.91
7.2.190.0050.00915.00
7.2.180.0050.00614.79
7.2.170.0060.00614.92
7.2.160.0080.00415.06
7.2.150.0060.00815.79
7.2.140.0040.01216.04
7.2.130.0090.01015.94
7.2.120.0090.00915.97
7.2.110.0090.00815.82
7.2.100.0070.00715.87
7.2.90.0090.01015.88
7.2.80.0140.00615.99
7.2.70.0120.00715.98
7.2.60.0100.01116.01
7.2.50.0120.00815.96
7.2.40.0090.00816.15
7.2.30.0120.01015.97
7.2.20.0130.01015.99
7.2.10.0080.01116.07
7.2.00.0110.00515.92
7.1.330.0060.00915.60
7.1.320.0060.00515.64
7.1.310.0040.00415.79
7.1.300.0050.00515.05
7.1.290.0090.00315.13
7.1.280.0020.01115.14
7.1.270.0070.00815.13
7.1.260.0060.00915.03
7.1.250.0400.01114.89
7.1.240.0040.00415.86
7.1.230.0060.00615.73
7.1.220.0070.00415.88
7.1.210.0030.01015.61
7.1.200.0030.00815.70
7.1.190.0060.00615.78
7.1.180.0070.01015.85
7.1.170.0060.00915.52
7.1.160.0030.01015.94
7.1.150.0070.00715.73
7.1.140.0000.01715.71
7.1.130.0080.00415.86
7.1.120.0040.00415.63
7.1.110.0100.00315.86
7.1.100.0090.00615.73
7.1.90.0070.00715.70
7.1.80.0030.01015.57
7.1.70.0050.00515.85
7.1.60.0040.00715.96
7.1.50.0070.00315.86
7.1.40.0030.01015.82
7.1.30.0030.01015.48
7.1.20.0070.00715.89
7.1.10.0070.00715.45
7.1.00.0000.00915.80

preferences:
82.28 ms | 403 KiB | 5 Q