3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fields = Array( 'viewers' => Array('title' => 'Viewers', 'type'=> 'select', 'field' => 'count(distinct(v.systemid)) as `viewers`'), 'views' => Array('title' => 'Views', 'type'=> 'select', 'field' => 'count(v.viewid) as `views`'), 'totalDuration' => Array('title'=> 'Total View Length', 'type'=> 'select', 'field' => 'sum(TIMESTAMPDIFF(SECOND,v.ts,v.ts_end)) as `total duration`'), 'avgDuration' => Array('title'=> 'Avg view length', 'type'=> 'select', 'field' => '(sum(TIMESTAMPDIFF(SECOND,v.ts,v.ts_end)) / count(v.viewid)) as `average duration`'), 'clipname' => Array('title'=>'Video ID', 'type'=> 'group', 'field' => 'v.clipname as `clipname`'), 'startDate' => Array('title'=>'Actual Start Date', 'type'=> 'group', 'field' => 'p.startDate'), 'startTime' => Array('title'=>'Actual Start Time', 'type'=> 'group', 'field' => 'p.startTime'), 'date' => Array('title'=>'Date', 'type'=> 'group', 'field' => 'DATE(v.ts) AS ForDate'), 'stage' => Array('title'=>'Player State', 'type'=> 'group', 'field' => 'v.stage'), 'platform' => Array('title'=>'OS', 'type'=> 'group', 'field' => 's.platform'), 'browser' => Array('title'=>'Browser', 'type'=> 'group', 'field' => 's.browser'), 'alias' => Array('title'=>'Alias', 'type'=> 'group', 'field' => 'p.alias'), 'house' => Array('title'=>'House', 'type'=> 'group', 'field' => 'p.house'), 'business' => Array('title'=>'Business', 'type'=> 'group', 'field' => 'p.business'), 'eventType' => Array('title'=>'Event Type', 'type'=> 'group', 'field' => 'p.eventType'), 'title' => Array('title'=>'Title', 'type'=> 'group', 'field' => 'p.title') ); print_r($fields);

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.0100.01016.38
8.3.50.0120.01022.07
8.3.40.0080.00618.58
8.3.30.0080.00818.90
8.3.20.0000.00820.35
8.3.10.0060.00321.66
8.3.00.0040.00719.10
8.2.180.0030.01418.18
8.2.170.0120.00322.96
8.2.160.0070.00722.08
8.2.150.0000.00724.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.41
8.2.110.0090.00022.29
8.2.100.0080.00417.60
8.2.90.0060.00319.21
8.2.80.0060.00317.97
8.2.70.0000.00917.50
8.2.60.0030.00517.93
8.2.50.0040.00418.07
8.2.40.0040.00418.20
8.2.30.0070.00018.07
8.2.20.0000.00817.52
8.2.10.0080.00018.14
8.2.00.0040.00417.62
8.1.280.0070.00725.92
8.1.270.0050.00320.59
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00820.59
8.1.230.0070.00420.97
8.1.220.0000.00917.74
8.1.210.0060.00318.77
8.1.200.0030.00617.23
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0040.00420.24
8.1.160.0000.00821.93
8.1.150.0070.00018.71
8.1.140.0040.00417.41
8.1.130.0000.00717.87
8.1.120.0040.00417.46
8.1.110.0030.00517.41
8.1.100.0030.00617.39
8.1.90.0000.00717.43
8.1.80.0000.00817.33
8.1.70.0030.00317.31
8.1.60.0030.00617.54
8.1.50.0040.00417.41
8.1.40.0030.01017.54
8.1.30.0050.00317.50
8.1.20.0030.00517.49
8.1.10.0050.00217.47
8.1.00.0060.00317.44
8.0.300.0050.00320.13
8.0.290.0000.00716.58
8.0.280.0030.00318.34
8.0.270.0040.00317.18
8.0.260.0000.00717.13
8.0.250.0000.00716.98
8.0.240.0000.00716.96
8.0.230.0000.00716.85
8.0.220.0030.00316.71
8.0.210.0000.00716.78
8.0.200.0000.00716.77
8.0.190.0000.00716.84
8.0.180.0040.00416.89
8.0.170.0000.00716.78
8.0.160.0050.00316.90
8.0.150.0000.00716.79
8.0.140.0000.00716.74
8.0.130.0000.00613.21
8.0.120.0040.00416.83
8.0.110.0020.00516.87
8.0.100.0030.00416.94
8.0.90.0000.00716.68
8.0.80.0090.00616.84
8.0.70.0030.00616.79
8.0.60.0060.00316.91
8.0.50.0000.00816.81
8.0.30.0150.00917.08
8.0.20.0170.01117.40
8.0.10.0040.00417.00
8.0.00.0090.00816.83
7.4.330.0050.00015.03
7.4.320.0030.00316.55
7.4.300.0030.00316.58
7.4.290.0000.00716.32
7.4.280.0040.00716.35
7.4.270.0000.00716.45
7.4.260.0060.00016.58
7.4.250.0000.00816.38
7.4.240.0030.00516.45
7.4.230.0030.00316.44
7.4.220.0090.00916.60
7.4.210.0060.00916.46
7.4.200.0000.00716.40
7.4.160.0130.00316.34
7.4.150.0110.00817.40
7.4.140.0090.00817.86
7.4.130.0130.00316.50
7.4.120.0100.00716.47
7.4.110.0050.01416.27
7.4.100.0070.01016.50
7.4.90.0110.00716.42
7.4.80.0120.00619.39
7.4.70.0090.01216.46
7.4.60.0130.00316.46
7.4.50.0040.00016.47
7.4.40.0050.01116.71
7.4.30.0120.00916.52
7.4.00.0120.00514.74
7.3.330.0000.00612.98
7.3.320.0070.00713.07
7.3.310.0070.00016.11
7.3.300.0000.00716.13
7.3.290.0000.00716.02
7.3.280.0110.00616.16
7.3.270.0110.00717.40
7.3.260.0100.00716.53
7.3.250.0100.01016.23
7.3.240.0130.00316.38
7.3.230.0000.01616.39
7.3.210.0070.01016.28
7.3.200.0100.01019.39
7.3.190.0060.00916.45
7.3.180.0060.01716.36
7.3.170.0060.01016.45
7.3.160.0120.00416.25
7.3.120.0070.01014.58
7.3.110.0040.01614.57
7.3.100.0100.00614.91
7.3.90.0090.00614.61
7.3.80.0090.00614.46
7.3.70.0110.00014.68
7.3.60.0100.00714.61
7.3.50.0100.01014.33
7.3.40.0000.01614.69
7.3.30.0060.00614.56
7.3.20.0040.01116.51
7.3.10.0060.01216.30
7.3.00.0040.01516.41
7.2.330.0000.01916.27
7.2.320.0110.01116.52
7.2.310.0130.00316.14
7.2.300.0190.00616.44
7.2.290.0070.01416.52
7.2.250.0070.01415.04
7.2.240.0060.00914.75
7.2.230.0100.00615.13
7.2.220.0070.00314.71
7.2.210.0000.01714.52
7.2.200.0000.01515.05
7.2.190.0030.01714.79
7.2.180.0040.01114.94
7.2.170.0060.01014.83
7.2.00.0080.00519.39
7.1.330.0030.01015.55
7.1.320.0060.00615.77
7.1.310.0040.01115.31
7.1.300.0120.00015.74
7.1.290.0130.00615.44
7.1.280.0000.01415.63
7.1.270.0030.00915.50
7.1.260.0110.00415.87
7.1.100.0040.01118.07
7.1.70.0070.00317.23
7.1.60.0070.01419.46
7.1.50.0000.02116.79
7.1.00.0030.07322.46
7.0.200.0030.00916.71
7.0.140.0100.06322.08
7.0.60.0070.06719.86
7.0.50.0170.07017.82
7.0.40.0030.04320.04
7.0.30.0330.07720.25
7.0.20.0270.04720.00
7.0.10.0030.06720.30
7.0.00.0100.08320.18
5.6.280.0070.08721.05
5.6.210.0000.05720.76
5.6.200.0100.06718.23
5.6.190.0170.04320.77
5.6.180.0530.07020.41
5.6.170.0330.07320.45
5.6.160.0070.04020.50
5.6.150.0070.07018.11
5.6.140.0030.04018.18
5.6.130.0100.06718.14
5.6.120.0100.08021.04
5.6.110.0100.08721.02
5.6.100.0130.08021.02
5.6.90.0070.09021.13
5.6.80.0030.07320.39
5.5.350.0200.03020.41
5.5.340.0100.05717.92
5.5.330.0000.06020.13
5.5.320.0130.07320.17
5.5.310.0270.03720.21
5.5.300.0070.07717.91
5.5.290.0030.07318.01
5.5.280.0030.09320.78
5.5.270.0100.08320.90
5.5.260.0030.09020.85
5.5.250.0030.04020.60
5.5.240.0230.07020.25
5.4.450.0200.05019.39
5.4.440.0100.06019.61
5.4.430.0270.05719.13
5.4.420.0200.05319.46
5.4.410.0130.06019.28
5.4.400.0200.05018.59
5.4.390.0130.05718.64
5.4.380.0200.06018.64
5.4.370.0200.05718.58
5.4.360.0270.05318.52
5.4.350.0230.05318.65
5.4.340.0200.05018.61
5.4.320.0170.05718.54
5.4.310.0330.04018.45
5.4.300.0270.04318.66
5.4.290.0100.05718.75
5.4.280.0370.04318.73
5.4.270.0170.05318.58
5.4.260.0170.05318.67
5.4.250.0100.06318.64
5.4.240.0170.05718.63
5.4.230.0100.05718.57
5.4.220.0100.06318.69
5.4.210.0130.05718.65
5.4.200.0200.05016.51
5.4.190.0230.04718.55
5.4.180.0170.05318.49
5.4.170.0230.05018.53
5.4.160.0170.05318.68
5.4.150.0230.05018.62
5.4.140.0130.05316.21
5.4.130.0200.04716.29
5.4.120.0300.04716.11
5.4.110.0230.04316.14
5.4.100.0200.06716.19
5.4.90.0100.05716.33
5.4.80.0100.05716.30
5.4.70.0130.05316.30
5.4.60.0070.06016.07
5.4.50.0170.05016.05
5.4.40.0300.05016.19
5.4.30.0200.05316.11
5.4.20.0200.05316.19
5.4.10.0130.05316.21
5.4.00.0200.05015.70
5.3.290.0130.05714.78
5.3.280.0200.06014.64
5.3.270.0170.08314.62
5.3.260.0230.05314.60
5.3.250.0200.06714.68
5.3.240.0270.06714.68
5.3.230.0270.05014.56
5.3.220.0230.05014.49
5.3.210.0130.06314.68
5.3.200.0130.06014.57
5.3.190.0170.05014.56
5.3.180.0170.05314.52
5.3.170.0230.04714.55
5.3.160.0230.04714.48
5.3.150.0200.05014.63
5.3.140.0130.06714.61
5.3.130.0130.05714.66
5.3.120.0170.05314.60
5.3.110.0200.05014.54
5.3.100.0200.04714.02
5.3.90.0330.03714.09
5.3.80.0330.04714.02
5.3.70.0200.05013.93
5.3.60.0200.05314.00
5.3.50.0100.06014.02
5.3.40.0230.04713.93
5.3.30.0130.05713.96
5.3.20.0100.05713.66
5.3.10.0130.05313.62
5.3.00.0170.07013.65
5.2.170.0170.04011.21
5.2.160.0100.04311.11
5.2.150.0100.04711.30
5.2.140.0230.03011.16
5.2.130.0130.04011.09
5.2.120.0100.04311.17
5.2.110.0130.04711.08
5.2.100.0130.04011.15
5.2.90.0200.04011.17
5.2.80.0170.05311.08
5.2.70.0170.04011.10
5.2.60.0170.04011.06
5.2.50.0100.04311.00
5.2.40.0230.03311.05
5.2.30.0200.03311.14
5.2.20.0130.04010.97
5.2.10.0230.03011.01
5.2.00.0270.03310.75
5.1.60.0130.03710.09
5.1.50.0130.03310.15
5.1.40.0200.0309.95
5.1.30.0100.03710.39
5.1.20.0230.02710.44
5.1.10.0100.03310.11
5.1.00.0170.03010.14
5.0.50.0100.0278.55
5.0.40.0100.0278.55
5.0.30.0100.0438.36
5.0.20.0170.0208.20
5.0.10.0070.0308.19
5.0.00.0100.0438.22
4.4.90.0030.0275.89
4.4.80.0100.0205.87
4.4.70.0030.0305.83
4.4.60.0170.0175.89
4.4.50.0000.0305.94
4.4.40.0030.0375.95
4.4.30.0100.0205.92
4.4.20.0070.0205.98
4.4.10.0100.0205.99
4.4.00.0100.0335.87
4.3.110.0030.0335.86
4.3.100.0100.0205.77
4.3.90.0030.0235.88
4.3.80.0070.0335.88
4.3.70.0100.0175.81
4.3.60.0100.0175.96
4.3.50.0070.0205.84
4.3.40.0100.0305.90
4.3.30.0030.0234.67
4.3.20.0070.0234.55
4.3.10.0070.0204.54
4.3.00.0100.0206.90

preferences:
50.57 ms | 401 KiB | 5 Q