3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filtered_decoded[0]['data'] = array( array( 'position' => 2, 'date' => '2013-01-02' ), array( 'position' => 3, 'date' => '2013-01-03' ) ); $filtered_decoded[1]['data'] = array( array( 'position' => 8, 'date' => '2013-01-02' ), array( 'position' => 5, 'date' => '2013-01-03' ) ); $converteddatesarray = array(); print_r($filtered_decoded); foreach ($filtered_decoded['data'] as $key => $list) { $converteddatesarray[] = '['.strtotime($list['date']).'000,'.$list['position'].']'; } $test .= '{"name":"'.$name.'","data":['. implode(",",$converteddatesarray).']},'; echo '['.rtrim($test,",").']';

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.40.0070.01318.96
8.3.30.0100.00319.21
8.3.20.0040.00420.38
8.3.10.0000.00723.52
8.3.00.0070.00020.54
8.2.170.0040.01122.96
8.2.160.0110.00422.31
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0000.00722.11
8.2.110.0030.00622.20
8.2.100.0090.00317.82
8.2.90.0070.00019.16
8.2.80.0030.00618.05
8.2.70.0080.00017.75
8.2.60.0080.00018.05
8.2.50.0000.00818.07
8.2.40.0000.00819.38
8.2.30.0040.00418.13
8.2.20.0000.00817.70
8.2.10.0000.00817.79
8.2.00.0000.00817.68
8.1.270.0040.00422.20
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00323.96
8.1.230.0080.00419.06
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0000.00917.53
8.1.180.0000.00818.10
8.1.170.0040.00418.66
8.1.160.0030.00622.11
8.1.150.0060.00318.74
8.1.140.0040.00417.35
8.1.130.0000.00717.70
8.1.120.0030.00317.47
8.1.110.0000.00717.38
8.1.100.0000.00817.45
8.1.90.0040.00417.46
8.1.80.0000.00717.51
8.1.70.0030.00317.46
8.1.60.0040.00717.61
8.1.50.0040.00417.53
8.1.40.0050.00217.40
8.1.30.0080.00017.67
8.1.20.0000.00817.57
8.1.10.0030.00517.52
8.1.00.0070.00017.40
8.0.300.0040.00418.77
8.0.290.0000.00717.05
8.0.280.0080.00018.43
8.0.270.0070.00017.30
8.0.260.0000.00716.88
8.0.250.0000.00717.04
8.0.240.0000.00717.05
8.0.230.0030.00316.92
8.0.220.0000.00716.95
8.0.210.0030.00516.86
8.0.200.0080.00017.02
8.0.190.0000.00916.98
8.0.180.0040.00416.87
8.0.170.0000.00817.04
8.0.160.0000.00716.96
8.0.150.0000.01016.96
8.0.140.0040.00416.82
8.0.130.0030.00313.47
8.0.120.0000.00816.97
8.0.110.0080.00016.97
8.0.100.0040.00416.88
8.0.90.0070.00016.80
8.0.80.0050.00916.93
8.0.70.0000.00717.01
8.0.60.0070.00017.02
8.0.50.0030.00616.93
8.0.30.0070.01817.05
8.0.20.0120.00817.40
8.0.10.0030.00517.05
8.0.00.0070.01116.70
7.4.330.0050.00015.09
7.4.320.0000.00716.43
7.4.300.0000.00716.62
7.4.290.0030.00316.60
7.4.280.0000.00716.59
7.4.270.0030.00316.42
7.4.260.0070.00016.63
7.4.250.0070.00016.57
7.4.240.0020.00516.59
7.4.230.0040.00416.68
7.4.220.0090.00916.50
7.4.210.0080.00616.55
7.4.200.0050.00216.62
7.4.190.0050.00216.61
7.4.160.0130.00316.59
7.4.150.0090.00917.40
7.4.140.0070.01017.86
7.4.130.0120.00916.46
7.4.120.0100.00716.54
7.4.110.0130.00416.47
7.4.100.0040.01816.65
7.4.90.0060.01016.54
7.4.80.0110.00616.45
7.4.70.0150.00316.43
7.4.60.0110.00416.52
7.4.50.0030.00316.65
7.4.40.0040.01422.77
7.4.30.0100.00616.51
7.4.00.0080.00815.18
7.3.330.0000.00513.11
7.3.320.0030.00313.36
7.3.310.0070.00016.27
7.3.300.0000.00716.41
7.3.290.0030.01016.33
7.3.280.0100.01116.44
7.3.270.0050.01217.40
7.3.260.0170.00316.41
7.3.250.0090.01116.38
7.3.240.0090.00616.40
7.3.230.0190.00316.39
7.3.210.0100.00616.40
7.3.200.0060.01219.39
7.3.190.0150.00816.59
7.3.180.0100.00616.34
7.3.170.0060.00916.55
7.3.160.0130.00316.37
7.3.120.0080.00614.83
7.3.10.0030.00916.45
7.3.00.0040.01016.61
7.2.330.0070.01416.44
7.2.320.0110.00816.75
7.2.310.0090.00916.56
7.2.300.0120.00416.59
7.2.290.0100.01016.61
7.2.130.0020.00816.89
7.2.120.0040.00616.77
7.2.110.0100.00516.71
7.2.100.0070.00617.05
7.2.90.0070.00516.82
7.2.80.0060.00817.04
7.2.70.0030.01016.98
7.2.60.0080.00616.71
7.2.50.0060.00717.04
7.2.40.0120.00417.03
7.2.30.0070.00416.86
7.2.20.0070.00517.04
7.2.10.0000.01217.06
7.2.00.0060.00917.60
7.1.250.0070.00515.83
7.1.240.0050.00515.97
7.1.230.0060.01015.71
7.1.220.0040.01115.75
7.1.210.0070.00415.43
7.1.200.0050.00815.85
7.1.190.0060.00615.68
7.1.180.0030.00715.62
7.1.170.0100.00615.96
7.1.160.0000.01115.97
7.1.150.0000.01215.80
7.1.140.0030.01015.55
7.1.130.0070.00315.86
7.1.120.0110.00415.63
7.1.110.0040.00815.85
7.1.100.0030.01117.05
7.1.90.0030.00715.61
7.1.80.0070.01015.46
7.1.70.0040.00616.51
7.1.60.0100.00917.50
7.1.50.0110.00616.19
7.1.40.0030.00615.77
7.1.30.0000.01515.46
7.1.20.0100.00316.04
7.1.10.0000.01315.65
7.1.00.0070.04019.03
7.0.330.0030.00915.37
7.0.320.0060.00615.59
7.0.310.0000.01015.44
7.0.300.0060.00615.39
7.0.290.0000.00815.12
7.0.280.0030.00715.34
7.0.270.0040.01115.26
7.0.260.0090.00915.20
7.0.250.0090.00315.15
7.0.240.0040.00715.43
7.0.230.0030.00615.50
7.0.220.0090.00315.33
7.0.210.0070.00715.25
7.0.200.0080.00316.04
7.0.190.0070.00715.38
7.0.180.0040.00715.33
7.0.170.0080.00815.33
7.0.160.0060.01015.46
7.0.150.0040.01115.54
7.0.140.0040.03918.74
7.0.130.0040.00815.21
7.0.120.0050.00514.97
7.0.110.0090.00015.39
7.0.100.0080.02317.66
7.0.90.0100.02517.51
7.0.80.0140.01717.62
7.0.70.0080.02217.79
7.0.60.0100.02317.70
7.0.50.0070.03117.90
7.0.40.0050.02516.58
7.0.30.0050.02516.74
7.0.20.0090.02416.66
7.0.10.0030.02416.65
7.0.00.0090.02516.76
5.6.380.0090.00614.21
5.6.370.0060.00614.35
5.6.360.0070.00414.25
5.6.350.0030.00714.55
5.6.340.0120.00314.32
5.6.330.0040.01114.44
5.6.320.0000.01614.06
5.6.310.0040.01213.85
5.6.300.0060.00614.47
5.6.290.0120.00614.50
5.6.280.0050.04017.60
5.6.270.0100.00314.23
5.6.260.0060.00914.41
5.6.250.0030.02917.47
5.6.240.0050.02617.47
5.6.230.0110.01817.53
5.6.220.0080.02317.38
5.6.210.0030.02717.45
5.6.200.0030.02717.69
5.6.190.0080.02517.71
5.6.180.0080.02217.66
5.6.170.0030.02617.72
5.6.160.0110.04117.68
5.6.150.0160.03717.62
5.6.140.0030.05017.66
5.6.130.0060.04517.77
5.6.120.0110.04217.65
5.6.110.0090.04117.58
5.6.100.0080.03217.55
5.6.90.0080.05017.77
5.6.80.0050.04817.44
5.6.70.0110.04117.51
5.6.60.0080.04217.47
5.6.50.0080.04317.46
5.6.40.0070.04717.19
5.6.30.0100.04017.41
5.6.20.0080.04617.43
5.6.10.0100.03517.31
5.6.00.0050.04717.30
5.5.380.0060.02315.60
5.5.370.0080.02315.72
5.5.360.0070.02515.71
5.5.350.0100.02115.80
5.5.340.0050.02615.95
5.5.330.0110.02116.18
5.5.320.0050.02416.14
5.5.310.0020.02315.96
5.5.300.0090.02615.92
5.5.290.0070.02816.19
5.5.280.0060.04316.08
5.5.270.0020.04515.82
5.5.260.0130.02215.79
5.5.250.0030.04415.83
5.5.240.0020.05015.83
5.5.230.0090.04015.63
5.5.220.0080.04015.82
5.5.210.0070.04215.77
5.5.200.0090.04015.57
5.5.190.0080.03315.76
5.5.180.0160.03615.77
5.5.170.0000.01011.44
5.5.160.0050.04115.64
5.5.150.0100.02515.61
5.5.140.0080.03815.71
5.5.130.0070.04415.46
5.5.120.0050.04015.69
5.5.110.0090.04315.70
5.5.100.0070.04015.38
5.5.90.0070.04215.47
5.5.80.0050.03315.51
5.5.70.0060.02615.60
5.5.60.0030.04015.46
5.5.50.0120.03515.47
5.5.40.0090.04515.50
5.5.30.0110.03815.46
5.5.20.0060.03015.51
5.5.10.0050.04515.59
5.5.00.0120.03315.41
5.4.450.0090.04215.09
5.4.440.0040.02615.21
5.4.430.0120.03915.44
5.4.420.0100.03915.31
5.4.410.0100.03715.32
5.4.400.0100.02815.19
5.4.390.0120.02315.21
5.4.380.0110.02415.22
5.4.370.0130.03714.89
5.4.360.0080.03515.18
5.4.350.0060.04115.05
5.4.340.0070.04315.03
5.4.330.0040.01111.09
5.4.320.0080.03014.98
5.4.310.0060.03815.16
5.4.300.0080.02114.89
5.4.290.0080.03615.12
5.4.280.0090.04214.93
5.4.270.0140.03414.95
5.4.260.0070.04315.11
5.4.250.0010.04415.10
5.4.240.0020.04214.92
5.4.230.0050.04515.03
5.4.220.0070.04315.17
5.4.210.0110.03614.85
5.4.200.0050.03815.08
5.4.190.0080.03515.17
5.4.180.0050.03615.07
5.4.170.0120.03515.21
5.4.160.0080.03815.13
5.4.150.0050.04314.94
5.4.140.0070.03413.83
5.4.130.0090.04013.78
5.4.120.0020.04513.58
5.4.110.0030.04313.64
5.4.100.0100.03513.70
5.4.90.0080.03513.73
5.4.80.0110.03413.58
5.4.70.0100.04013.71
5.4.60.0050.02913.65
5.4.50.0100.03213.64
5.4.40.0090.02213.71
5.4.30.0140.03013.66
5.4.20.0040.03813.72
5.4.10.0050.04413.58
5.4.00.0050.04213.47
5.3.290.0080.03912.75
5.3.280.0020.04212.60
5.3.270.0100.03712.62
5.3.260.0080.04812.51
5.3.250.0070.02712.61
5.3.240.0050.04312.61
5.3.230.0100.03512.62
5.3.220.0060.04012.53
5.3.210.0070.04512.57
5.3.200.0080.02312.56
5.3.190.0050.04512.65
5.3.180.0070.02312.60
5.3.170.0050.03312.70
5.3.160.0100.03312.72
5.3.150.0040.02512.64
5.3.140.0020.03512.57
5.3.130.0090.04212.67
5.3.120.0070.04312.64
5.3.110.0080.02512.76
5.3.100.0050.03412.41
5.3.90.0070.04312.34
5.3.80.0030.03812.33
5.3.70.0080.03612.36
5.3.60.0030.02212.14
5.3.50.0040.04512.27
5.3.40.0050.02812.32
5.3.30.0060.04112.16
5.3.20.0080.04011.99
5.3.10.0070.03011.94
5.3.00.0030.03312.01
5.2.170.0080.03110.48
5.2.160.0070.03010.52
5.2.150.0110.02610.52
5.2.140.0020.03410.57
5.2.130.0060.02510.55
5.2.120.0100.02310.48
5.2.110.0060.02210.59
5.2.100.0050.03510.59
5.2.90.0070.03010.53
5.2.80.0110.01310.53
5.2.70.0050.02010.54
5.2.60.0050.03310.50
5.2.50.0070.03210.54
5.2.40.0040.03210.40
5.2.30.0020.03510.49
5.2.20.0040.02410.40
5.2.10.0030.02110.37
5.2.00.0070.02510.34
5.1.60.0060.02510.02
5.1.50.0030.0219.97
5.1.40.0010.0159.96
5.1.30.0070.03210.20
5.1.20.0030.03310.12
5.1.10.0060.02810.07
5.1.00.0050.02910.01
5.0.50.0040.0179.75
5.0.40.0060.0229.75
5.0.30.0010.0319.75
5.0.20.0050.0239.75
5.0.10.0000.0249.75
5.0.00.0070.0179.75
4.4.90.0050.0209.75
4.4.80.0030.0179.75
4.4.70.0030.0119.75
4.4.60.0000.0179.75
4.4.50.0040.0229.75
4.4.40.0030.0309.75
4.4.30.0030.0109.75
4.4.20.0070.0159.75
4.4.10.0050.0129.75
4.4.00.0030.0329.75
4.3.110.0030.0199.75
4.3.100.0010.0169.75
4.3.90.0020.0219.75
4.3.80.0040.0289.75
4.3.70.0000.0219.75
4.3.60.0000.0199.75
4.3.50.0050.0189.75
4.3.40.0050.0169.75
4.3.30.0020.0179.75
4.3.20.0030.0199.75
4.3.10.0060.0139.75
4.3.00.0040.0179.75

preferences:
45.96 ms | 400 KiB | 5 Q