3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = (object) [[ 'id' => 3, 'rota_name' => 'Tea and coffee', 'rota_owner_name' => 9, 'rota_notes' => '', 'rota_entry' => '{"rota_entry0":{"person":"8","rota_assignment_date":"2018-04-01 20:17:48","rota_role":""},"rota_entry1":{"person":"7","rota_assignment_date":"2018-04-08 20:17:48","rota_role":""},"rota_entry2":{"person":"11","rota_assignment_date":"2018-04-15 20:17:48","rota_role":""},"rota_entry3":{"person":"7","rota_assignment_date":"2018-04-22 20:17:48","rota_role":""},"rota_entry4":{"person":"10","rota_assignment_date":"2018-04-29 20:17:48","rota_role":""},"rota_entry5":{"person":"3","rota_assignment_date":"2018-05-06 20:18:20","rota_role":""},"rota_entry6":{"person":"11","rota_assignment_date":"2018-05-13 20:18:23","rota_role":""}}', 'rota_advance_email_days' => '', 'rota_reminder_sent' => NULL, ]]; $data = array_map(function ($value) { return (object) str_replace('"person":"8"', '"person":"9"', (array) $value); }, (array) $data); print_r($data);

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.0180.00416.63
8.3.50.0100.01018.11
8.3.40.0090.00618.63
8.3.30.0070.00718.54
8.3.20.0040.00421.86
8.3.10.0060.00323.66
8.3.00.0090.00019.48
8.2.180.0090.00618.29
8.2.170.0040.01122.96
8.2.160.0070.00720.41
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0000.00819.19
8.2.120.0070.00026.35
8.2.110.0060.00322.27
8.2.100.0040.00819.64
8.2.90.0060.00319.47
8.2.80.0080.00018.75
8.2.70.0060.00317.75
8.2.60.0030.00717.80
8.2.50.0050.00318.07
8.2.40.0000.00818.16
8.2.30.0020.00517.99
8.2.20.0040.00418.13
8.2.10.0000.00718.12
8.2.00.0080.00018.07
8.1.280.0140.00025.92
8.1.270.0050.00322.16
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0060.00320.41
8.1.230.0110.00017.64
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0050.00317.22
8.1.180.0090.00019.31
8.1.170.0000.00718.50
8.1.160.0040.00418.97
8.1.150.0000.00719.11
8.1.140.0040.00417.59
8.1.130.0030.00319.02
8.1.120.0080.00317.37
8.1.110.0040.00417.36
8.1.100.0030.00617.46
8.1.90.0040.00417.51
8.1.80.0020.00517.50
8.1.70.0030.00317.34
8.1.60.0040.00417.63
8.1.50.0070.00317.43
8.1.40.0090.00017.57
8.1.30.0040.00417.66
8.1.20.0050.00317.59
8.1.10.0040.00417.48
8.1.00.0040.00417.31
8.0.300.0060.00318.77
8.0.290.0000.00716.75
8.0.280.0030.00618.49
8.0.270.0030.00317.22
8.0.260.0030.00317.32
8.0.250.0030.00316.97
8.0.240.0000.00916.80
8.0.230.0000.00716.99
8.0.220.0000.00716.94
8.0.210.0030.00316.89
8.0.200.0030.00317.00
8.0.190.0000.00716.92
8.0.180.0070.00016.89
8.0.170.0000.01216.87
8.0.160.0000.00716.98
8.0.150.0040.00416.80
8.0.140.0000.00716.92
8.0.130.0060.00013.39
8.0.120.0070.00016.84
8.0.110.0040.00416.92
8.0.100.0030.00316.85
8.0.90.0040.00417.00
8.0.80.0050.01016.96
8.0.70.0080.00017.00
8.0.60.0080.00016.86
8.0.50.0000.00716.86
8.0.30.0110.00817.09
8.0.20.0180.00317.40
8.0.10.0040.00417.12
8.0.00.0130.00816.76
7.4.330.0040.00015.55
7.4.320.0000.00616.52
7.4.300.0000.00716.59
7.4.290.0000.00716.65
7.4.280.0000.00816.49
7.4.270.0000.00816.52
7.4.260.0100.00016.55
7.4.250.0030.00316.52
7.4.240.0070.00016.63
7.4.230.0040.00416.64
7.4.220.0000.00716.41
7.4.210.0100.00616.59
7.4.200.0030.00316.59
7.4.160.0110.00916.48
7.4.140.0120.00517.86
7.4.130.0100.00616.55
7.4.120.0120.00916.50
7.4.110.0130.00916.53
7.4.100.0100.00716.63
7.4.90.0060.01116.70
7.4.80.0170.00719.39
7.4.70.0150.00316.47
7.4.60.0040.01416.39
7.4.50.0070.01016.43
7.4.40.0130.00316.41
7.4.00.0070.00814.78
7.3.330.0020.00213.41
7.3.320.0000.00613.45
7.3.310.0030.00316.34
7.3.300.0040.00416.38
7.3.290.0000.00716.35
7.3.280.0070.01016.35
7.3.260.0100.00816.46
7.3.240.0120.00716.44
7.3.230.0060.00916.42
7.3.210.0120.00616.29
7.3.200.0030.01716.42
7.3.190.0150.00616.44
7.3.180.0090.00616.46
7.3.170.0130.00316.36
7.3.160.0060.00916.54
7.3.120.0090.00914.81
7.3.110.0130.00314.77
7.3.100.0110.00414.90
7.3.90.0070.00814.66
7.3.80.0090.00314.68
7.3.70.0030.01114.68
7.3.60.0000.01614.90
7.3.50.0060.00614.66
7.3.40.0030.01014.69
7.3.30.0000.01914.88
7.3.20.0070.00716.54
7.3.10.0030.00916.64
7.3.00.0070.00716.61
7.2.330.0070.01016.41
7.2.320.0060.01516.52
7.2.310.0090.00916.52
7.2.300.0070.01016.74
7.2.290.0120.00616.70
7.2.250.0070.01015.24
7.2.240.0100.01014.95
7.2.230.0040.00815.26
7.2.220.0090.00314.95
7.2.210.0000.01614.87
7.2.200.0000.01515.11
7.2.190.0030.00615.16
7.2.180.0100.00314.96
7.2.170.0040.00815.02
7.2.130.0030.00916.89
7.2.120.0070.00716.86
7.2.110.0030.01417.07
7.2.100.0040.00716.58
7.2.90.0110.00316.73
7.2.80.0040.00816.96
7.2.70.0050.00516.75
7.2.60.0070.00716.95
7.2.50.0050.01016.77
7.2.40.0740.01017.56
7.2.30.0790.01217.49
7.2.20.0980.01017.40
7.2.10.0600.00817.39
7.2.00.0730.01217.44
7.1.330.0110.00315.57
7.1.320.0000.01015.90
7.1.310.0040.00715.87
7.1.300.0030.00615.83
7.1.290.0030.01015.73
7.1.280.0030.00915.75
7.1.270.0100.00715.70
7.1.260.0100.00315.75
7.1.250.0160.00015.79
7.1.200.0040.00715.73
7.1.160.0980.01216.95
7.1.150.1160.01116.83
7.1.140.1410.01316.73
7.1.130.1150.01216.67
7.1.120.1350.01416.65
7.1.110.1560.01216.33
7.1.100.1540.01016.36
7.1.90.1660.01116.26
7.1.80.1430.00916.55
7.1.70.2050.01115.43
7.1.60.1300.01432.96
7.1.50.1440.01032.70
7.1.40.1500.01732.71
7.1.30.1500.01532.77
7.1.20.1570.01632.71
7.1.10.1210.01114.68
7.1.00.1040.01214.88

preferences:
57.17 ms | 401 KiB | 5 Q