3v4l.org

run code in 300+ PHP versions simultaneously
<?php function pawshake_notification_add($notification_type, $external_id, $uid = 0, $expire = -1, $variables = array()) { $notification = array( 'created' => REQUEST_TIME, 'notification_type' => $notification_type, 'external_id' => $external_id, 'variables' => $variables, ); // User id is optional. if ($uid) { $notification['uid'] = $uid; } // If no expire is send, default to one day. if ($expire == -1) { $notification['expire'] = REQUEST_TIME + 86400; } print_r($notification); } $expire = time() + 86400 + 86400; pawshake_notification_add('thread_start', $message->thread_id, 0, $expire);

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)
7.4.00.0030.01414.81
7.3.120.0130.00614.84
7.3.110.0020.01014.93
7.3.100.0060.00915.05
7.3.90.0000.00914.90
7.3.80.0040.00415.00
7.3.70.0100.00314.96
7.3.60.0100.00314.67
7.3.50.0030.01214.65
7.3.40.0070.00414.92
7.3.30.0060.00914.80
7.3.20.0000.01316.82
7.3.10.0050.00816.55
7.3.00.0070.00816.48
7.2.250.0100.01015.23
7.2.240.0100.01015.14
7.2.230.0000.01115.03
7.2.220.0050.00515.20
7.2.210.0140.00014.67
7.2.200.0040.00715.12
7.2.190.0090.00615.02
7.2.180.0080.00414.90
7.2.170.0100.00715.16
7.2.130.0060.00716.89
7.2.120.0120.00816.71
7.2.110.0130.00716.86
7.2.100.0080.00816.96
7.2.90.0130.00716.85
7.2.80.0140.01116.77
7.2.70.0130.01016.88
7.2.60.0080.01117.03
7.2.50.0230.00916.97
7.2.40.0180.00816.96
7.2.30.0120.00916.76
7.2.20.0080.00916.79
7.2.10.0150.00216.62
7.2.00.0070.01217.63
7.1.330.0070.00715.62
7.1.320.0060.00615.79
7.1.310.0000.01415.69
7.1.300.0000.01415.72
7.1.290.0050.00315.80
7.1.280.0090.00015.86
7.1.270.0030.00515.56
7.1.260.0030.00715.68
7.1.250.0070.01015.64
7.1.240.0130.01015.57
7.1.230.0050.01015.57
7.1.220.0170.01715.70
7.1.210.0170.01015.95
7.1.200.0100.00815.63
7.1.190.0150.00415.73
7.1.180.0170.01115.57
7.1.170.0250.00415.81
7.1.160.0180.00415.61
7.1.150.0350.00715.90
7.1.140.0100.00715.75
7.1.130.0000.01815.89
7.1.120.0030.00915.66
7.1.110.0100.00315.61
7.1.100.0080.00316.97
7.1.90.0050.00515.66
7.1.80.0110.00715.77
7.1.70.0070.00616.50
7.1.60.0070.01117.64
7.1.50.0080.00816.33
7.1.40.0000.00915.86
7.1.30.0040.00815.79
7.1.20.0030.00715.57
7.1.10.0000.01315.75
7.1.00.0060.03919.15
7.0.330.0060.01315.27
7.0.320.0060.01915.48
7.0.310.0210.01415.18
7.0.300.0310.00315.36
7.0.290.0080.01115.22
7.0.280.0180.00015.24
7.0.270.0100.00715.30
7.0.260.0040.01115.40
7.0.250.0070.00715.34
7.0.240.0080.00415.52
7.0.230.0110.00715.51
7.0.220.0000.00915.31
7.0.210.0090.00315.29
7.0.200.0350.00015.00
7.0.190.0100.00315.59
7.0.180.0130.00015.45
7.0.170.0030.00915.45
7.0.160.0000.01215.42
7.0.150.0040.00815.40
7.0.140.0020.04118.76
7.0.130.0070.00715.40
7.0.120.0100.00315.48
7.0.110.0120.00015.29
7.0.100.0080.04317.59
7.0.90.0100.04117.68
7.0.80.0190.03517.79
7.0.70.0100.04217.52
7.0.60.0090.04017.67
7.0.50.0050.02917.87
7.0.40.0080.04316.63
7.0.30.0100.04316.66
7.0.20.0120.02316.74
7.0.10.0050.04416.69
7.0.00.0070.02916.72
5.6.380.0080.01214.32
5.6.370.0020.01114.05
5.6.360.0060.01214.35
5.6.350.0060.00714.59
5.6.340.0080.00514.37
5.6.330.0110.00514.28
5.6.320.0060.00914.32
5.6.310.0060.00314.20
5.6.300.0070.00314.01
5.6.290.0040.00714.23
5.6.280.0030.04317.66
5.6.270.0070.00714.27
5.6.260.0030.01013.97
5.6.250.0100.04217.55
5.6.240.0100.04217.63
5.6.230.0080.04417.63
5.6.220.0050.05017.49
5.6.210.0050.03417.39
5.6.200.0070.03417.74
5.6.190.0040.04517.63
5.6.180.0080.04517.59
5.6.170.0090.04417.76
5.6.160.0120.04317.56
5.6.150.0030.04717.65
5.6.140.0120.02817.70
5.6.130.0080.03917.80
5.6.120.0060.04517.70
5.6.110.0100.03017.62
5.6.100.0030.04317.72
5.6.90.0110.02217.78
5.6.80.0110.03817.32
5.6.70.0080.04317.25
5.6.60.0090.03917.40
5.6.50.0030.04717.30
5.6.40.0030.04517.38
5.6.30.0070.02317.43
5.6.20.0090.03717.39
5.6.10.0050.04317.28
5.6.00.0070.02517.30
5.5.380.0060.02615.83
5.5.370.0020.03715.81
5.5.360.0050.03915.91
5.5.350.0050.04715.81
5.5.340.0110.04015.97
5.5.330.0090.04416.10
5.5.320.0100.02915.99
5.5.310.0090.04016.08
5.5.300.0030.03116.02
5.5.290.0140.03716.14
5.5.280.0020.04515.98
5.5.270.0100.04016.12
5.5.260.0100.04516.04
5.5.250.0070.04015.80
5.5.240.0050.04315.62
5.5.230.0070.04415.74
5.5.220.0080.04515.60
5.5.210.0050.03515.72
5.5.200.0070.03915.75
5.5.190.0030.04315.78
5.5.180.0050.04015.68
5.5.170.0000.00611.18
5.5.160.0090.03415.72
5.5.150.0030.02915.71
5.5.140.0030.04315.68
5.5.130.0110.03915.63
5.5.120.0070.03615.79
5.5.110.0040.04215.63
5.5.100.0050.03215.61
5.5.90.0070.02515.59
5.5.80.0060.04115.60
5.5.70.0050.04515.59
5.5.60.0080.04015.61
5.5.50.0100.04015.59
5.5.40.0030.04415.66
5.5.30.0080.03515.63
5.5.20.0050.04415.61
5.5.10.0080.04115.63
5.5.00.0050.04215.65
5.4.450.0080.03315.35
5.4.440.0070.04315.18
5.4.430.0090.03515.27
5.4.420.0130.03715.27
5.4.410.0040.03715.11
5.4.400.0030.04115.01
5.4.390.0080.04015.16
5.4.380.0110.03715.19
5.4.370.0020.04515.03
5.4.360.0060.03815.05
5.4.350.0060.03115.18
5.4.340.0050.03815.03
5.4.330.0060.00011.18
5.4.320.0050.04315.11
5.4.310.0030.03315.17
5.4.300.0040.02415.13
5.4.290.0030.04115.17
5.4.280.0070.04215.13
5.4.270.0000.03315.11
5.4.260.0030.02415.15
5.4.250.0020.04515.14
5.4.240.0060.03515.20
5.4.230.0000.02615.23
5.4.220.0050.02915.03
5.4.210.0070.03915.02
5.4.200.0050.04115.15
5.4.190.0060.04015.11
5.4.180.0050.04015.19
5.4.170.0110.02515.17
5.4.160.0000.02515.18
5.4.150.0030.04115.04
5.4.140.0080.03913.77
5.4.130.0060.03813.76
5.4.120.0060.03713.77
5.4.110.0000.02713.78
5.4.100.0050.04313.80
5.4.90.0030.02313.84
5.4.80.0020.02913.83
5.4.70.0050.03913.81
5.4.60.0030.03513.79
5.4.50.0030.03713.85
5.4.40.0060.03613.85
5.4.30.0080.04213.80
5.4.20.0020.02613.77
5.4.10.0050.02213.77
5.4.00.0050.02913.53
5.3.290.0050.02512.91
5.3.280.0020.04312.92
5.3.270.0020.04512.86
5.3.260.0060.03012.87
5.3.250.0050.02612.85
5.3.240.0080.02012.87
5.3.230.0030.02412.90
5.3.220.0050.03012.87
5.3.210.0050.02812.91
5.3.200.0050.04212.93
5.3.190.0000.04512.88
5.3.180.0070.03812.83
5.3.170.0030.04312.89
5.3.160.0070.03912.90
5.3.150.0050.03912.88
5.3.140.0080.03512.83
5.3.130.0050.04012.87
5.3.120.0020.03012.89
5.3.110.0020.04412.91
5.3.100.0030.02712.63
5.3.90.0030.02512.59
5.3.80.0100.03312.58
5.3.70.0050.02612.56
5.3.60.0050.03512.65
5.3.50.0000.03012.56
5.3.40.0120.03012.60
5.3.30.0080.03512.49
5.3.20.0020.02812.49
5.3.10.0060.03512.48
5.3.00.0020.03212.45
5.2.170.0030.02311.17
5.2.160.0030.03311.17
5.2.150.0050.02311.13
5.2.140.0030.03311.21
5.2.130.0000.01911.10
5.2.120.0030.03111.19
5.2.110.0050.02611.19
5.2.100.0080.02611.14
5.2.90.0030.03611.21
5.2.80.0030.02311.17
5.2.70.0020.03511.15
5.2.60.0020.03211.12
5.2.50.0020.02211.04
5.2.40.0050.03111.10
5.2.30.0080.02811.04
5.2.20.0050.03511.06
5.2.10.0080.03011.08
5.2.00.0050.02010.99
5.1.60.0040.02910.60
5.1.50.0040.02010.61
5.1.40.0000.03110.59
5.1.30.0060.02310.79
5.1.20.0000.03510.81
5.1.10.0040.02710.66
5.1.00.0030.02810.55
5.0.50.0070.0209.79
5.0.40.0030.0129.80
5.0.30.0000.0379.69
5.0.20.0040.0159.71
5.0.10.0050.0189.71
5.0.00.0020.0339.69
4.4.90.0050.0169.27
4.4.80.0000.0129.27
4.4.70.0030.0169.27
4.4.60.0000.0229.27
4.4.50.0030.0179.27
4.4.40.0030.0139.27
4.4.30.0020.0199.27
4.4.20.0000.0229.27
4.4.10.0030.0199.27
4.4.00.0010.0199.27
4.3.110.0070.0059.27
4.3.100.0020.0199.27
4.3.90.0050.0199.27
4.3.80.0030.0159.27
4.3.70.0020.0109.27
4.3.60.0020.0219.27
4.3.50.0000.0139.27
4.3.40.0030.0259.27
4.3.30.0050.0079.27
4.3.20.0020.0199.27
4.3.10.0000.0199.27
4.3.00.0050.0169.27

preferences:
40.94 ms | 400 KiB | 5 Q