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' => 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'] = time() + 86400; } echo $notification['expire']; } $expire = time() + 86400 + 86400; pawshake_notification_add('thread_start', 0, 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.3.00.0030.01116.72
7.2.130.0110.00417.05
7.2.120.0030.00916.95
7.2.110.0090.00916.84
7.2.100.0060.00616.60
7.2.90.0080.00416.86
7.2.80.0040.01216.95
7.2.70.0000.00816.93
7.2.60.0080.00517.02
7.2.50.0080.00316.88
7.2.40.0040.01116.89
7.2.30.0080.00416.79
7.2.20.0040.00816.94
7.2.10.0000.01516.96
7.2.00.0030.01018.13
7.1.250.0080.00415.54
7.1.240.0060.00315.52
7.1.230.0030.00815.96
7.1.220.0100.00315.78
7.1.210.0150.00015.78
7.1.200.0050.00815.61
7.1.190.0070.00715.95
7.1.180.0100.00315.81
7.1.170.0090.00315.92
7.1.160.0060.00615.91
7.1.150.0120.00015.81
7.1.140.0040.00415.71
7.1.130.0050.00315.67
7.1.120.0000.00815.49
7.1.110.0000.01115.86
7.1.100.0050.00716.98
7.1.90.0000.01515.81
7.1.80.0100.00616.04
7.1.70.0040.00716.59
7.1.60.0070.01217.72
7.1.50.0070.01216.37
7.1.40.0110.00415.71
7.1.30.0030.00615.55
7.1.20.0070.00615.70
7.1.10.0100.00715.76
7.1.00.0060.04019.14
7.0.330.0000.00815.38
7.0.320.0080.00415.49
7.0.310.0040.00715.17
7.0.300.0030.01015.27
7.0.290.0030.01015.09
7.0.280.0090.00315.41
7.0.270.0060.00615.27
7.0.260.0070.00715.36
7.0.250.0000.00715.32
7.0.240.0000.00715.42
7.0.230.0090.00315.41
7.0.220.0090.00015.43
7.0.210.0030.00615.62
7.0.200.0160.00615.33
7.0.190.0120.00315.48
7.0.180.0060.00615.45
7.0.170.0060.00615.11
7.0.160.0070.01015.52
7.0.150.0070.00715.40
7.0.140.0050.04018.69
7.0.130.0120.00315.03
7.0.120.0060.00615.62
7.0.110.0090.00315.39
7.0.100.0030.00715.16
7.0.90.0100.00015.20
7.0.80.0170.02017.65
7.0.70.0080.02517.69
7.0.60.0070.02317.72
7.0.50.0060.02217.77
7.0.40.0050.02316.83
7.0.30.0040.02216.79
7.0.20.0050.02316.85
7.0.10.0060.02416.82
7.0.00.0020.02816.75
5.6.380.0030.01014.33
5.6.370.0080.00414.30
5.6.360.0030.00614.54
5.6.350.0060.00314.46
5.6.340.0000.01414.50
5.6.330.0030.00714.54
5.6.320.0040.01114.27
5.6.310.0070.00714.39
5.6.300.0000.00913.80
5.6.290.0060.01014.31
5.6.280.0050.03817.78
5.6.270.0040.00714.34
5.6.260.0080.00814.61
5.6.250.0060.00614.62
5.6.240.0120.00314.25
5.6.230.0080.02117.42
5.6.220.0030.04417.46
5.6.210.0020.02517.54
5.6.200.0070.02617.69
5.6.190.0000.02917.59
5.6.180.0030.02617.80
5.6.170.0070.01917.77
5.6.160.0030.02517.70
5.6.150.0030.02517.52
5.6.140.0070.04317.83
5.6.130.0160.03317.77
5.6.120.0070.02417.64
5.6.110.0050.04517.69
5.6.100.0060.04217.56
5.6.90.0070.04717.75
5.6.80.0080.02517.43
5.6.70.0000.03317.40
5.6.60.0100.03917.29
5.6.50.0030.04717.38
5.6.40.0050.03717.54
5.6.30.0090.02517.22
5.6.20.0090.04317.39
5.6.10.0010.05117.36
5.6.00.0040.04117.25
5.5.380.0040.00411.18
5.5.370.0030.02115.87
5.5.360.0020.02715.80
5.5.350.0030.02615.88
5.5.340.0030.02516.09
5.5.330.0020.02416.14
5.5.320.0060.02516.13
5.5.310.0080.01816.14
5.5.300.0070.01816.10
5.5.290.0080.04316.04
5.5.280.0120.03816.05
5.5.270.0100.04016.12
5.5.260.0080.03816.07
5.5.250.0030.02816.04
5.5.240.0000.03615.74
5.5.230.0090.03915.76
5.5.220.0030.04315.72
5.5.210.0050.04515.72
5.5.200.0010.04615.62
5.5.190.0110.03815.69
5.5.180.0060.04315.68
5.5.170.0000.00611.23
5.5.160.0080.04015.64
5.5.150.0050.02915.64
5.5.140.0020.04215.68
5.5.130.0020.04715.70
5.5.120.0070.04315.66
5.5.110.0080.04115.74
5.5.100.0060.02715.62
5.5.90.0030.02515.66
5.5.80.0070.04315.66
5.5.70.0050.04315.63
5.5.60.0080.04515.59
5.5.50.0030.02915.60
5.5.40.0110.04015.63
5.5.30.0070.04215.61
5.5.20.0110.03815.62
5.5.10.0060.02815.63
5.5.00.0080.02215.65
5.4.450.0070.04415.27
5.4.440.0100.01715.22
5.4.430.0050.04515.36
5.4.420.0090.03915.20
5.4.410.0120.02115.29
5.4.400.0030.03815.24
5.4.390.0080.04015.10
5.4.380.0070.03315.06
5.4.370.0080.03015.13
5.4.360.0070.04315.04
5.4.350.0120.03815.06
5.4.340.0050.04415.18
5.4.330.0070.00311.18
5.4.320.0100.03515.13
5.4.310.0080.04115.03
5.4.300.0020.03215.10
5.4.290.0030.02915.13
5.4.280.0030.02715.03
5.4.270.0020.04315.09
5.4.260.0070.03815.19
5.4.250.0030.04315.20
5.4.240.0070.04415.11
5.4.230.0020.02615.18
5.4.220.0070.02215.14
5.4.210.0030.02615.13
5.4.200.0080.03115.21
5.4.190.0070.03515.14
5.4.180.0090.03415.14
5.4.170.0090.03615.10
5.4.160.0040.03015.05
5.4.150.0060.02515.05
5.4.140.0070.03913.80
5.4.130.0020.03613.79
5.4.120.0060.01813.80
5.4.110.0020.03113.86
5.4.100.0060.02113.77
5.4.90.0090.03013.75
5.4.80.0070.02013.80
5.4.70.0050.03813.82
5.4.60.0070.04013.86
5.4.50.0080.03713.77
5.4.40.0060.03713.83
5.4.30.0020.02513.83
5.4.20.0020.04313.75
5.4.10.0020.04413.82
5.4.00.0050.04313.52
5.3.290.0020.03012.88
5.3.280.0000.03212.94
5.3.270.0030.04412.86
5.3.260.0050.02512.90
5.3.250.0050.04012.88
5.3.240.0050.03612.90
5.3.230.0070.02212.86
5.3.220.0020.02912.90
5.3.210.0030.03912.94
5.3.200.0000.04212.86
5.3.190.0100.03812.84
5.3.180.0030.04112.93
5.3.170.0080.03312.90
5.3.160.0020.02912.92
5.3.150.0020.03512.90
5.3.140.0080.03712.93
5.3.130.0110.02412.89
5.3.120.0040.04212.88
5.3.110.0080.02312.88
5.3.100.0020.04212.57
5.3.90.0060.02812.67
5.3.80.0060.04312.67
5.3.70.0080.03312.64
5.3.60.0050.04312.60
5.3.50.0110.03512.63
5.3.40.0050.03912.63
5.3.30.0070.03312.57
5.3.20.0070.03812.46
5.3.10.0070.03812.45
5.3.00.0020.03512.43
5.2.170.0030.03311.17
5.2.160.0020.03511.16
5.2.150.0030.03311.10
5.2.140.0050.03011.19
5.2.130.0070.03011.22
5.2.120.0060.03411.15
5.2.110.0020.03311.19
5.2.100.0050.02211.14
5.2.90.0030.03111.18
5.2.80.0030.02111.13
5.2.70.0050.01811.09
5.2.60.0030.03111.16
5.2.50.0020.03011.16
5.2.40.0060.03111.11
5.2.30.0050.03511.10
5.2.20.0020.02911.07
5.2.10.0050.02211.03
5.2.00.0030.02711.00
5.1.60.0060.00910.63
5.1.50.0050.01910.64
5.1.40.0030.02410.58
5.1.30.0080.01310.77
5.1.20.0080.02310.81
5.1.10.0040.02710.67
5.1.00.0030.02810.66
5.0.50.0020.0189.85
5.0.40.0050.0109.83
5.0.30.0060.0339.70
5.0.20.0030.0219.63
5.0.10.0010.0189.62
5.0.00.0020.0269.66
4.4.90.0020.0159.29
4.4.80.0030.0139.29
4.4.70.0000.0229.29
4.4.60.0000.0209.29
4.4.50.0050.0179.29
4.4.40.0040.0329.29
4.4.30.0000.0169.29
4.4.20.0050.0109.29
4.4.10.0020.0199.29
4.4.00.0020.0269.29
4.3.110.0030.0109.29
4.3.100.0020.0139.29
4.3.90.0020.0149.29
4.3.80.0020.0259.29
4.3.70.0020.0189.29
4.3.60.0010.0169.29
4.3.50.0030.0119.29
4.3.40.0000.0269.29
4.3.30.0020.0149.29
4.3.20.0030.0099.29
4.3.10.0000.0129.29
4.3.00.0000.0199.29

preferences:
28.8 ms | 401 KiB | 5 Q